Closed (fixed)
Project:
Search API
Version:
7.x-1.x-dev
Component:
General code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2016 at 14:53 UTC
Updated:
20 May 2016 at 06:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alan-ps commentedComment #3
michel.settembrino commentedI don't know if it is related to this issue but yesterday I applied the latest update (7.x-1.18 when I was running on 7.x-1.17) and due to this I can't update or create content.
I am getting this error: "PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'item_id' cannot be null: INSERT INTO {search_api_et_item} (item_id, index_id, changed) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => 17 [:db_insert_placeholder_2] => 1 ) in SearchApiAbstractDataSourceController->trackItemInsert() (regel 617 van search_api/includes/datasource.inc)."
Reverting to version 7.x-1.17 solved my issue.
Comment #4
alan-ps commentedSorry, forgot about the screenshot. I have uploaded an image with my error.
Comment #5
drunken monkeyThanks a lot for spotting this! Your patch looks also great, thanks again!
I've spotted two more problems with the code in that method, we should fix them too since we're already at it. Patch attached.
@ michel.settembrino: That sounds like an entirely different problem, and moreover not like one connected to the 1.17->1.18 upgrade. Did you maybe also upgrade some other modules at the same time?
Comment #6
drunken monkeyComment #8
drunken monkeySince no-one complained: committed.
Thanks again, everyone!
Comment #9
michel.settembrino commented@drunken monkey,
This problem has been solved by upgrading the module search_api_et. I was running version 7.x-2.0-alpha1.
I had no issue but when I upgraded the module search_api I got this issue. So the upgrade of search_api_et was required.
But now I am getting some memory issues. My colleagues are investigating this new issue.
Best regards,
Michel.