After clearing the cache through drush I got the fatal error below.
It looks like the theme function is called during the registry rebuild process while I doubt there is much to theme there...

I tested with 7.x-1.1 and the 7.x-1.x branch.

Any idea?

Fatal error: Call to a member function sweaver_theme() on a non-object in /platforms/d78/sites/demo/modules/contrib/sweaver/sweaver.registry.inc on line 69

Call Stack:    
    0.0035     390528   1. {main}() /drush/drush.php:0
    0.0470    2307716   2. drush_main() /drush/drush.php:41
    1.4053   34595824   3. drush_dispatch() /drush/drush.php:101
    1.4056   34596076   4. call_user_func_array() /drush/includes/command.inc:214
    1.4057   34596328   5. drush_command() /drush/includes/command.inc:0
    1.4373   34642660   6. _drush_invoke_args() /drush/includes/command.inc:806
    1.4404   34682060   7. call_user_func_array() /drush/includes/command.inc:134
    1.4404   34682312   8. drush_cache_clear() /drush/includes/command.inc:0
    1.4431   34721632   9. drush_op() /drush/commands/core/cache.drush.inc:76
    1.4431   34721840  10. call_user_func_array() /drush/includes/drush.inc:1216
    1.4432   34722032  11. drupal_flush_all_caches() /drush/includes/drush.inc:0
    1.4860   34723316  12. registry_rebuild() /platforms/d78/includes/common.inc:7129
    1.4861   34723316  13. system_rebuild_module_data() /platforms/d78/includes/bootstrap.inc:2950
    1.4861   34723580  14. _system_rebuild_module_data() /platforms/d78/modules/system/system.module:2422
    1.7834   34920872  15. drupal_alter() /platforms/d78/modules/system/system.module:2394
    1.7834   34920992  16. field_system_info_alter() /platforms/d78/includes/module.inc:1004
    1.7924   35223348  17. l() /platforms/d78/modules/field/field.module:405
    1.7924   35223856  18. theme_get_registry() /platforms/d78/includes/common.inc:2340
    1.7925   35223900  19. call_user_func_array() /platforms/d78/includes/theme.inc:248
    1.7925   35224280  20. _theme_load_registry() /platforms/d78/includes/theme.inc:0
    1.7938   35224324  21. _theme_build_registry() /platforms/d78/includes/theme.inc:289
    2.1779   47345156  22. _theme_process_registry() /platforms/d78/includes/theme.inc:530
    2.1780   47372128  23. sweaver_theme() /platforms/d78/includes/theme.inc:384
    2.1835   47701292  24. _sweaver_theme() /platforms/d78/sites/demo/modules/contrib/sweaver/sweaver.module:65

CommentFileSizeAuthor
#7 update_process.patch6 KBAnonymous (not verified)

Comments

hellomobe’s picture

Same error here - receive error going to build/module path. Latest dev version from 2/10. Uncommented line to move recover.

Anonymous’s picture

Can you give me a little bit more infos about what drupal version you have and what did you do exactly ?
I clear cache all the time and don't get any error like that.

helmo’s picture

Status: Active » Postponed (maintainer needs more info)

Back then I probably had a drupal 7.10.

I've not been able to reproduce this on a clean dev environment with Drupal 7.12

helmo’s picture

I noticed #1261338: Sweaver editor broken after cache clear is a similar issue.

And from what I remember I was also testing fontyourface at the time. A very short test with fontyourface did not reveal a problem.

helmo’s picture

Status: Postponed (maintainer needs more info) » Active

After reading #1460356: What do you think of those new changements made lately ? I decided to pickup the latest dev version.

After running drush dl sweaver-7.x-1.x-dev and drush up the problem re-appeared.

