I upgraded to 6.15 from 6.14 and I get this error when I try update.php:

Fatal error: Call to undefined function user_access() in /home/user1/public_html/includes/theme.inc on line 934

When I try to access the site (I'm logged in as admin) the error is:

Fatal error: Call to undefined function user_access() in /home/user1/public_html/includes/menu.inc on line 2476

I have removed and replaced the 6.15 files at least a dozen times today. I have all the folders in place and everything has the right permissions. I've cleared caches. Yet the errors continue.

Any ideas? I looked at other people's problems, but I don't have another installation of Drupal in my sites/all/modules folder, so that didn't help.

Comments

cayenne’s picture

maybe one of your modules has a bug. Did you deactivate them first? If not, you will either need to turn them off in the System table or simply move the modules folder from sites/all to see if you can launch

:)

cbdebris’s picture

Unfortunately moving the modules folder didn't help. Still have the same errors.

Further thoughts?

cayenne’s picture

Hmmm

If user_access is "undefined" you may have not got all the files needed for Drupal. Can you re-unpack the distribution?

:)

cbdebris’s picture

I've downloaded three times. I've unpacked twice for each. I've uploaded the files more than a dozen (as explained in my original post).

What is so different from 6.14 that these problems would occur with a simple update? I've been working with Drupal for several years and have never encountered these difficulties.

gpk’s picture

That function lives in modules/user/user.module. Is the file present and what are its permissions?

cbdebris’s picture

Modules folder: 7 5 5
User folder: 7 5 5
User.module: 6 4 4

Does user.module also need to be 7 5 5? Because nothing else in the User folder has permissions 7 5 5 -- they all have 6 4 4.

cayenne’s picture

Heck, give it a try... whaddya got to lose?

:)

cbdebris’s picture

The files that are mentioned in the fatal errors -- menu.inc and theme.inc -- show in the includes folder. I looked at the server with different FTP programs, after deleting the folders and loading folders yet again from a freshly unpacked release of 6.15.

I also set user.module to use permissions 7 4 4. The same errors occurred. So I set the permissions back to 6 4 4.

I tried changing permissions to 7 4 4 for menu.inc and theme.inc. The same errors occurred. So I set the permissions back to 6 4 4.

I can see install.php and it says "Drupal already installed," so my choices are to upgrade or install using a different database. Either link brings me to the fatal errors. I confirmed that update.php exists on the server.

Further suggestions?

cbdebris’s picture

Had to edit the database table system to resolve the issue.

gpk’s picture

Glad you got it fixed. Sounds like user.module didn't get properly enabled during install. Not quite sure how that might have happened!!

nakfgh’s picture

Hi Guys,

I have the same problem on my site. Can someone show me how to edit the 'system' in my website's database?

mckersten’s picture

Hi,

I ran into the same issue. For the time being I just removed the if statement.
That seems to work.

Grt Michiel