Hi,
I have a big pb with
GalleryItem.
As everything was apparently ok I found many pages using a
GalleryItem TV (to pickup an image and to manipulate its size...) where the
manager do not display anything except the caption of this tv.
If I duplicate one good page, rename it and set everything for the corrupted page it's ok..for a moment then the issue is back.
Looking at the Chrome Console I found this Uncaught SyntaxError: Unexpected identifier: error look at the tv tab in manager.
All the code and data are here but seams there's some mismatch error.
In this example, the
image is actually the 107, it's name is right BUT "
gal_filename":"14/145.JPG" is
absolutly wrong!!
it's as listed : "gal_src":"/assets/gallery/15/107.JPG" is ok
This happens for all pages I try to setup now!
edit : I tried for this image to change the gal_filename directly with phpmyadmin.
Now the the
returned code in the manager is what I think i should be (?) but the setting is still blank and the Uncaught Syntax error is still there so there's no way for the client to see, modify this image.
In frontend the image is (for the moment) ok (probably because the path is now ok in db) but coming back later on those pages the issue is back.
It's only pages in EN context (web is FR and default). Babel is used.
I deleted corrupted pages, remade the translation linking, then on a new page the Galitem tv is here, setup again an image. it's ok. coming back later the issue is back again!!
// <![CDATA[
Ext.onReady(function() {
MODx.load({
xtype: 'gal-panel-tv'
,tv: '24'
,tvValue: '{"gal_id":107,"gal_name":"IMG_4817.JPG","gal_filename":"14/145.JPG","gal_description":"Ocean appartment's bed room","gal_mediatype":"image","gal_url":"","gal_createdon":"2012-10-18 14:49:56","gal_createdby":1,"gal_active":1,"gal_duration":"","gal_streamer":null,"gal_watermark_pos":"tl","gal_image_width":294,"gal_image_height":196,"gal_image_type":2,"gal_src":"/assets/gallery/15/107.JPG","gal_orig_width":980,"gal_orig_height":654,"gal_album":"15","gal_watermark-text":"","gal_watermark-text-position":"BL","gal_other":"","gal_rotate":0,"gal_sizer":"30","gal_cropCoords":"","gal_cropTop":0,"gal_cropRight":0,"gal_cropBottom":0,"gal_cropLeft":0,"gal_class":"lazy bordure"}'
Uncaught SyntaxError: Unexpected identifier
,data: {"gal_id":107,"gal_name":"IMG_4817.JPG","gal_filename":"14\/145.JPG","gal_description":"Ocean appartment's bed room","gal_mediatype":"image","gal_url":"","gal_createdon":"2012-10-18 14:49:56","gal_createdby":1,"gal_active":1,"gal_duration":"","gal_streamer":null,"gal_watermark_pos":"tl","gal_image_width":294,"gal_image_height":196,"gal_image_type":2,"gal_src":"\/assets\/gallery\/15\/107.JPG","gal_orig_width":980,"gal_orig_height":654,"gal_album":"15","gal_watermark-text":"","gal_watermark-text-position":"BL","gal_other":"","gal_rotate":0,"gal_sizer":"30","gal_cropCoords":"","gal_cropTop":0,"gal_cropRight":0,"gal_cropBottom":0,"gal_cropLeft":0,"gal_class":"lazy bordure"} });
});
// ]]>
</script>
It's very urgent to solve this
Thanks a lot
[ed. note: elz064 last edited this post 13 years, 9 months ago.]