AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://domain.com/update.php?op=selection&token=ZAIU0XaQOZmKWryS07qxMSi2... StatusText: parsererror ResponseText: Fatal error: Call to undefined function apachesolr_load_all_environments() in /var/aegir/platforms/D7/sites/all/modules/apachesolr/apachesolr_search.install on line 379

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webmaster-eddie’s picture

DB update failing is 7006

webmaster-eddie’s picture

Updating to dev version does not help, but produces another update 7016 which also fails, so because of apachesolr, i now have 4 db updates failing:

7006 - apachesolr search module
7016 - apachesolr module
7077 - system module
7003 - aggregrator module

Any tips on how to get these other db schema updates to work without uninstalling apachesolr from the platform / site?

webmaster-eddie’s picture

Version: 7.x-1.1 » 7.x-1.x-dev

same problem with dev version

Nick_vh’s picture

apachesolr_load_all_environments is a normal function in apachesolr.module. I wonder if something broke in latest drupal?
Can you, to test add an module_load_include() function in the update function?

Thanks

webmaster-eddie’s picture

UPDATE

I had the apachesolr modules installed but not activated. Activating them allowed the dB schema updates to work. Sorry about this, but it shouldn't really matter whether or not a module is enabled as to whether or not it prevents other core modules from updating db schema properly?

Nick_vh’s picture

Status: Active » Closed (cannot reproduce)

apachesolr_search depends on apachesolr. If you somehow broke your system table, that is not the responsibility of this module. It seems something broke in your install and I don't think these modules can do anything about that.

I am going to close this issue unless you think you can provide a fix. I hope that is ok?

xurizaemon’s picture

Status: Needs review » Needs work

This error occurs if a site is upgraded from D6 to D7 with ApacheSolr disabled as per Drupal 7 Upgrade process.

I suspect Eddie didn't break his system table, he was just following the upgrade docs.

To repro:

1. put system in state where apachesolr_update_7006 is going to run (eg upgrade to D7)
2. disable apachesolr
3. run drush updb

Updates for disabled modules are run during update-db. This confused me at first but it does make sense.

xurizaemon’s picture

Title: UNable to do DB update and this appears to be blocking a recent core 7.17 system db update » Fatal error on DB update - undefined function apachesolr_load_all_environments()
Status: Closed (cannot reproduce) » Needs review
FileSize
624 bytes

patch

travelertt’s picture

Status: Needs work » Reviewed & tested by the community

Worked for me! Thanks

Nick_vh’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! Committed

Status: Fixed » Closed (fixed)

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