I accidentally installed a drupal update (6.26) into sites/all/modules (yes, I put there the whole drupal root directory, so I have sites/all/modules/modules, sites/all/modules/sites/all/modules, etc).
Then, unknowingly ran update.php, and everything went ok as Drupal intelligently registered the new core modules in sites/all/modules/modules/* as core modules.
This worked fine until the next update. I placed the core drupal files into the root dir, and the core was correctly replaced with 6.27. But in sites/all/modules were the 6.26 files from the last update and drupal accepts OLDER files in sites/all/modules that override the core /modules files.
So drupal now complained that it was still at 6.26, even when the real core was at 6.27 - those files were never actually called, because overridden by /sites/all/modules/modules/*.
So:
I managed to remove all the unneeded modules from there and with a few errors, I got it working again. the best method was:
changing the sites/all/modules/modules/<module>/<module>.info file and tweaking the version number from 6.27 to something older, like 6.25. THEN run update.php - so Drupal recognizes that there is an OLDER version in sites/all/modules than in core. now remove the directory and run update.php again. Now everything is clean for this module.
But this does not work for the system module. Each time I try to remove the sites/all/modules/modules/system/ directory, the update.php URL is not callable any more (HTTP Error 500).
Any hints how to recover from an accidentally overridden system module?
sites/all/modulesdirectory. what happens if you remove that and basically have a, among friends, a normal version? - Max{system}table is broken. Can you run this query and paste the result:SELECT filename FROM {system} WHERE name = 'system'? If the path is not something like this:modules/system/system.modulethen at least we know where the problem is. - Max{system}' table is broken. You're missing at least 2 important lines:modules/system/system.module` andmodules/user/user.module. Do you have Drush installed? - Max