I ran it and it states:

DRUPAL_ROOT is /var/www/vhosts/abc.com/123/sites.

This is incorrect,
it should be

DRUPAL_ROOT is /var/www/vhosts/abc.com/123.

It doesn't fix my registry either.

Comments

rfay’s picture

Unless you use the drush version, it doesn't do anything except guess where the root is. Just edit it to make it "do the right thing". It assumes that the script is in sites/all/modules/registry_rebuild.

Anonymous’s picture

Ok thanks! Overlooked that, I was indeed calling it over http. Fixed my issue.

rfay’s picture

Title: root detection not correct » If registry_rebuild is not in sites/all/modules, you have to edit the php file
Status: Active » Fixed

OK, thanks.

The drush version would have worked OK.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.