Hello. I am a tard. I made modifications to the core theme and modules folders and contents. I wanted to upgrade my site so I disabled most of the modules and coppied the theme and modules folders to the /sites/all folder.. I got an error so I deleted the folders I copied (the original folders still remain in the web root) I am now getting the below error message. does someone know how I can fix this issues?

Fatal error: Call to undefined function user_access() in /home2/carolina/public_html/includes/menu.inc on line 449

Thanks for any help!

S

Comments

mkmagu’s picture

425Media’s picture

Yes I did look at that posting. I have checked the status of all of those modules and the status is set to 1 just like they should be. Also the user module is there with the 644 permissions. The only thing that I have not yet done has been to run update.php. Since I do not have access to the drupal interface, I cannot run that command. I have sent a message to my hosting to see if there is a way I could manually run the command, but they have not responded.

heine’s picture

Edit the paths of core modules & themes in the system table to point to the right location.

See also http://drupal.org/node/665848

425Media’s picture

Thanks for the post Heine. I just want to make sure I am doing the correct task. I should go into my sql db in the systems table and find all of the modules that have the path of sites/all/modules and change them to modules/ ?

Thank you so much for your help.

S

heine’s picture

Go into the sql db in the systems table and find all *core* modules that have the path of sites/all/modules/[rest] and change it to modules/[rest]. If you use a core theme, also correct the theme path (eg to themes/garland/garland.info)

Suppose you have for node.module the 'filename' entry:

sites/all/modules/node/node.module
(or depending on how you copied:)
sites/all/modules/modules/node/node.module

Change it to:

modules/node/node.module
425Media’s picture

I have currently changed:

Filter, system, user, block and node to the correct path, now the site is just blank, no error code. I will go through and change the rest. It will take some time. I will let you know what the result is.

thanks again Heine

425Media’s picture

So I changed the path of all of the modules. Now when I pull up my domain, I get a plain blank screen. Just white. I am typing in www.mydomain.com and there is no errors displaying, but there is just white... any ideas?

S

425Media’s picture

Thank you so much Henie! Here is how I fixed the issue:

What caused my issue: I was (and still am) a Drupal noob. But this site was one of the first sites I had created and I just put all of my module and themes in the core modules and themes folder, not in the sites/all/modules and themes folder. This sucks because if you want to upgrade your site to the new drupal version, you will be screwed. So what I did was just copied the modules from the core folder to the sites/all folder.. and that is where my troubles started.

Here is how I fixed it (thanks to Heine):

1. Backed up my database. Went to myphpadmin and chose export.
Updated all of the module locations in the system table to the correct path basically the CORE modules folder.
2. Backed up my database again. Just in case.
3. Went to www.mysite.com/update.php
4. When given the option to update certain modules, I just left the defaults.
5. Completed update.

MY SITE WORKED!! Thanks again Heine and the Drupal community. This kind of support is so valuable for a new developer. The support is why all of my sites will stay on the drupal platform.