I´m getting Fatal error: Call to undefined function: user_access() in /home/message/public_html/modules/block/block.module on line 64 all the time and cannot do anything.

This was after the confirm modules menu. After pressing "Continue" the systems hangs up.
Prior to this the system asked me for an "image" module for the implementation of Photoblogs, and, I couldn´t find it for 5.0.
In watchdog I had and entry with the message

<em>call_user_func_array() [&lt;a href=&#039;function.call-user-func-array&#039;&gt;function.call-user-func-array&lt;/a&gt;]: First argumented is expected to be a valid callback, &#039;system_modules&#039; was given</em> in <em>/home/message/public_html/includes/form.inc</em> on line <em>200</em>.

and location/referer http://www.mysite.com.ar/admin/build/modules/list/confirm

I´m going to keep this until tomorrow if someone wants to ask something in the db or whatever. Then, I going to reset and reinstall the system.

Comments

adminfor@inforo.com.ar’s picture

sorry, I can´t wait. System resetted
Is there anybody reading this?

kaerast’s picture

Status: Active » Postponed (maintainer needs more info)

Did reinstalling fix the problem? Can you still reproduce this on Drupal 5.1?

bdragon’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No response.

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.