Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Here's the crash backtrace (I have core patched with 42 from #1158322: Add backtrace to all errors):
Fatal error: Class name must be a valid object or a string in /home/ajd/projects/tv411/app/drupal/includes/common.inc on line 7519 Call Stack: 0.0002 335224 1. {main}() /home/ajd/projects/tv411/app/drupal/install.php:0 0.0038 745116 2. install_drupal() /home/ajd/projects/tv411/app/drupal/install.php:26 0.2576 8428392 3. install_run_tasks() /home/ajd/projects/tv411/app/drupal/includes/install.core.inc:79 1.1221 36926812 4. install_run_task() /home/ajd/projects/tv411/app/drupal/includes/install.core.inc:342 1.1229 37031472 5. _batch_page() /home/ajd/projects/tv411/app/drupal/includes/install.core.inc:452 1.1232 37037196 6. _batch_do() /home/ajd/projects/tv411/app/drupal/includes/batch.inc:80 1.1232 37037196 7. _batch_process() /home/ajd/projects/tv411/app/drupal/includes/batch.inc:161 1.1243 37124972 8. call_user_func_array() /home/ajd/projects/tv411/app/drupal/includes/batch.inc:284 1.1243 37125008 9. _install_module_batch() /home/ajd/projects/tv411/app/drupal/includes/batch.inc:0 1.1243 37125276 10. module_enable() /home/ajd/projects/tv411/app/drupal/includes/install.core.inc:1529 1.1939 36311444 11. registry_update() /home/ajd/projects/tv411/app/drupal/includes/module.inc:425 1.1948 36355400 12. _registry_update() /home/ajd/projects/tv411/app/drupal/includes/bootstrap.inc:3001 1.2151 37687460 13. drupal_alter() /home/ajd/projects/tv411/app/drupal/includes/registry.inc:65 1.2155 37703184 14. ctools_registry_files_alter() /home/ajd/projects/tv411/app/drupal/includes/module.inc:1003 1.2158 37718476 15. _ctools_registry_files_alter() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/ctools/ctools.module:474 1.2236 38007420 16. ctools_get_plugins() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/ctools/includes/registry.inc:33 1.2236 38008652 17. ctools_plugin_load_hooks() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/ctools/includes/plugins.inc:260 1.2239 38009872 18. ctools_plugin_process() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/ctools/includes/plugins.inc:637 1.2239 38010060 19. media_media_browser_plugin_info() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/ctools/includes/plugins.inc:674 1.2239 38012592 20. views_get_enabled_views() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/media/includes/media.browser.inc:429 1.2239 38012592 21. views_get_all_views() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/views.module:1339 1.2239 38012716 22. ctools_export_crud_load_all() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/views.module:1332 1.2239 38012788 23. ctools_export_load_object() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/ctools/includes/export.inc:118 1.2246 38020924 24. _ctools_export_get_defaults() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/ctools/includes/export.inc:461 1.2289 38415732 25. comment_views_default_views() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/ctools/includes/export.inc:636 1.2329 38956956 26. views_db_object->new_display() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/modules/comment.views_default.inc:25 1.2329 38956956 27. views_db_object->add_display() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/includes/view.inc:2172 1.2329 38957032 28. views_fetch_plugin_data() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/includes/view.inc:2076 1.2332 38984264 29. _views_fetch_plugin_data() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/views.module:1156 1.2463 40761660 30. views_discover_plugins() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/includes/cache.inc:75 1.2468 40774948 31. entity_views_plugins() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/includes/plugins.inc:388 1.2468 40774948 32. views_fetch_data() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/entity/views/entity.views.inc:37 1.2468 40775080 33. _views_fetch_data() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/views.module:1145 1.2468 40775248 34. module_invoke_all() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/views/includes/cache.inc:30 1.2482 40886396 35. call_user_func_array() /home/ajd/projects/tv411/app/drupal/includes/module.inc:818 1.2482 40886588 36. entity_views_data() /home/ajd/projects/tv411/app/drupal/includes/module.inc:0 1.2503 41081796 37. EntityDefaultViewsController->views_data() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/entity/views/entity.views.inc:23 1.2504 41083376 38. EntityDefaultViewsController->schema_fields() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/entity/views/entity.views.inc:98 1.2504 41083376 39. entity_get_property_info() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/entity/views/entity.views.inc:112 1.2574 41455232 40. drupal_alter() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/entity/includes/entity.property.inc:37 1.2583 41468688 41. profile2_entity_property_info_alter() /home/ajd/projects/tv411/app/drupal/includes/module.inc:1003 1.2583 41468688 42. profile2_get_types() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/profile2/profile2.info.inc:54 1.2583 41468860 43. entity_load_multiple_by_name() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/profile2/profile2.module:141 1.2583 41469024 44. entity_load() /home/ajd/projects/tv411/app/tv411_install/modules/contrib/entity/entity.module:143 1.2583 41469068 45. entity_get_controller() /home/ajd/projects/tv411/app/drupal/includes/common.inc:7486
Comment | File | Size | Author |
---|---|---|---|
#10 | profile2-fix_entity_info_failure_during_install-1307538-10-7.x-1.x-dev.patch | 936 bytes | GuyPaddock |
Comments
Comment #1
fagolooks like media tries to get views data in media_media_browser_plugin_info() during ctools_registry_files_alter() - at which stage probably the registry is not ready to go so the entity-controller fails to load.
Could you try whether the patch for profile2 from http://drupal.org/node/1290986#comment-5083708 solves the issue for you please?
Also, it might be a good idea to solve the issue in media/ctools too - getting views information with a registry not in place can't go well.
Comment #2
fagook, I went ahead and committed it. Just test the *next* dev snapshot or the latest Git checkout please.
Comment #3
fagoComment #4
adamdicarlo CreditAttribution: adamdicarlo commentedI pulled from the 7.x-1.x branch on git just now and still get a crash. Here's the new error message:
Maybe this is a core bug, or an entity API bug? entity_get_info() must be getting called before module_enable() installs the module's schema, right?
Comment #5
cboling CreditAttribution: cboling commentedI received the same problem.
The profile2_entity_info() is being called as part of the drupal_alter() while installing the schema, just after profile2_shema() is called. In my case, this was due to a call in uuid_shema_alter doing an call to module_invoke_all('entity_info').
So, if you have UUID enabled or possibly other modules, you will get this during the install.
I put a try {} catch {} around the db_select call and the following foreach in profile2.module. In the catch block, I just write out the exception message to the watchdog and only saw the failure once.
Not sure if that is the best fix or not, but it may get you working. I will test this some to see if there are any strange problems due to this workaround and will post back to this bug report if I see anything abnormal.
Comment #6
fagoThat's a known uuid problem, look for an entity-info related issue in its queue.
Comment #7
nedjoMarked #1346132: profile_type base table or view not found a duplicate.
A patch at #1311828: Installation fails with SQLSTATE[42S02]: Base table or view not found: 1146 Table 'database.media_type' doesn't exist tries to address another known source of this error, in media module.
Comment #8
GuyPaddock CreditAttribution: GuyPaddock commentedAlso try the patch on comment #13 in #1311820: Don't do a registry_update() before installing a module. It worked for me in #2480297: During site install - PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'entityform_type' in entityform_entity_info() .
Comment #9
GuyPaddock CreditAttribution: GuyPaddock commentedSpoke too soon. The issue cropped up again, even with the patch applied to core.
Attached is a patch for anyone else trying to work around this issue.
Comment #10
GuyPaddock CreditAttribution: GuyPaddock commentedForgot to initialize
$types
. Fixed.Comment #11
SpleshkaThanks for the patch, @GuyPaddock. Although I think this patch will never get into the contrib, because it is not the Profile2 issue. Let me know if you have a reasonable explanation why it should be commited.