Gallery Field issueshttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues2017-05-12T09:17:31Zhttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/1Gallery field JS error2017-05-12T09:17:31ZSławek SikoraGallery field JS errorGallery field generate Fatal JS error in the add entry form at front and back-end:
```
jquery.min.js?4a8ad77…:2 Uncaught Error: Syntax error, unrecognized expression: data-role=primary
at Function.fa.error (jquery.min.js?4a8ad77…:2)
at fa.tokenize (jquery.min.js?4a8ad77…:2)
at Function.fa (jquery.min.js?4a8ad77…:2)
at Function.a.find (jquery-migrate.min.js?4a8ad77…:2)
at a.fn.init.find (jquery.min.js?4a8ad77…:2)
at a.fn.init.a.fn.find (jquery-migrate.min.js?4a8ad77…:2)
at HTMLDivElement.<anonymous> (field_gallery_edit.js:72)
at Function.each (jquery.min.js?4a8ad77…:2)
at a.fn.init.each (jquery.min.js?4a8ad77…:2)
at HTMLDocument.<anonymous> (field_gallery_edit.js:21)
```
This error breaks working of the GeoMap module, category field in SigsiuTree mode or Entries module in the Ajax mode. Seems like it also affect some gallery functionalities like changing images order or making it primaryGallery field generate Fatal JS error in the add entry form at front and back-end:
```
jquery.min.js?4a8ad77…:2 Uncaught Error: Syntax error, unrecognized expression: data-role=primary
at Function.fa.error (jquery.min.js?4a8ad77…:2)
at fa.tokenize (jquery.min.js?4a8ad77…:2)
at Function.fa (jquery.min.js?4a8ad77…:2)
at Function.a.find (jquery-migrate.min.js?4a8ad77…:2)
at a.fn.init.find (jquery.min.js?4a8ad77…:2)
at a.fn.init.a.fn.find (jquery-migrate.min.js?4a8ad77…:2)
at HTMLDivElement.<anonymous> (field_gallery_edit.js:72)
at Function.each (jquery.min.js?4a8ad77…:2)
at a.fn.init.each (jquery.min.js?4a8ad77…:2)
at HTMLDocument.<anonymous> (field_gallery_edit.js:21)
```
This error breaks working of the GeoMap module, category field in SigsiuTree mode or Entries module in the Ajax mode. Seems like it also affect some gallery functionalities like changing images order or making it primaryRadek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/7File type is not allowed2017-05-18T07:40:24ZSigrid SuskiFile type is not allowedif uploading an image (front- and back-end) I get the message 'file type is not allowed'. If saving the entry then results in,
500 Cannot save fields data. Cannot crop image: Cannot get info about given image. File /tmp/filesc07b78909eb49969698ae7458f86903e/048249aa22311a21d86fdc65e85a97dd/DSC03489.JPG may not be an image or is named improperly. Check the file type and try again... inif uploading an image (front- and back-end) I get the message 'file type is not allowed'. If saving the entry then results in,
500 Cannot save fields data. Cannot crop image: Cannot get info about given image. File /tmp/filesc07b78909eb49969698ae7458f86903e/048249aa22311a21d86fdc65e85a97dd/DSC03489.JPG may not be an image or is named improperly. Check the file type and try again... in1.0Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/5Field type option layout2017-05-18T07:47:09ZSławek SikoraField type option layoutIn the Gallery field configuration information part there is 'weird thing' in the place of the field type option (see attachment), I'm not sure how it should looks exactly, but for example in the info field this option is completely removed!
[screen](/uploads/265417699eb8ec7a102d880845072112/screen.png)In the Gallery field configuration information part there is 'weird thing' in the place of the field type option (see attachment), I'm not sure how it should looks exactly, but for example in the info field this option is completely removed!
[screen](/uploads/265417699eb8ec7a102d880845072112/screen.png)https://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/23no user data nodes2017-05-26T07:50:15ZSigrid Suskino user data nodesinstead of adding the user data nodes, the gallery view (gallery-details) adds only <visitor>SPUser</visitor>.instead of adding the user data nodes, the gallery view (gallery-details) adds only <visitor>SPUser</visitor>.1.0https://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/24image filename instead of title ...2017-06-23T10:07:36ZSigrid Suskiimage filename instead of title ...... shown when editing. Only if field is used as category field.
It happens only if the 'Fields' tab is not shown while opening. Refreshing the page shows the titles again.... shown when editing. Only if field is used as category field.
It happens only if the 'Fields' tab is not shown while opening. Refreshing the page shows the titles again.1.0Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/21can't save entry with gallery field2017-06-23T10:08:19ZSławek Sikoracan't save entry with gallery fieldGot following error when I try to save the form with enabled gallery field:<br />
```
fatal error: Argument 3 passed to Sobi\Input\Input::Arr() must be of the type array
, string given, called in /home/sigsiu52/public_html/test/components/com_sobipro/opt/fields/gallery.php
on line 212 and defined in <b>phar:///home/sigsiu52/public_html/test/libraries/sobi/Sobi-1.0.2.phar
.tar.gz/Input/Input.php</b> on line <b>61</b><br />
```Got following error when I try to save the form with enabled gallery field:<br />
```
fatal error: Argument 3 passed to Sobi\Input\Input::Arr() must be of the type array
, string given, called in /home/sigsiu52/public_html/test/components/com_sobipro/opt/fields/gallery.php
on line 212 and defined in <b>phar:///home/sigsiu52/public_html/test/libraries/sobi/Sobi-1.0.2.phar
.tar.gz/Input/Input.php</b> on line <b>61</b><br />
```Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/20upload.xml file break our template editor2017-06-23T10:08:30ZSławek Sikoraupload.xml file break our template editorWhen upload.xml file is edited it break our editor. Editor is cut after line:<br />
`<textarea class="form-control" data-role="description" name="%FIELDNAME%[descriptions][]" placeholder="%DESCRIPTION%">`
<br />
and there is displayed uploadfile button below itWhen upload.xml file is edited it break our editor. Editor is cut after line:<br />
`<textarea class="form-control" data-role="description" name="%FIELDNAME%[descriptions][]" placeholder="%DESCRIPTION%">`
<br />
and there is displayed uploadfile button below ithttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/16Keep original = "no" does not work2017-06-23T10:09:00ZSigrid SuskiKeep original = "no" does not workthe original images is keptthe original images is kept1.0Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/15Share button is shown also if no media is selected in the configuration2017-06-23T10:09:12ZSigrid SuskiShare button is shown also if no media is selected in the configuration1.0Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/14Can't use more than one gallery field2017-06-23T10:09:21ZSławek SikoraCan't use more than one gallery fieldWhen there is more than one gallery field it use same 'Add Image' button. After clicking it open selecting image window for each gallery. After selecting image for each and attempt to entry save there appear following error for each image:
`File 20140416_102244.jpg couldn't be uploaded. Please check the shown error message and remove it if necessary.`When there is more than one gallery field it use same 'Add Image' button. After clicking it open selecting image window for each gallery. After selecting image for each and attempt to entry save there appear following error for each image:
`File 20140416_102244.jpg couldn't be uploaded. Please check the shown error message and remove it if necessary.`https://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/11Date taken2017-06-23T10:09:33ZSigrid SuskiDate takenthe 'date taken' is not the date from the EXIF data or the date of the original file, but the date the file was uploaded into the gallery.the 'date taken' is not the date from the EXIF data or the date of the original file, but the date the file was uploaded into the gallery.1.0Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/10Error after saving entry with uplloaded bigger image than allowed2017-06-23T10:09:47ZSławek SikoraError after saving entry with uplloaded bigger image than allowedProblem appear when we upload image which have bigger size than allowed. We got info about error of course but when I try to save entry I got 500 error like this:
`500 - Cannot save fields data. Cannot crop image: Cannot get info about given image. File /tmp/files6d4d26e2820fb800942057088d489741/dcced6bffe1a9e47f20684077460fd5b/2013-11-12 13.28.04.jpg may not be an image or is named improperly. Check the file type and try again...`
I think possibility of saving entry should be blocked until image isn't removed, or such image should be removed automatically.Problem appear when we upload image which have bigger size than allowed. We got info about error of course but when I try to save entry I got 500 error like this:
`500 - Cannot save fields data. Cannot crop image: Cannot get info about given image. File /tmp/files6d4d26e2820fb800942057088d489741/dcced6bffe1a9e47f20684077460fd5b/2013-11-12 13.28.04.jpg may not be an image or is named improperly. Check the file type and try again...`
I think possibility of saving entry should be blocked until image isn't removed, or such image should be removed automatically.Sławek SikoraSławek Sikorahttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/8Required functionality for gallery field doesn't work2017-06-23T10:09:56ZSławek SikoraRequired functionality for gallery field doesn't workEntry can be saved even if there is no image uploaded to the gallery field.
Can be checked here:
http://181.224.130.224/~sigsiu52/test2/entry/add
gallery field is set as requiredEntry can be saved even if there is no image uploaded to the gallery field.
Can be checked here:
http://181.224.130.224/~sigsiu52/test2/entry/add
gallery field is set as requiredSławek SikoraSławek Sikorahttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/6Approving entry remove al images from gallery2017-06-23T10:10:06ZSławek SikoraApproving entry remove al images from galleryIt happens when entry is created by user without rights to approve own entries. Here is step-by-step instruction to recreate problem
- add entry with images uploaded to the gallery as user without permission to add autopublish entries (I use for it visitor)
- entry is saved and when you access edit entry view in the back-end images are there
- publish entry from the entry list or from the entry edit page
- when you check entry again images are removed from the fieldIt happens when entry is created by user without rights to approve own entries. Here is step-by-step instruction to recreate problem
- add entry with images uploaded to the gallery as user without permission to add autopublish entries (I use for it visitor)
- entry is saved and when you access edit entry view in the back-end images are there
- publish entry from the entry list or from the entry edit page
- when you check entry again images are removed from the fieldhttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/4Favourite button don't work on the front-end2017-06-23T10:10:14ZSławek SikoraFavourite button don't work on the front-endAs in the title, favourite button don't work on the front-end, there aren't any errors in the console.As in the title, favourite button don't work on the front-end, there aren't any errors in the console.Sławek SikoraSławek Sikorahttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/3Moving images generate JS error2017-06-23T10:10:22ZSławek SikoraMoving images generate JS errorMoving images up/down generate following JS error:
```
jquery-sortable.js:48 Uncaught TypeError: Cannot read property 'removeClass' of null
at HTMLDivElement.<anonymous> (jquery-sortable.js:48)
at HTMLDivElement.dispatch (jquery.min.js?4a8ad77…:3)
at HTMLDivElement.r.handle (jquery.min.js?4a8ad77…:3)
```
In the result images aren't saved in the entry. Same for front and back-endMoving images up/down generate following JS error:
```
jquery-sortable.js:48 Uncaught TypeError: Cannot read property 'removeClass' of null
at HTMLDivElement.<anonymous> (jquery-sortable.js:48)
at HTMLDivElement.dispatch (jquery.min.js?4a8ad77…:3)
at HTMLDivElement.r.handle (jquery.min.js?4a8ad77…:3)
```
In the result images aren't saved in the entry. Same for front and back-endRadek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/2Images aren't saved2017-06-23T10:10:32ZSławek SikoraImages aren't savedI'm not sure if it isn't related to the JS error generated by this field, but images uploaded to this field aren't aren't saved. There is no error during saving process, but after it there are no images in the field.I'm not sure if it isn't related to the JS error generated by this field, but images uploaded to this field aren't aren't saved. There is no error during saving process, but after it there are no images in the field.Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/32Resize images vs gallery view2018-11-01T15:44:45ZSławek SikoraResize images vs gallery viewWhen we disable resize image option and we try to access gallery created with such configuration, we will be able to open only one image in the gallery view. It is always displayed same image no matter at which image we will click at details view or if we change images in the gallery view directly. For me it is always last uploaded image.When we disable resize image option and we try to access gallery created with such configuration, we will be able to open only one image in the gallery view. It is always displayed same image no matter at which image we will click at details view or if we change images in the gallery view directly. For me it is always last uploaded image.https://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/28Wrong title and description used for images with same name2018-11-01T15:44:51ZSławek SikoraWrong title and description used for images with same nameWhen for different entries are uploaded images with same name, title and description of the images already uploaded for existing entries is changed to this which was used in the latest image with same name. For example, my gallery field use following path for images storing:<br />
images/sobipro/entries/{id}/{nid}<br />
In the entry A I upload image image1.png with some title and description. Now, when I create 2nd entry B and upload there image which also have name image1.png and set some title and description for it, after saving entry they will be assigned also for image image1.png in entry A.When for different entries are uploaded images with same name, title and description of the images already uploaded for existing entries is changed to this which was used in the latest image with same name. For example, my gallery field use following path for images storing:<br />
images/sobipro/entries/{id}/{nid}<br />
In the entry A I upload image image1.png with some title and description. Now, when I create 2nd entry B and upload there image which also have name image1.png and set some title and description for it, after saving entry they will be assigned also for image image1.png in entry A.1.1Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/31Thumbnail creation2018-11-01T15:44:59ZSławek SikoraThumbnail creationThis is not really bug, but a bit confusing behaviour. In this moment we have possibility to switch on or off thumbnail creation, but when we disable it, we are losing possibility to display gallery images at the front-end - there appear only white box with image name in the vcard and details view. I think we should remove this option or give users possibility to choose what image type should be loaded in the vcard and details.This is not really bug, but a bit confusing behaviour. In this moment we have possibility to switch on or off thumbnail creation, but when we disable it, we are losing possibility to display gallery images at the front-end - there appear only white box with image name in the vcard and details view. I think we should remove this option or give users possibility to choose what image type should be loaded in the vcard and details.1.1Sigrid SuskiSigrid Suski