$ drush dl sweaver-7.x-1.1
Project sweaver (7.x-1.1) downloaded to /tmp/drupal-7.x-dev/sites/all/modules/sweaver.                                                            [success]
helmo@kirk:/tmp/drupal-7.x-dev/sites/dev7.localhost$ drush si 
You are about to DROP all tables in your 'drupal_test' database. Do you want to continue? (y/n): y
Starting Drupal installation. This takes a few seconds ...                                                                                        [ok]
Installation complete.  User name: admin  User password: QDwN4DpScQ                                                                               [ok]
helmo@kirk:/tmp/drupal-7.x-dev/sites/dev7.localhost$ drush @dev7.localhost pm-enable --yes devel devel_generate module_filter fontyourface_ui google_fonts_api
The following extensions will be enabled: devel, devel_generate, module_filter, fontyourface_ui, google_fonts_api, ctools, views, fontyourface
Do you really want to continue? (y/n): y
ctools was enabled successfully.                                                                                                                  [ok]
devel_generate was enabled successfully.                                                                                                          [ok]
fontyourface was enabled successfully.                                                                                                            [ok]
fontyourface_ui was enabled successfully.                                                                                                         [ok]
module_filter was enabled successfully.                                                                                                           [ok]
google_fonts_api was enabled successfully.                                                                                                        [ok]
views was enabled successfully.                                                                                                                   [ok]
devel was enabled successfully.                                                                                                                   [ok]
Google import complete.                                                                                                                           [status]
FirePHP already present. No download required.                                                                                                    [ok]
helmo@kirk:/tmp/drupal-7.x-dev/sites/dev7.localhost$ drush @dev7.localhost pm-enable --yes sweaver
The following extensions will be enabled: sweaver
Do you really want to continue? (y/n): y
sweaver was enabled successfully.                                                                                                                 [ok]
helmo@kirk:/tmp/drupal-7.x-dev/sites/dev7.localhost$ drush dl sweaver-7.x-1.x-dev
Install location /tmp/drupal-7.x-dev/sites/all/modules/sweaver already exists. Do you want to overwrite it? (y/n): y
Project sweaver (7.x-1.x-dev) downloaded to /tmp/drupal-7.x-dev/sites/all/modules/sweaver.                                                        [success]
helmo@kirk:/tmp/drupal-7.x-dev/sites/dev7.localhost$ drush cc all
'all' cache was cleared                                                                                                                           [success]
helmo@kirk:/tmp/drupal-7.x-dev/sites/dev7.localhost$ drush up
PHP Fatal error:  Call to a member function sweaver_theme() on a non-object in /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.registry.inc on line 69
PHP Stack trace:
PHP   1. {main}() /home/helmo/src/drupal/drush/drush.php:0
PHP   2. drush_main() /home/helmo/src/drupal/drush/drush.php:14
PHP   3. _drush_bootstrap_and_dispatch() /home/helmo/src/drupal/drush/drush.php:59
PHP   4. drush_dispatch() /home/helmo/src/drupal/drush/drush.php:90
PHP   5. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:159
PHP   6. drush_command() /home/helmo/src/drupal/drush/includes/command.inc:0
PHP   7. _drush_invoke_hooks() /home/helmo/src/drupal/drush/includes/command.inc:192
PHP   8. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:318
PHP   9. drush_pm_update() /home/helmo/src/drupal/drush/includes/command.inc:0
PHP  10. drush_invoke() /home/helmo/src/drupal/drush/commands/pm/pm.drush.inc:1163
PHP  11. drush_dispatch() /home/helmo/src/drupal/drush/includes/command.inc:38
PHP  12. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:159
PHP  13. drush_command() /home/helmo/src/drupal/drush/includes/command.inc:0
PHP  14. _drush_invoke_hooks() /home/helmo/src/drupal/drush/includes/command.inc:192
PHP  15. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:318
PHP  16. drush_pm_updatecode() /home/helmo/src/drupal/drush/includes/command.inc:0
PHP  17. drush_get_extensions() /home/helmo/src/drupal/drush/commands/pm/updatecode.pm.inc:23
PHP  18. drush_get_modules() /home/helmo/src/drupal/drush/includes/environment.inc:818
PHP  19. system_rebuild_module_data() /home/helmo/src/drupal/drush/commands/core/drupal/environment.inc:17
PHP  20. _system_rebuild_module_data() /tmp/drupal-7.x-dev/modules/system/system.module:2429
PHP  21. drupal_alter() /tmp/drupal-7.x-dev/modules/system/system.module:2401
PHP  22. field_system_info_alter() /tmp/drupal-7.x-dev/includes/module.inc:1018
PHP  23. l() /tmp/drupal-7.x-dev/modules/field/field.module:408
PHP  24. theme_get_registry() /tmp/drupal-7.x-dev/includes/common.inc:2373
PHP  25. call_user_func_array() /tmp/drupal-7.x-dev/includes/theme.inc:263
PHP  26. _theme_load_registry() /tmp/drupal-7.x-dev/includes/theme.inc:0
PHP  27. ThemeRegistry->__construct() /tmp/drupal-7.x-dev/includes/theme.inc:321
PHP  28. ThemeRegistry->initializeRegistry() /tmp/drupal-7.x-dev/includes/theme.inc:379
PHP  29. theme_get_registry() /tmp/drupal-7.x-dev/includes/theme.inc:395
PHP  30. call_user_func_array() /tmp/drupal-7.x-dev/includes/theme.inc:263
PHP  31. _theme_load_registry() /tmp/drupal-7.x-dev/includes/theme.inc:0
PHP  32. _theme_build_registry() /tmp/drupal-7.x-dev/includes/theme.inc:311
PHP  33. _theme_process_registry() /tmp/drupal-7.x-dev/includes/theme.inc:672
PHP  34. sweaver_theme() /tmp/drupal-7.x-dev/includes/theme.inc:520
PHP  35. _sweaver_theme() /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.module:65

