I was trying to create a backup/test site to try to update from Drupal 6.25 to Drupal 7.12. The first thing I did was create the backup/test site in Drupal 6.25, which worked fine. I then deleted everything in the backup/test directory and downloaded and unpacked 7.12 and copied that into the backup/test directory. I then (here is where the problems started) deleted the sites directory and copied the sites folder from the production site to the backup/test directory. I got the following error message that looked like it was driven because the theme I was using (I didn't turn the site to Garland) hadn't been installed. I installed the 7.x version of the theme and then got this message:
Fatal error: Call to undefined function drupal_get_form() in /home/ideas/public_html/dudeindallas.com/themes/marinelli/templates/maintenance-page.tpl.php on line 22
I would totally scrap the backup/test and start over but copying the sites directory from the production site seemed to screw that up. I didn't do ANYTHING to that other than copy the sites directory from it's directory. I now get this error message when I got to the production site:
Fatal error: Call to undefined function image_display() in /home/ideas/public_html/sites/all/modules/image/contrib/image_attach/image_attach.module on line 713
So there are two separate problems. 1) How can I fix the backup/test site and 2) how can I fix the production site. If you can solve both problems I am willing to pay. Please contact me directly including how much you would want to be compensated.
Thanks so much,
Jason
Comments
I assume you have two copies
I assume you have two copies of the database, one for test site and one for live site? Otherwise you have bigger problems....which can be solved by restoring your database backup for the production site, assuming you have a backup of the database. These are questions which means it is hard to say with it is 30 minutes sorting out some small problems, or a major job of cleaning up a corrupted db. But provided you have a database backup, it cannot take more than a few minutes to restore it on the production site, check image module is present and enabled, and start over with the upgrade.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
you nailed it
John_B,
Think you nailed the issue! When I copied the sites directory to the backup site, it pointed to the production database and when I tried to upgrade the backup site, it made changes to the production database. I have Backup Migrate module installed and can restore. I have never done a restore before. I will look for documentation on restoring. Thanks!
It is easy, just hit restore.
It is easy, just hit restore. But download a backup of your corrupted database first! Either grab a copy of the damaged db with backup and restore, or personally i would log in to phpmyadmin and just do export to grab the entire database. If you do it the phpmyadmin way, and if you can, do a drupal Clear caches before you do so, but that is not critical. Anyway you are unlikely to need it, the backup and restore should do the trick.
NB after your restore you may need to clear caches before the site works again. Use devel module, admin menu, or install drush on the server to achieve this.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors