简体   繁体   中英

Call to undefined function menu_load() in …/public_html/includes/menu.inc on line 579

I really need your help. Actually, my journey begin with the installation Drupal and some modules. After a couple of days I suddenly get an issue " 500 Internal Server Error ".

I asked my hosting provider why this happened, he said "That because of the file .htaccess and you should add to this file php display error". So i did this and I get a new issue :

"Fatal error: Call to undefined function menu_load() in ...
/public_html/includes/menu.inc on line 579." 

By the way, that's line 579

else {$return = $function($value);}

PS: I am a beginner in PHP. I like Drupal a lot and want to study Drupal in further and create cool sites, but this problem...

need to figure out what function it's trying to call first. change the line

else {$return = $function($value);}

to

 else {echo $function;exit;$return = $function($value);}

Here are few tips:

  • make sure your Drupal core has all the files in the right place (especially menu module),
  • make sure your imported database is in UTF-8 format,
  • upgrade your Drupal core to the latest version ( drush fr && drush up drupal )
  • clear all your caches ( drush -y cc all ), including your memcached ( killall memcached ),
  • rebuild your registry by using [Registry Rebuild][1],
  • if you're using modules which are implementing drupal_bootstrap() (such as Secure Site), disable them,
  • try disabling your PHP cache engines (such as XCache, Zend optimizer) to see if that's the problem,
  • test it on different environment/machine,
  • eventually restore your database from the point where it was working before

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM