Everything was working nicely. I've been adding data to my CiviCRM install. I realized I needed to reconfigure some permissions, headed towards my main Drupal admin panel, and got this error:
Fatal error: Cannot redeclare system_main_admin_page() (previously declared in /sites/all/modules/civicrm/modules/system/system.admin.inc:12) in /modules/system/system.admin.inc on line 60
I don't see anything about this on the CiviCRM forums, while there are some hits for similar problems (with other modules) here, but nothing that seems to offer a solution for this.
Interestingly, my front-end still seems to work fine (it's a new site that hasn't publicly launched yet, so this is neither here nor there).
Is this a module (CiviCRM) issue, or something to be resolved on the Drupal side? If the latter, help? What do I do?
Thanks!
Comments
Today, the front end is no
Today, the front end is no longer working, and I get this error:
Fatal error: Call to undefined function user_access() in /home/example.com/includes/menu.inc on line 449
Help?
Solved! I dug into my files,
Solved! I dug into my files, and somehow /sites/all/modules/civicrm/ got renamed to /sites/all/modules/modules/
I found this by digging into my MySQL database following up on some other possible leads to what might be wrong, since the file names were screwy.
Digging into the files
mhm - something very similar happen to me this morning. I have tried to locate problem and have found same error messages as you have had. In looking into the MySQL database where and in what tables did you look? I have never really gone into that part of Drupal but am willing if there is a answer to this problem.
TIA for any hint where in the DB to look
FIXED IT - read and reread posts on this site to see what was the story. A couple of folks said they were able to get by this by running update/php so I did that and everythingnow works but the file structure as mentioned below still exists the system just does not care any more. Will delete the stuff once I have what I want done done. Should be okay now, butwho knows.
C.
Since the initial post I looked at the file structure in the site. Everything is there but there is something extra. In the Modules directory there is another directory called modules and in that directory appears to be a complete set again of all the modules I have in the system. I di dnot copy anything, nor did I restore anything this complete structure just appeared.
I copied the 'extra' modules directory to my local pc and deleted it off the server. I then rebooted apache and restarted the site. Nothing would come up and apache chould not find a site to create.
I then recopied the 'extra' modules directory back into the real modules directory and restarted apache and brought the site back up. The site was there I was able to log in and I was able to see that the same problem existed.
This was first noticed when I changed permissions for authenticated users.
FYI the error log gives the following message:
[Fri Apr 06 17:45:21 2012] [error] [client 67.183.189.128] PHP Fatal error:
Cannot redeclare system_main_admin_page() (previously declared in /var/www/modules/modules/system/system.admin.inc:11)
in /var/www/modules/system/system.admin.inc on line 60, referer: http://dev.horne.com/?q=admin/build/block/list
Note the /var/www/modules/modules/system directory in the mix. Thus the problem still exists. I still do not know if Drupal copied all the modules into a new directory or what.
Again any assistance or hint is appreciated.
I may elevate this to a topic by itself if there is not notice of it or I can not get it resolved soon.