Display images by ... ID cause error

Hi,
You probably have noticed this problem. It is not related to this version, as I had the same issue in the previous version.
After I have uploaded the files, the next screen is set to ... Display images by ID (descending). Whatever I type in the title fields of the images, after I click the button apply, it reset automatically all my changes. The only way I can prevent that is to change the display images by ... to filename. In the [options] / [Gallery] / I set Sort gallery by: to filename.
Any clue ?
Thanks

Comments

  • acrylian Administrator, Developer
    Sorry, this is no known problem and I don't encounter this. Please review your error logs.
  • Hi,
    It does not generate an error. I wish I could make a small video to show you what I see! If I do not change the display images by to anything else than ID (descending), the problem does not appear. It is not a big issue as I always change the display images by... to filename. This is the way I like it. It is just that if I forget to change it and write info of every images uploaded, then when I click Apply, it resets the page like it was when the system finished uploaded the files.
    Bizarre!
  • acrylian Administrator, Developer
    Sorry, if you say "causes error" I expected an error message.

    I cannot reproduce your issue. All image data saves for me regardless which image display sorting I set.

    Review all your error logs please.
  • I have seen the same issue when uploading new images - after the images are uploaded to a particular album the "Images" page for that album is displayed.
    Unless I remember to FIRST click on "Apply" (regardless of the setting of "Display images by:") BEFORE entering any data on the images, then when I do enter data ("Title" or "Description") it is lost when I then click on "Apply" to enter that new data.
    The "Images" page refreshes but the data has been lost.
    Once it is re-entered and "Apply" is clicked again then it is saved.
    This has been happening since I first started using Zenphoto: I have to admit I thought it was a feature, not a bug!
  • As a follow on to my previous entry, I have notied since updating to 1.4.7 [2f43bf5f78] that if I set "Display images by:" to "Manual", the page updates but then goes back to "Date".
    The other options (e.g. Filename, ID etc) seem to keep their setting - it's only "Manual" which changes to "Date".
    Edited to add: when set to "Date" then any changes made to the album (data entered, images deleted etc.) do not work. The setting has to be changed to other than "Date" to make the changes.
    Is it just me or should I enter this into GitHub?
  • acrylian Administrator, Developer
    We are mixing two possible issues here which we shouldn't do.

    1. So you loose content on "fresh" images on the first apply after just having uploaded them, right? I will have to try to reproduce that. In any case you should look into your logs if there are any errors or else that might help.

    2. I quickly can reproduce that the selector switches to "date" if selecting "Manual". I will have to test later if the order really changes or not.
  • I aplogise for conflating the two issues.

    I'm glad you've been able to replicate the "Date/Manual" sort problem with the new release.

    And regarding the problem of "fresh images" I've been able to find the cause while fully investigating it on my installation.

    It turns out to be an invalid parameter being passed to the element getGalleryIndexURL() in my theme file gallery.php.

    The theme was based on the standard Zenpage theme which, in its early incarnations, had the parameter (form) included in getGalleryIndexURL(). This was propagated in my theme all the way through various releases and is what has obviously been causing the problem for me with fresh images. Now that I've removed the parameter the problem has been resolved.

    But I'm a little confused when I look in the Element index functions documentation because it shows getGalleryIndexURL() twice: once as a valid function followed by another entry saying it's deprecated.

    Or am I reading the documentation incorrectly?

    Anyway thank you for the help!
  • acrylian Administrator, Developer
    We could also reproduce the issue with the fresh images not saving data entered. So probably not a theme issue. Might take a while as we are entering Easter holidays over here.

    'getGalleryIndexURL()` itself is not deprecated but its former paramter is.
  • Just to note that release 1.4.8 has rectified both the above issues reported by me: i.e. Date/Manual sort and the problem of fresh images not storing the data entered.
    Many thanks.
  • acrylian Administrator, Developer
    Thanks for confirming ;)
Sign In or Register to comment.