Fatal error: Call to a member function sweaver_theme() on a non-object in /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.registry.inc on line 69

Call Stack:
    0.0004     370804   1. {main}() /home/helmo/src/drupal/drush/drush.php:0
    0.0290    3038080   2. drush_main() /home/helmo/src/drupal/drush/drush.php:14
    0.1611    7513568   3. _drush_bootstrap_and_dispatch() /home/helmo/src/drupal/drush/drush.php:59
    0.4628   27356532   4. drush_dispatch() /home/helmo/src/drupal/drush/drush.php:90
    0.6484   27528744   5. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:159
    0.6484   27528936   6. drush_command() /home/helmo/src/drupal/drush/includes/command.inc:0
    0.6489   27531556   7. _drush_invoke_hooks() /home/helmo/src/drupal/drush/includes/command.inc:192
    0.6497   27564476   8. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:318
    0.6497   27564668   9. drush_pm_update() /home/helmo/src/drupal/drush/includes/command.inc:0
    0.6497   27564916  10. drush_invoke() /home/helmo/src/drupal/drush/commands/pm/pm.drush.inc:1163
    0.6852   27589284  11. drush_dispatch() /home/helmo/src/drupal/drush/includes/command.inc:38
    0.7649   28986876  12. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:159
    0.7649   28987068  13. drush_command() /home/helmo/src/drupal/drush/includes/command.inc:0
    0.7654   28989540  14. _drush_invoke_hooks() /home/helmo/src/drupal/drush/includes/command.inc:192
    0.7684   29201668  15. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:318
    0.7684   29201860  16. drush_pm_updatecode() /home/helmo/src/drupal/drush/includes/command.inc:0
    0.7702   29247064  17. drush_get_extensions() /home/helmo/src/drupal/drush/commands/pm/updatecode.pm.inc:23
    0.7715   29282596  18. drush_get_modules() /home/helmo/src/drupal/drush/includes/environment.inc:818
    0.7715   29282596  19. system_rebuild_module_data() /home/helmo/src/drupal/drush/commands/core/drupal/environment.inc:17
    0.7715   29282860  20. _system_rebuild_module_data() /tmp/drupal-7.x-dev/modules/system/system.module:2429
    0.8603   29456892  21. drupal_alter() /tmp/drupal-7.x-dev/modules/system/system.module:2401
    0.8603   29457012  22. field_system_info_alter() /tmp/drupal-7.x-dev/includes/module.inc:1018
    0.8611   29466312  23. l() /tmp/drupal-7.x-dev/modules/field/field.module:408
    0.8611   29466864  24. theme_get_registry() /tmp/drupal-7.x-dev/includes/common.inc:2373
    0.8611   29467400  25. call_user_func_array() /tmp/drupal-7.x-dev/includes/theme.inc:263
    0.8611   29467844  26. _theme_load_registry() /tmp/drupal-7.x-dev/includes/theme.inc:0
    0.8611   29468988  27. ThemeRegistry->__construct() /tmp/drupal-7.x-dev/includes/theme.inc:321
    0.8612   29469196  28. ThemeRegistry->initializeRegistry() /tmp/drupal-7.x-dev/includes/theme.inc:379
    0.8612   29469196  29. theme_get_registry() /tmp/drupal-7.x-dev/includes/theme.inc:395
    0.8612   29469328  30. call_user_func_array() /tmp/drupal-7.x-dev/includes/theme.inc:263
    0.8612   29469708  31. _theme_load_registry() /tmp/drupal-7.x-dev/includes/theme.inc:0
    0.8615   29469796  32. _theme_build_registry() /tmp/drupal-7.x-dev/includes/theme.inc:311
    1.0244   36982944  33. _theme_process_registry() /tmp/drupal-7.x-dev/includes/theme.inc:672
    1.0244   36999976  34. sweaver_theme() /tmp/drupal-7.x-dev/includes/theme.inc:520
    1.0281   37349352  35. _sweaver_theme() /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.module:65

