Drupal was running fine in a sub-directory but I want to move it to root. After moving all of the files up one level, I am now getting this fatal error:
Fatal error: require_once() [function.require]: Failed opening required '/public_html/drupal/includes/database/query.inc' (include_path='.:/usr/share/php:/usr/share/pear') in public_html/drupal/includes/database/select.inc on line 8
'Drupal' is of course the subdirectory the install was in. I have flushed the cache table in the DB and commented out the $base url line in settings.php. I've changed the .htaccess to comment out the re-write rule (i've also tried it with it on), to no avail.
Where is that path (in the above error message) still being retained?
Comments
^
Reset settings.php changes back. Your site should work without this type of changes.
Make sure that all files are moved to the root of the site. Then, login to site at /?q=user URL.
Then, see status report and fix problems.
What's new and changing in PHP 8.4
still does not work
Base url statement is commented out.
All files are move to root.
site/?q=user yields exact same error as before
Problem still exists
Same problem
Hi,
Did you find a solution to this problem. I am in the same predicament. I cannot access my front-page and admin menu after running update.php. And without access to admin how do I change link to my front page and all my other nodes?
Any solution to this?
To add some more info, at first i got wsod. I added
to index.php to get the errors. If i move everything back to subfolder, everything is OK.
Can you just change the
Can you just change the directory apache is pointing to 'public_html/drupal' instead of 'public_html'?
Restart Apache Server to Fix Fatal error
I was also getting the same error on my Linux (ubuntu) system with Drupal 7.13. When I change the Drupal folder name to any other name, I got this error.
To fix this error, I simply restarted Apache web server on my system and it worked perfectly fine. You can reproduce the same error by renaming the Drupal root folder name and then try accessing your site withe new name.
e.g. I changed my folder name /var/www/d7 to /var/www/drupal. And tried to access localhost/drupal from browser.
To fix this, simply restart apache web server.
Brilliant! This is not only
Brilliant!
This is not only specific to moving into/out of a subfolder. Looks like any change to the drupal root will cause this.
I suspect it may be related to a PHP opcode cacher. We use XCache on a CentOS server.
In any case, restarting Apache (httpd) worked for us! Thanks, amitgoyal!
Thanks
A restart was all it took to fix it.
I encountered this error on
I encountered this error on the latest version of drupal (7.34) this morning while trying to move my root files over to another directory. I had to move the files back to the original location and performed a copy instead of a move which worked.
Dennis
oh-soyummy.com