I had updated location module and after that I'm not able to update my system anymore. Everytime that I run the update scripts my system trough out these errors:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: http://ditcons.llc/update.php?id=228&op=do StatusText: error ResponseText: Recoverable fatal error: Argument 1 passed to InsertQuery::from() must implement interface SelectQueryInterface, string given, called in /var/www/clients/client1/web4/web/sites/all/modules/location/contrib/location_cck/location_cck.install on line 30 and defined in InsertQuery->from() (line 563 of /var/www/clients/client1/web4/web/includes/database/query.inc).
The update process was aborted prematurely while running update #6301 in location_cck.module. All errors have been logged. You may need to check the watchdog database table manually.
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'fetch_task::token' for key 'PRIMARY': INSERT INTO {cache_update} (cid, created) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => fetch_task::token [:db_insert_placeholder_1] => 1298874300 ) in _update_create_fetch_task() (line 246 of /var/www/clients/client1/web4/web/modules/update/update.fetch.inc).
Any help will be appreciated.
PD: I'm running D7.
Best regards,
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | location-loc_cck_update_error-1075578-1.patch | 658 bytes | rooby |
Comments
Comment #1
rooby commentedI haven't had a chance to test it but this should fix the error.
It is for 7.x-3.x-dev.
Can you test it and let me know if it fixes the problem?
You should be able to put the patch file in the location module directory and apply it using:
For more info if you need it see http://drupal.org/patch/apply
Comment #2
brandy.brown commentedthis patch did not work for me, but for the record, I am running an update from D 7.2 to D 7.12
Comment #3
rooby commentedThe version of drupal shouldn't affeect this particular error.
Are you seeing the exact same error as in the original post?
Comment #4
brandy.brown commentedwell rooby, I'm an idiot. I didn't read the first post very well. That's not the error I am getting at all! So sorry!
Comment #5
rooby commentedNo worries.
Comment #6
Refineo commented@campeon38, can you let us know if the patch in #1 fixes your issue ?
Comment #7
genebobmiller commentedHad the same problem as campeon38 and can confirm that this patch worked for me. Thanks rooby!
Comment #8
podarok#1931088: [META] Fixing tests tests were broken, so triggering to active
Comment #9
podarokbot
Comment #10
podarok#1 commited pushed to 7.x-3.x
thanks!!!
Comment #12
stevensunsunsun commentedSame issue, using
location-7.x-3.0
location-7.x-3.1
No longer able to access Reports > Status report, or save a Block after making an edit. Error along the lines of:
Fatal error: Call to undefined function field_info_field_map() in /home/sitename/public_html/sites/all/modules/location/contrib/location_cck/location_cck.module on line 560
Comment #13
leahmd commentedAfter getting the same fatal error as #12, I found that the function field_info_field_map requires Drupal 7.22. Upgrade fixed the issue.
https://api.drupal.org/api/drupal/modules%21field%21field.info.inc/funct...