hello
I have created a view with the gallery fron the user. With panels, I have overriden the user page and insert these view in the user space.
When I look the profile in french, no problems, galleries are ok but when I change the language
arabic for example and I come back to the profil page, I have a lot of warnings :
warning: array_keys(): The first argument should be an array in .../modules/node_gallery/includes/node_gallery_handler_field_gid.inc on line 47.
warning: array_fill(): Number of elements must be positive in /www/htdocs/production/includes/database.inc on line 241.
warning: implode(): Invalid arguments passed in /www/htdocs/production/includes/database.inc on line 241.
user warning: 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 ')' at line 2 query: SELECT n.uid, n.nid, nga.access_type, nga.password FROM node n INNER JOIN node_gallery_access nga ON n.nid = nga.nid WHERE n.nid IN () in .../modules/node_gallery/includes/node_gallery_handler_field_gid.inc on line 49.
warning: array_merge(): Argument #2 is not an array in .../modules/node_gallery/includes/node_gallery_handler_field_gid.inc on line 55
and no galleries.
Comments
Comment #1
codigovision commentedI am having a similar problem, more specifically i am using the i18n module and i translated the gallery node and the image node but it doesn't work. when you go to the gallery in the translated language it has no images. Is node gallery i18n compatible?
Comment #2
pixelpreview@gmail.com commentedah ah I am not alone :-)
Comment #3
dddave commented@1 are you using Panels, too? Because i18n tends to claim overrides for itself (e.g.: the node/add pages) and doesn't work propperly with Panels. I filed an issue at i18n a while ago but noone reacted.
Can these warnings be verified on standalone translated nodes, i.e. nodes not in contact with panels or views?
Comment #4
kmontyComment #5
pixelpreview@gmail.com commentedhi
yes panels are installed in my site
and effectively the warning is showed on a panel page
I will try to make gallery nodes translatable to see if it's the problem
Comment #6
dddave commentedGuess this was in fact a Panels vs i18n issue and not something caused by NG.