Drupal 7 website not loading (Fatal error: Call to undefined function user_access() in C:\xampp\htdocs\new\drupal\includes\menu.inc on line 619) [closed]
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this questionI am getting the following error with my drupal website.
"Fatal error: Call to undefined f开发者_C百科unction user_access() in C:\xampp\htdocs\new\drupal\includes\menu.inc on line 619"
I have checked the system table and status for user.module is set to 1 .
Can anyone suggest what could be the error?
Regards,
Which version of PHP do you use with your xampp installation? Have you disabled/enabled Zend Optimizer or other PHP modules just before the error appeared? And which version of drupal causes this error?
Here are few tips:
- make sure your Drupal core has all the files in the right place (especially user 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
精彩评论