Drush command terminated abnormally due to an unrecoverable error.                                                                                [error]
Error: Call to a member function sweaver_theme() on a non-object in /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.registry.inc, line 69
helmo@kirk:/tmp/drupal-7.x-dev/sites/dev7.localhost$ drush updb
The following updates are pending:

sweaver module : 
  7100 - 

Do you wish to run all pending updates? (y/n): y
Performing sweaver_update_7100                                                                                                                    [ok]
Finished performing updates.                                                                                                                      [ok]
helmo@kirk:/tmp/drupal-7.x-dev/sites/dev7.localhost$ drush up
PHP Fatal error:  Call to a member function sweaver_theme() on a non-object in /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.registry.inc on line 69
PHP Stack trace:
PHP   1. {main}() /home/helmo/src/drupal/drush/drush.php:0
PHP   2. drush_main() /home/helmo/src/drupal/drush/drush.php:14
PHP   3. _drush_bootstrap_and_dispatch() /home/helmo/src/drupal/drush/drush.php:59
PHP   4. drush_dispatch() /home/helmo/src/drupal/drush/drush.php:90
PHP   5. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:159
PHP   6. drush_command() /home/helmo/src/drupal/drush/includes/command.inc:0
PHP   7. _drush_invoke_hooks() /home/helmo/src/drupal/drush/includes/command.inc:192
PHP   8. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:318
PHP   9. drush_pm_update() /home/helmo/src/drupal/drush/includes/command.inc:0
PHP  10. drush_invoke() /home/helmo/src/drupal/drush/commands/pm/pm.drush.inc:1163
PHP  11. drush_dispatch() /home/helmo/src/drupal/drush/includes/command.inc:38
PHP  12. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:159
PHP  13. drush_command() /home/helmo/src/drupal/drush/includes/command.inc:0
PHP  14. _drush_invoke_hooks() /home/helmo/src/drupal/drush/includes/command.inc:192
PHP  15. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:318
PHP  16. drush_pm_updatecode() /home/helmo/src/drupal/drush/includes/command.inc:0
PHP  17. drush_get_extensions() /home/helmo/src/drupal/drush/commands/pm/updatecode.pm.inc:23
PHP  18. drush_get_modules() /home/helmo/src/drupal/drush/includes/environment.inc:818
PHP  19. system_rebuild_module_data() /home/helmo/src/drupal/drush/commands/core/drupal/environment.inc:17
PHP  20. _system_rebuild_module_data() /tmp/drupal-7.x-dev/modules/system/system.module:2429
PHP  21. drupal_alter() /tmp/drupal-7.x-dev/modules/system/system.module:2401
PHP  22. field_system_info_alter() /tmp/drupal-7.x-dev/includes/module.inc:1018
PHP  23. l() /tmp/drupal-7.x-dev/modules/field/field.module:408
PHP  24. theme_get_registry() /tmp/drupal-7.x-dev/includes/common.inc:2373
PHP  25. call_user_func_array() /tmp/drupal-7.x-dev/includes/theme.inc:263
PHP  26. _theme_load_registry() /tmp/drupal-7.x-dev/includes/theme.inc:0
PHP  27. ThemeRegistry->__construct() /tmp/drupal-7.x-dev/includes/theme.inc:321
PHP  28. ThemeRegistry->initializeRegistry() /tmp/drupal-7.x-dev/includes/theme.inc:379
PHP  29. theme_get_registry() /tmp/drupal-7.x-dev/includes/theme.inc:395
PHP  30. call_user_func_array() /tmp/drupal-7.x-dev/includes/theme.inc:263
PHP  31. _theme_load_registry() /tmp/drupal-7.x-dev/includes/theme.inc:0
PHP  32. _theme_build_registry() /tmp/drupal-7.x-dev/includes/theme.inc:311
PHP  33. _theme_process_registry() /tmp/drupal-7.x-dev/includes/theme.inc:672
PHP  34. sweaver_theme() /tmp/drupal-7.x-dev/includes/theme.inc:520
PHP  35. _sweaver_theme() /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.module:65

Fatal error: Call to a member function sweaver_theme() on a non-object in /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.registry.inc on line 69

