Skip to content

Error: Call to undefined method stdClass::save() in search_api.module #93

Description

@kenorb

The following error happens on make install:

build-ads > enable-search-db:
[exec] class_implements(): object or string expected entity.module:463      [warning]
[exec] in_array() expects parameter 2 to be array, boolean given            [warning]
[exec] Creating default object from empty value search_api.module:2629      [warning]
[exec] PHP Fatal error:  Call to undefined method stdClass::save() in sites/all/modules/contrib/search_api/search_api.module on line 2630

OS: Debian
Clean installation from git repo.

Reproducible steps:

  1. Clone repo, then run: make.

  2. When asked for config changes, change the below lines to this:

    # Drupal Build Settings.
    project.drupal.build.site=        true 
    project.drupal.build.stable=      false
    project.drupal.build.type=        full 
    
  3. If you get: 'Sorry, the profile you have chosen cannot be loaded', the Exception: Sorry, the profile you have chosen cannot be loaded. in install_load_profile(). [$15] #17 needs to be fixed first.

  4. When you go further, run: make install, you should see the warnings & errors about search_api module.

Areas to fix: drush/ make files (either different version of module, or add patch file into make file and point to the uploaded file in below link.

Related: https://www.drupal.org/node/2180007

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions