After upgrading from 4.7.4 to 4.7.7, the following error message appears in the browser when accessing the site:

Fatal error: Call to undefined function: form_hidden() in /home/mkpaul/domains/chintha.com/public_html/includes/common.inc(1201) : eval()'d code on line 2

Unfortunately the error persists even when running with just the drupal core! I already tried removing the contributed modules, but no luck!!!! Anyone has any idea how to fix this?

Comments

vm’s picture

did you go directly to 4.7.7 ? or to 4.7.6 first ?

If it were me, I'd revert to the backups taken before updating and update to 4.7.6 which, from what i remember, has a DB job or two to do. Then I would update to 4.7.7
___________________________________________________________________________________________________
The search tool on Drupal.org really does work. This message has been brought to you by the letter X. Thanks for watching! : )

mkpaul’s picture

Thanks for the reply. I went directly to 4.7.7. Should I go through 4.7.5?

vm’s picture

I corrected my first post, I meant 4.7.6 acccording to the update thread for 4.7.7

For the most trouble-free transition from an existing installation, it is recommended that you first upgrade to Drupal 4.7.6

it is also worthy to note, that the settings.php file must be replaced with the 4.7.7 update.
___________________________________________________________________________________________________
The search tool on Drupal.org really does work. This message has been brought to you by the letter X. Thanks for watching! : )

mkpaul’s picture

I have the settings.php replaced with 4.7.7 version already. Let me give a try to upgrade to 4.7.6 first...

thanks anyways!

mkpaul’s picture

The most frustrating thing is that it doesn't even work with drupal core! A fresh download of the drupal core should work in any case...

vm’s picture

This won't ease your frustration, but I just installed 4.7.7 and it worked perfectly well.

using form_hidden() as a search term turned up a few threads, one in perticular = http://drupal.org/node/69382
___________________________________________________________________________________________________
The search tool on Drupal.org really does work. This message has been brought to you by the letter X. Thanks for watching! : )

mkpaul’s picture

Even in mycase it happened after a turned on a sidebar block. But later i went into the database and disabled that block (through phpmyadmin). Then i removed all the contrib modules, suspecting that one of them might be using this function (as indicated in the link). Now all I have is the base drupal install!!! But I still get the same error!!!

Does it some how relate to caching? How do I disable caching directly in database through phpmyadmin?

vm’s picture

when you state that you "removed" the modules. did you also uninstall them from the DB ? if not they aren't actually removed which would mean you don't have a base install DB.

One of the features in Drupal 5.x is the uninstall function which removed the DB entires with the click of a button.
___________________________________________________________________________________________________
The search tool on Drupal.org really does work. This message has been brought to you by the letter X. Thanks for watching! : )

cog.rusty’s picture

Besides custom blocks and forms, another place to check is your theme's template files. If you are not using a fresh default theme, try to change to one.

mkpaul’s picture

Thanks for all the comments... I finally found out that the php code in the block was calling that form_hidden() function.

To recover, i had to go into the database through phpmyadmin and then delete the entries corresponding to the custom block. Then i was able to get the site back online.

Thanks!

regards,
Paul