I have a site where two version of ctools are on the filesystem.
The first version is in sites/all/modules - this is correct and where I want it The second version is in sites/all/modules/contrib - this isn't correct and was placed there by custom formatters make file.
The registered path in the system table is sites/all/modules/contrib. I want to remove the contrib folder as it shouldn't exist and is causing issues when I want to upgrade ctools using make files.
Removing the folder gives an undeclared function error as drupal expects it in that contrib folder. Using drush registry rebuild isn't an option as the error still appears because ctools is embedded so deep.
Changing the paths in the system table still brings up the undeclared function error, this could be caused by APC caching though.
Is there a simple way of removing references to this folder and using the copy of the module in sites/all/modules without causing such a huge impact?