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/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/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/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/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/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/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/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/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/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/12GPS data cannot be switched off2018-11-01T15:45:11ZSigrid SuskiGPS data cannot be switched offAll EXIF data can be switched off separately, but not the GPS data. Avoiding to show GPS data is possible only by switching off EXIF data completely.All EXIF data can be switched off separately, but not the GPS data. Avoiding to show GPS data is possible only by switching off EXIF data completely.1.1Sigrid SuskiSigrid 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/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/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/17There should be an option in the fields settings to choose which image will b...2018-11-01T15:45:05ZSigrid SuskiThere should be an option in the fields settings to choose which image will be downloadedWith Share -> Download always the original image is downloaded (Wonder what happens if keep original setting works).
There should be the possibility on the settings to select which image (original, large image, thumbnail) should be used for the Doenload share.With Share -> Download always the original image is downloaded (Wonder what happens if keep original setting works).
There should be the possibility on the settings to select which image (original, large image, thumbnail) should be used for the Doenload share.1.1Sigrid SuskiSigrid 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/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/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/26no data for image generated in gallery view when Keep Original Image option i...2018-11-01T15:45:22ZSławek Sikorano data for image generated in gallery view when Keep Original Image option is disabledWhen Keep Original Image option is disabled there is no data generated for gallery view for uploaded images, blank page is displayed and there is no data in the XML output.When Keep Original Image option is disabled there is no data generated for gallery view for uploaded images, blank page is displayed and there is no data in the XML output.1.1Radek SuskiRadek Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/27Primary picture marker saved only during uploading new image2018-11-01T15:45:37ZSławek SikoraPrimary picture marker saved only during uploading new imagePrimary picture marker is saved only for newly uploaded images, it can't be selected for images which wasn't uploaded during current edit process and is removed when entry is saved during future updatesPrimary picture marker is saved only for newly uploaded images, it can't be selected for images which wasn't uploaded during current edit process and is removed when entry is saved during future updates1.1Radek SuskiRadek Suskihttps://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/29Gallery field export don't work2018-11-01T15:45:43ZSławek SikoraGallery field export don't workIt doesn't export any images to teh zip archive, in the csv file as data appear only: YToxOntpOjA7YjoxO30=It doesn't export any images to teh zip archive, in the csv file as data appear only: YToxOntpOjA7YjoxO30=1.1Sigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/30Gallery field can't be installed at utf8mb4 database collation2018-11-01T15:45:16ZSławek SikoraGallery field can't be installed at utf8mb4 database collationLike in the title, when database is set to utf8mb4 collation installation attempt over with following error: <br />
0 Specified key was too long; max key length is 767 bytes
<br /> solution to this is changing all varchar(250) parameters to varchar(191) in the sql installation query.Like in the title, when database is set to utf8mb4 collation installation attempt over with following error: <br />
0 Specified key was too long; max key length is 767 bytes
<br /> solution to this is changing all varchar(250) parameters to varchar(191) in the sql installation query.1.1Sigrid SuskiSigrid 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 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/33Can't create new field2020-03-10T12:27:34ZSławek SikoraCan't create new fieldCreating new field cause following error:<br />
Fatal error: Class 'SPField_Gallery' not found in .../components/com_sobipro/opt/fields/adm/gallery.php on line 25Creating new field cause following error:<br />
Fatal error: Class 'SPField_Gallery' not found in .../components/com_sobipro/opt/fields/adm/gallery.php on line 252.0 BetaSigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/34Accessing gallery view with disabled SEF2020-03-10T12:27:27ZSławek SikoraAccessing gallery view with disabled SEFWhen we try to open gallery view when SEF in Joomla! is disabled there appear following error in the console:<br>
Error: Call to undefined method Joomla\CMS\Document\RawDocument::addHeadLink(): You have no permission to access this site<br>
and images aren't loaded.When we try to open gallery view when SEF in Joomla! is disabled there appear following error in the console:<br>
Error: Call to undefined method Joomla\CMS\Document\RawDocument::addHeadLink(): You have no permission to access this site<br>
and images aren't loaded.2.0 BetaSigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/35Categories export and gallery field2020-03-10T12:27:21ZSławek SikoraCategories export and gallery fieldDuring categories export gallery field data isn't exported at all.During categories export gallery field data isn't exported at all.2.0 BetaSigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/36Title and description removing2023-03-15T12:34:59ZSławek SikoraTitle and description removingLooks like there can't be removed completely title and description text of the uploaded images. It can be edited and changed, but when it is removed completely after saving entry changes are reverted.Looks like there can't be removed completely title and description text of the uploaded images. It can be edited and changed, but when it is removed completely after saving entry changes are reverted.2.0 BetaSigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/37Only super user can add data to gallery field set as category field2023-03-15T12:34:53ZSławek SikoraOnly super user can add data to gallery field set as category fieldWhen Gallery field is created as category field, there is no possibility to add images to this field by other user than one which haven't super user rights. It is possible to all other fields, but when uploaded are images to gallery field, there appear following error error message:<br/>
You are not allowed to edit this field. Field 'Gallery' is an administrative field.When Gallery field is created as category field, there is no possibility to add images to this field by other user than one which haven't super user rights. It is possible to all other fields, but when uploaded are images to gallery field, there appear following error error message:<br/>
You are not allowed to edit this field. Field 'Gallery' is an administrative field.2.0 BetaSigrid SuskiSigrid Suskihttps://code.sigsiu.net/Sigsiu.NET/GalleryField/-/issues/38warning during entry save2023-03-15T12:34:46ZSławek Sikorawarning during entry saveThere appear following warning in the error log when entry is saved:<br />
```
E_WARNING
Return Code
0
Error Message
in_array() expects parameter 2 to be array, null given
In File
/home/sikorasobipro/test2.sikora.sobipro.eu/components/com_sobipro/opt/fields/gallery.php
At Line
451
```There appear following warning in the error log when entry is saved:<br />
```
E_WARNING
Return Code
0
Error Message
in_array() expects parameter 2 to be array, null given
In File
/home/sikorasobipro/test2.sikora.sobipro.eu/components/com_sobipro/opt/fields/gallery.php
At Line
451
```2.0 BetaSigrid SuskiSigrid Suski