I'm encountering a really weird bug with Drupal. I'm running Debian's Drupal in a multisite configuration on the same host with both the dev and live websites. I know it's not ideal but this is a constraint I cannot avoid for a variety of reasons.
So I have my sites (e.g. dev.example.com and www.example.com) and I sync them with
drush sql-sync. Right after doing so, I cannot access the synced website anymore and Apache throws the following errors:
PHP Fatal error: Cannot redeclare ctools_content_process() (previously declared in /etc/drupal/7/sites/www.example.com/modules/ctools/includes/content.inc:18) in /etc/drupal/7/sites/dev.example.com/modules/ctools/includes/content.inc on line 84
To make my website work again, I have to manually do a find-replace in MySQL to change any instance of dev.example.com to www.example.com in tables field_data_body and field_revision_body.
I reckon the problem is linked to CTools (and hence to views), but I have no idea why. Have any of you ever encountered such a problem?