I somehow managed to make a really big mistake.
When upgrading to Drupal 6.17, I must have uploaded the drupal-6.17 folder to /home/sites/all/modules. So now I have:
/home/ --> all of my current drupal files
/home/modules ---> current core modules
/home/sites/all/modules/drupal-6.17 --> all of the 6.17 files
/home/sites/all/modules/drupal-6.17/modules --> all of the core modules from 6.17
I discovered this when trying to upgrade to drupal-6.19, and Drupal kept reporting that there was still an upgrade available.
I tried deleting all files and installing fresh, but that broke everything because somehow, my database has been updated with /home/sites/all/modules/drupal-6.17/modules/ for many of the modules.
I tried replacing /home/sites/all/modules/drupal-6.17/modules/ with modules/ in a backed up copy of my database and uploading that. That didn't work, and now I'm stuck.
Does anyone know what I can do to fix this?
Thanks.
Julianna
Comments
You could try removing any
You could try removing any rows in your table with /home/sites/all/modules/drupal-6.17/modules/ and of course be sure to remove /home/sites/all/modules/drupal-6.17
If that fails, let us know what precisely is the error and also what you see in the system table.
references
It looks like this is where /home/sites/all/modules/drupal-6.17/modules/ is showing:
menurouter, in file (e.g. sites/all/modules/drupal-6.17/modules/system/system.admin.inc)
system, in filename (e.g. sites/all/modules/drupal-6.17/modules/update/update.module)
If I remove these rows, will Drupal still be able to run?
If system.admin.inc only
If system.admin.inc only appears once and it looks like that, you could try to edit such rows instead of removing them.
Blank screen again
This is what I did:
1. Downloaded all the files and database as a backup
2. Uploaded what was in /home/sites/all/modules/drupal-6.17 to /home
3. Ran update.php --- no updates
4. Checked website --- everything was ok.
5. In the backed up db file, replaced sites/all/modules/drupal-6.17/modules/ with modules/
6. Confirmed that the only remaining reference to 6.17 was in the drupal version information
7. Imported the changed db file
8. Tested the site --- every page is now blank!
9. Restored the original backed up db file
10. Tested the site --- the original db file reset the site to it's proper state.
Not sure what to try now. All of the references to files in sites/all/modules/drupal-6.17/modules/ only occur once (e.g. only one reference to system.admin.inc. I figured copying the files from /home/sites/all/modules/drupal-6.17/ to /home/ would remove any version problems, but that doesn't seem to be the issue.
Here are the modules in the system table that are referenced:
And the ones in menu_router:
Solution found!
It took a while, but I figured out how to fix the problem:
I did the same thing! Instead
I did the same thing!
Instead of manually editing each row though, I used the replace command.
In my case I ran the following:
UPDATE `system` SET `filename` = replace(`filename`,"sites/all/modules/drupal-6.20/","")UPDATE `menu_router` SET `file` = replace(`file`,"sites/all/modules/drupal-6.20/","")Is this all?
Are there any other tables in the data base that will need to be changed? So far we got two...system and menu_router.
I have some Core files that were moved in to the sites/all/modules directory and I am assuming I will need to edit these entries by hand because the site will die otherwise. correct?