Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call To Undefined Function Error

Status
Not open for further replies.

JeffreyToo

Technical User
Mar 11, 2004
14
US
I'm upgrading Drupal from 4.4.2 to 4.5.0 and getting a new error that I've not found anywhere, including the Drupal site.

The error I get says

Fatal error: Call to undefined function: db_encode_blob() in /home/ ... /includes/bootstrap.inc on line 147

I see the line in bootstrap.inc but don't understand the 'call to undefined function' portion, esp. how to explore whether the function is defined or not, how to define the function ...

Any help or insight would be helpful.

 
on line 147 in your bootstrap include, you must be calling a function which no longer exisiits, or has been renamed or something.

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Hmmh...
It obviously is a Drupal native function, not a PHP native. Make sure you have all files installed correctly and that all includes can be accessed by the web server.
 
Case sensitivty might also be playing a role. Check that the call and the function have the same case.

Bastien

Cat, the other other white meat
 
Well, I'm trying to understand 'where' to check whether the case sensitivity is the same ... like, 'where' does the function reside? 'Where' do I assure myself that the function exists and/or the nature (case sensitivity, for example) of the function that's being called.

Perplexed ...
Jeff
 
You can GREP for the function name in the folder tree where you installed the product:
grep 'function db_encode_blob' `find . -print` | less

If that shows that the function is defined, then you have a problem with the include.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top