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,

Comments

rooby’s picture

Component: Data update » Code
Assigned: campeon38 » Unassigned
Category: support » bug
Status: Needs work » Needs review
StatusFileSize
new658 bytes

I 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:

patch < location-loc_cck_update_error-1075578-1.patch

For more info if you need it see http://drupal.org/patch/apply

brandy.brown’s picture

this patch did not work for me, but for the record, I am running an update from D 7.2 to D 7.12

rooby’s picture

The version of drupal shouldn't affeect this particular error.
Are you seeing the exact same error as in the original post?

brandy.brown’s picture

well 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!

rooby’s picture

No worries.

Refineo’s picture

@campeon38, can you let us know if the patch in #1 fixes your issue ?

genebobmiller’s picture

Had the same problem as campeon38 and can confirm that this patch worked for me. Thanks rooby!

podarok’s picture

Status: Needs review » Active

#1931088: [META] Fixing tests tests were broken, so triggering to active

podarok’s picture

Status: Active » Needs review

bot

podarok’s picture

Status: Needs review » Fixed

#1 commited pushed to 7.x-3.x
thanks!!!

Status: Fixed » Closed (fixed)

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

stevensunsunsun’s picture

Same 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

leahmd’s picture

After 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...