Hi, I'm getting the following error when I try so submit the filters form:

PHP message: PHP Fatal error: search_api_admin_index_workflow_submit(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "MetatagSearchAlterCallback" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in search_api/search_api.admin.inc on line 1706

I'm using search_api_db (1.6) and I'm trying to index users with profiles (created with profile2 module).
I suspect there is an issue with the latter.

Comments

vectorbross created an issue. See original summary.

drunken monkey’s picture

Project: Search API » Metatag
Component: General code » Integration with other module

MetatagSearchAlterCallback rather sounds like it comes from the "Metatag" module, I'd say.
I've taken a look at that class definition, and I guess it might be the case that the if (class_exists()) { surrounding the class definition confuses the Drupal Core registry?
This wouldn't be a problem normally, since the class will only be loaded after hook_search_api_alter_callback_info() is invoked, which will load that file anyways – but it could lead to problems when unserializing such an object.

What version of the Metatag module are you using?