Not actually sure whether this is a bug or something local to my site. I got this when running the script:

DRUPAL_ROOT is /home/justin/www/mysite.<br/>

Fatal error: Call to undefined function system_rebuild_module_data() in /home/justin/www/mysite/includes/bootstrap.inc on line 2739

Call Stack:
    0.0003     121608   1. {main}() /home/justin/www/mysite/sites/all/modules/registry_rebuild/registry_rebuild.php:0
    0.0383    7709608   2. registry_rebuild() /home/justin/www/mysite/sites/all/modules/registry_rebuild/registry_rebuild.php:30

So I added require_once DRUPAL_ROOT . '/modules/system/system.module'; (Anyone know how to suppress my external diff tool so that I can create a patch?) Rerunning the script, I got the expected output:

DRUPAL_ROOT is /home/justin/www/mysite.
There were 563 files in the registry before and 468 files now.
If you don't see any crazy fatal errors, your registry has been rebuilt. You will probably want to flush your caches now.

Unfortunately it didn't cure the problem for me. When I tried to clear the caches, I got:

Error: Class 'DrupalDefaultEntityController' not found in /home/justin/www/mysite/modules/user/user.module, line 280

Fatal error: Class 'DrupalDefaultEntityController' not found in /home/justin/www/mysite/modules/user/user.module on line 280

Call Stack:
    0.0004     211712   1. {main}() /home/justin/apps/drush-7.x-4.4/drush.php:0
    0.0102    3123368   2. drush_main() /home/justin/apps/drush-7.x-4.4/drush.php:41
    0.0362    8969976   3. drush_bootstrap_to_phase() /home/justin/apps/drush-7.x-4.4/drush.php:90
    0.0550   12039776   4. drush_bootstrap() /home/justin/apps/drush-7.x-4.4/includes/environment.inc:310
    0.0550   12042064   5. _drush_bootstrap_drupal_full() /home/justin/apps/drush-7.x-4.4/includes/environment.inc:194
    0.0551   12083224   6. drupal_bootstrap() /home/justin/apps/drush-7.x-4.4/includes/environment.inc:956
    0.0773   15170432   7. _drupal_bootstrap_page_header() /home/justin/www/mysite/includes/bootstrap.inc:1925
    0.0773   15170560   8. bootstrap_invoke_all() /home/justin/www/mysite/includes/bootstrap.inc:2148
    0.0774   15171480   9. module_invoke() /home/justin/www/mysite/includes/bootstrap.inc:904
    0.0774   15172632  10. call_user_func_array() /home/justin/www/mysite/includes/module.inc:795
    0.0774   15173232  11. devel_boot() /home/justin/www/mysite/includes/module.inc:0
    0.0774   15173768  12. drupal_load() /home/justin/www/mysite/sites/all/modules/devel/devel.module:581
    0.0823   16687536  13. include_once('/home/justin/www/mysite/modules/user/user.module') /home/justin/www/mysite/includes/bootstrap.inc:932

Comments

rfay’s picture

Odd.

I will take a look at it if you can get me your database and a tarball of your code. If the database is not sensitive, just post both here. If it's sensitive you can email it to me or email me a dropbox link or whatever. randy at randyfay.com

rfay’s picture

Status: Active » Needs review
StatusFileSize
new2.61 KB

I was able to recreate your result and made some changes, which are *in* the 7.1 release. You can download 7.1 or git pull or whatever you're using. Would appreciate if you could give this a try.

The attached patch was committed as a7cbc542c5ebb630fab1c410023010f73f3b2bf2

crantok’s picture

Great! That totally worked for me. Thanks Randy.

rfay’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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

liquidcms’s picture

Status: Closed (fixed) » Active

using latest -dev i get:

DRUPAL_ROOT is E:\wamp\www\stat.
Bootstrapping to DRUPAL_BOOTSTRAP_SESSION
Doing registry_rebuild() in DRUPAL_BOOTSTRAP_SESSION

Fatal error: Call to undefined function system_rebuild_module_data() in E:\wamp\www\stat\includes\bootstrap.inc on line 3103

i made one mod to .php file:

$module_dir = DRUPAL_ROOT . '/modules/contrib';

liquidcms’s picture

Status: Active » Closed (fixed)

ok, my bad.. misunderstood where to put things..

my modules folder is sites/all/modules with /contrib and /custom. so i put reg rebuild in contrib (and changed module path to that in .php). i simply put that line back to original and put reg rebuild folder in sites/all/modules and all worked fine.