I have this error :
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!= .endpoints_r_index AND 1 = '1' AND .endpoints_entity_type = 'node') WHERE (( ' at line 1
and this warning when I save my views : (I don't now if they are linked)
Notice : Undefined index: relation dans views_handler_field_field->access() (ligne 78 dans /home/quickstart/websites/testinsert.org/sites/all/modules/views/modules/field/views_handler_field_field.inc).
I have 2 content types
1 - créateur with 2 fields : "prénom" and "nom" and 2 contents : Créateur 1 and Créateur 2
2 Véhicule ( = car) with 2 fields : " nom" and "immatriculation" and 2 contens : Véhicule 1 and Véhicule 2
and 1 relation type : "louer un vehicule" (rent a car)
and 1 relation : louer un véhicule:
Créateur 1 louer un vehicule Véhicule 1
The attached file is the picture of the views' page
Thank you
| Comment | File | Size | Author |
|---|---|---|---|
| recaap_location_1.PNG | 142.65 KB | altbzh |
Comments
Comment #1
chx commentedPlease export your view and attach it as a text file.
Comment #2
altbzh commentedJ haved removed Relation ...
In one week, I make a new try ...
Thankyou
Comment #3
mikran commentedComment #4
danillonunes commentedGot a similar error, after upgrading from rc3 to rc4. Also, this error comes togheter with a notice "Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of .../includes/entity.inc)."
I'll try to investigate it further.
Comment #5
danillonunes commentedSorry for the delay, I backtraced the bug and it seems that the problem is caused for a wrong value returned for a field value in a loaded entity.
My special case is:
- I have a relation type called r.
- I have a node type called t, with a relation_dummy_field field called d, pointing to some r.
- I have a custom code, which do a
n = node_load(t_nid);and then iterate throughn->field_d[LANGUAGE_NONE], calling arelation_load()for each value.- On Relation rc3, each value is a integer, on rc4, each one is a empty array.
- When I call relation_load() with empty array, errors are dumped, things explode and a baby panda cry.
Comment #6
danillonunes commentedOh, I found it! I had to apply this patch from #1361380: Fulfill $items in hook_field_load in order to use Relation Edit, and I forgot to reapply it after update. I don't know if it's the same case of the issue author, so I'm restoring it back to the original state.
Comment #7
naught101 commentedClosing, after a month with no response. If this re-appears, and is not related to Relation Edit requiring #1361380: Fulfill $items in hook_field_load, feel free to re-open.