Fatal error: Call to undefined function
Written 1 year 4 weeks ago by SharmWeb. Last edit 1 year 4 weeks ago.
Replace the function name with whatever name in your case is the culprit, so:
if(function_exists('whatever')) {
<--The piece you don't want to run if the function doesn't exist-->
}
Not very elegant, but effective. A real solution is case specific and a bit deeper, but, eeh, who cares? It gets you out of shit for now.
Published in
- Printer-friendly version
- Add new comment
- 103 reads
Problem
Well, the title says it all. Very common.Solution
http://drupal.org/node/175807#comment-790323Replace the function name with whatever name in your case is the culprit, so:
if(function_exists('whatever')) {
<--The piece you don't want to run if the function doesn't exist-->
}
Not very elegant, but effective. A real solution is case specific and a bit deeper, but, eeh, who cares? It gets you out of shit for now.



