Hi,
I am having issues with the Drupal registry becoming corrupt. I installed 7.23 as usual (I have Drupal outside the document root and symlink the necessary directories).
Whenever the cache is flushed or a module is enabled I get this error (or similar):
Fatal error: Class 'DrupalDefaultEntityController' not found in
/home/user/site.co.uk/drupal/modules/comment/comment.module on line 1694
When this happens I use a module called registry rebuild and visit www.site.co.uk/sites/all/modules/registry_rebuild/registry_rebuild.php. This outputs:
DRUPAL_ROOT is /home/user/site.co.uk/drupal.
Bootstrapping to DRUPAL_BOOTSTRAP_SESSION
Bootstrap caches have been cleared in DRUPAL_BOOTSTRAP_SESSION
Doing registry_rebuild() in DRUPAL_BOOTSTRAP_SESSION
Bootstrapping to DRUPAL_BOOTSTRAP_FULL
Doing registry_rebuild() in DRUPAL_BOOTSTRAP_FULL
Flushing all caches
There were 102 files in the registry before and 171 files now.
If you don't see any crazy fatal errors, your registry has been rebuilt.
That works! However it doesn't fix the problem. Whenever a module is enabled or the cache is flushed the problem repeats itself.
Does anyone have any ideas or pointers on how to resolve this? I have downloaded Drupal again and overwritten the files but the problem persists.
Cheers!
Gibbs
Can you try with the files inside webroot instead of them being symlinked?
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On 01/09/13 20:31, Anoop John wrote:
Can you try with the files inside webroot instead of them being symlinked?
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
That worked. I have added chdir to the index, update and cron PHP files and it seems to have done the trick. I.e.
chdir('/home/user/site.co.uk/drupal/');
define('DRUPAL_ROOT', getcwd());
As opposed to using an absolute path for DRUPAL_ROOT.
All fixed. Many thanks!
Gibbs