Hi all,
I've installed the latest dev and updated entity API to dev version as well. Building views with fields seems to be working fine, except when I save; I get a 500 error first and then when attempting to re-save I get:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'entity_search' for key 'name': INSERT INTO {views_view} (name, description, tag, base_table, human_name, core) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => business_browser [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => default [:db_insert_placeholder_3] => search_api_index_profile_index [:db_insert_placeholder_4] => Business Browser [:db_insert_placeholder_5] => 7 ) in views_db_object->save_row() (line 1977 of sites/all/modules/views/includes/view.inc).
I've tried clearing the cache - but I keep getting a 500 error when doing this - which also seems to be a new problem. When I try to delete the offending views I get an access denied page and this message
Notice: Undefined property: view::$export_type in ctools_export_ui->access() (line 128 of modules/ctools/plugins/export_ui/ctools_export_ui.class.php).
Any ideas on what's causing this problem? Do I need to update Views to the latest Dev also?
Thanks
Comments
Comment #1
drunken monkeyCan't really tell, seems like a Views problem to me. The message says that there is already a view with that name – don't know what causes Views to try to save it as a new one.
My advice is to move this issue to the Views issue queue and if it's really the Search API's fault, we might at least have a clearer idea of what might go wrong there.
Comment #2
jaxxham commentedThanks for the response. I'll try that. Should I be using the latest Views Dev with the latest Search API Dev?
Views was working normally with search indexes until the lastest Search API update. The problem seems to occur when saving a view of a search index. It times out when saving for some reason and gives a 500 error. Also, the error mentioned earlier, about clearing caches, disappears when I disable the Search API module.
Comment #3
drunken monkeyUsing the latest dev of all related modules is always a good idea, at least for trouble-shooting purposes.
Comment #4
jaxxham commentedUpdating to the latest dev of Views has fixed the problem. Thanks.