Call Stack:
    0.0006     370804   1. {main}() /home/helmo/src/drupal/drush/drush.php:0
    0.0326    3038080   2. drush_main() /home/helmo/src/drupal/drush/drush.php:14
    0.1165    7509488   3. _drush_bootstrap_and_dispatch() /home/helmo/src/drupal/drush/drush.php:59
    0.3223   26640752   4. drush_dispatch() /home/helmo/src/drupal/drush/drush.php:90
    0.5737   26813696   5. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:159
    0.5737   26813888   6. drush_command() /home/helmo/src/drupal/drush/includes/command.inc:0
    0.5744   26816508   7. _drush_invoke_hooks() /home/helmo/src/drupal/drush/includes/command.inc:192
    0.5756   26849328   8. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:318
    0.5756   26849520   9. drush_pm_update() /home/helmo/src/drupal/drush/includes/command.inc:0
    0.5756   26849768  10. drush_invoke() /home/helmo/src/drupal/drush/commands/pm/pm.drush.inc:1163
    0.6287   26872780  11. drush_dispatch() /home/helmo/src/drupal/drush/includes/command.inc:38
    0.7464   28269524  12. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:159
    0.7464   28269716  13. drush_command() /home/helmo/src/drupal/drush/includes/command.inc:0
    0.7471   28272188  14. _drush_invoke_hooks() /home/helmo/src/drupal/drush/includes/command.inc:192
    0.7510   28484908  15. call_user_func_array() /home/helmo/src/drupal/drush/includes/command.inc:318
    0.7510   28485100  16. drush_pm_updatecode() /home/helmo/src/drupal/drush/includes/command.inc:0
    0.7530   28530232  17. drush_get_extensions() /home/helmo/src/drupal/drush/commands/pm/updatecode.pm.inc:23
    0.7548   28565740  18. drush_get_modules() /home/helmo/src/drupal/drush/includes/environment.inc:818
    0.7548   28565740  19. system_rebuild_module_data() /home/helmo/src/drupal/drush/commands/core/drupal/environment.inc:17
    0.7548   28566004  20. _system_rebuild_module_data() /tmp/drupal-7.x-dev/modules/system/system.module:2429
    0.8503   28740020  21. drupal_alter() /tmp/drupal-7.x-dev/modules/system/system.module:2401
    0.8503   28740140  22. field_system_info_alter() /tmp/drupal-7.x-dev/includes/module.inc:1018
    0.8538   29111464  23. l() /tmp/drupal-7.x-dev/modules/field/field.module:408
    0.8538   29112016  24. theme_get_registry() /tmp/drupal-7.x-dev/includes/common.inc:2373
    0.8538   29112552  25. call_user_func_array() /tmp/drupal-7.x-dev/includes/theme.inc:263
    0.8538   29112996  26. _theme_load_registry() /tmp/drupal-7.x-dev/includes/theme.inc:0
    0.8538   29114140  27. ThemeRegistry->__construct() /tmp/drupal-7.x-dev/includes/theme.inc:321
    0.8539   29114348  28. ThemeRegistry->initializeRegistry() /tmp/drupal-7.x-dev/includes/theme.inc:379
    0.8539   29114348  29. theme_get_registry() /tmp/drupal-7.x-dev/includes/theme.inc:395
    0.8539   29114480  30. call_user_func_array() /tmp/drupal-7.x-dev/includes/theme.inc:263
    0.8539   29114860  31. _theme_load_registry() /tmp/drupal-7.x-dev/includes/theme.inc:0
    0.8542   29114948  32. _theme_build_registry() /tmp/drupal-7.x-dev/includes/theme.inc:311
    1.0023   36617964  33. _theme_process_registry() /tmp/drupal-7.x-dev/includes/theme.inc:672
    1.0023   36634996  34. sweaver_theme() /tmp/drupal-7.x-dev/includes/theme.inc:520
    1.0047   36984352  35. _sweaver_theme() /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.module:65

Drush command terminated abnormally due to an unrecoverable error.                                                                                [error]
Error: Call to a member function sweaver_theme() on a non-object in /tmp/drupal-7.x-dev/sites/all/modules/sweaver/sweaver.registry.inc, line 69
Anonymous’s picture

I had this problem once, it was due to an update error. You clear cache after downloading the dev version, this is weird. Try running directly pm-update, it should work just fine.

Anonymous’s picture

StatusFileSize
new6 KB

Patched recently

Anonymous’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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