Hello everyone
i installed drupal 7.8 on my localhost using XAMPP.
I created a backup of the entire drupal folder into a .zip using unarchiver (OS X)
and i also exported the database using phpMyAdmin following the instructions of the post : http://drupal.org/node/81993.
Trying to restore the site i did the followings :
1. unzip the drupal files
2. create a database with the same name using phpMyAdmin
3. import the .sql file using phpMyAdmin
whenever i try to open the site i get the message :
"Fatal error: Class 'SelectQueryExtender' not found in /Users/.../drupal/includes/pager.inc on line 15"
does anyone knows something about it ?
i thought that this was the right way to backup a drupal site...
the whole process was simple so i cannot figure out what went wrong !
thx in advance
Comments
Hi, Did anything change
Hi,
Did anything change between backing up and restoring?
Operating system, OS version, Apache/PHP/MySQL version? Any Drupal modules, themes or core?
Did you try clearing the cache? Running update.php in case?
nothing changed
hi there !
nothing changed.
OS : OS X 10.6.8
XAMPP : 1.7.3
from phpinfo()
PHP : 5.3.1
MySql : 5.1.44
Apache : 2.2.14 (Unix)
I just deleted both the folder with the files and the db and i created a new folder to unarchive the old files and a new database to import the previously exported one.
all the names were the same
Cache is disabled using web developer (also cleared).
I can't really guess what
I can't really guess what might be causing your problem, but here are some things to double check:
If you don't mind my asking, why did you backup and then restore your site?
better safe than worry !
well, without a backup procedure, production might one day be useless !
One more question: You say
One more question:
You say get this error... Is it the only thing you see in your browser window?
thank you for your quick
thank you for your quick replies
i double checked all your recommentations and everything seems to be ok
unfortunately this is the only message i get...
Then I'm sorry, you've got me
Then I'm sorry, you've got me stumped.
Hopefully someone else will chime in soon. Bump the post tomorrow sometime if you don't hear from anyone else.
to make it more clear
i have a drupal instalation with its database :
and i created a copy of them
in the same server (localhost) meaning that the db_user will be the same
i only changed the line in /test_drupal/sites/default/settings.php to 'database' => 'test_drupal_db' to pointing to the copied database
i still get the same Fatal error...
Am i missing something ?
solved
for some (unknown) reason , after many tests in export-import database
it works with the same settings i used at the first post.
Don't know what to say...
Well, I'm glad you're up and
Well, I'm glad you're up and running again. But I know it's frustrating when you can't see why!
Good luck with your site.
Matthew
Diagnosis and solution!
Hi everybody!
I lived an identical situation with a customer's site. After several tests, I managed to reproduce the error in a test enviroment using a fresh installation of drupal 7.8 and the database dump our customer provided us. To be concise, the problem was that the customer dumped only the definition of the tables, then the "registry" table was totally empty, and this table stores the paths of files used to find the definition of drupal's PHP classes. Then I changed settings.php file to use a database of a fresh install and the site worked!
In a properly dumped database of a fresh install, the SQL should contain something like this:
Conclusion: when migrating or restoring a site, do and use a full database backup, containing tables' creation and their data.
Bye!
Rodolfo J. Castellanos J.
confirming that it can work in some cases
It's interesting, I was doing an update on a test Drupal, and then I got the error messages "Fatal error: Class 'SelectQueryExtender' not found in ...\includes\pager.inc on line 15", "Fatal error: Call to undefined function menu_get_custom_theme() in ...\includes\theme.inc on line 87", when going to Appearance, "Fatal error: Unsupported operand types in ...\modules\system\system.admin.inc on line 266", etc., and when nothing worked, I tried this "trick", inserting these rows manually (which were somehow - don't know how!! - missing):
and then everything worked again...
Really interesting.
Thanks for sharing this, Rodolfo!
hi, where did you post this
hi, where did you post this code?
That is SQL code
You can run that in any utility that allows you to maintain your database, normally phpMyAdmin.
Where in phpmadmin though?
Where in phpmadmin though?
Navigate to the database you intend to change
and go to the SQL tab. Enter the code and click `Go` to execute it.