After cautiously trying to update our site up to the latest version 5 of Drupal, we ran into an error that we can't get pass.
It seemed to have happened when synchonizing files from the site to local using dreamweaver.

the error displayed is:

Fatal error: Call to undefined function: user_access() in ...html/modules/aggregator/aggregator.module on line 33

thanks in advance for any help!!

Comments

BengkelWeb’s picture

i think you have something wrong on your user.module. Please check it, user_access function exist on user.module.

criznach’s picture

Did you modify any drupal files? I'd suggest getting dreamweaver out of the equation and re-uploading your drupal files.

cgdigitaltreats’s picture

Function http://api.drupal.org/api/function/user_access/6 is defined in modules/user/user.module (http://api.drupal.org/api/file/modules/user/user.module/6/source). Either this file is missing, or perhaps it was missing and as a result has been disabled in the {system} table in the DB. The value of status should be 1. Same goes for node.module which is where node_load lives, and also block, filter and system modules. Hopefully that will fix the form.inc error too.

cog.rusty - October 19, 2008 - 02:13
Was that an upgrade from Drupal 6.0?

"undefined function user_access()" means that Drupal
- either didn't find the user.module file at the place where it should be (under /modules/user/)
- or it couldn't read it (because it was damaged, or because its permissions were less than 644, or because the permissions of it directory were less that 755, or for some other reason).

The error message from update.php does not say that some code is wrong, it says that it received a wrong value.

Don't access your site with the updated Drupal files before running update.php. Upload again, make sure that the modules have been placed at the right directories, make sure that Drupal's directories have permissions at least 755, and run update.php again.

Thanks. Rusty Cog, You were rigtht for me. I had to do your fix and gdk said the same thing, being those modules were disabled.

I tried to update to 6.8 and ran into that user access problem.

First:
I had to turn back on the user module, set to 1 from 0. Also the user module somehow had 750 permissions, I changed it to 755.
The system module was disabled for me. I set it to 1 and the site came back alive. Thanks.

For others, load up phpmyadmin, log into your database, scroll down to where it says system. Look for your modules, and the status, 1 is on 0 is off.

I'm posting this on all the pages I found that people had this problem.