Upgrade didn't fix upload problem and Stopdesign album thumbnails now broken.

I recently upgraded from version 1.3.1.2 to the current 1.4.1.3, in order to try to fix the problem mentioned in my previous topic (http://www.zenphoto.org/support/topic.php?id=9687). Unfortunately, this did not fix the problem. Only two images appear to be upload-able at a time, using either the Flash or JQuery uploaders. With Flash, every third image fails, but I get a notification. With JQuery, it fails without notice. I suspect this is a problem with my PHP settings, but I don't know what to change, as I'm not well-versed with PHP. Please help!

Also, the upgrade did create an additional problem. On my gallery home page the thumbnails created by the Stopdesign theme for every album now shows up as the image err-passwordprotected.gif. None of the albums are password protected. I do use a gallery level password. In the previous version, I did not have this problem. I really liked those random images as thumbnails. How can I make them come back?

Comments

  • acrylian Administrator, Developer
    Ask your provider about changing php settings. Only he can answer if you are allowed to do that at all which depends on your webspace package.

    To the password issue, make sure you are loggedin and that the user you are with has the appropiate rights. Maybe reset the gallery password.
  • I can change the PHP settings. I just don't know which settings to change; I don't know which settings are causing this problem. If you know, please let me know. Thanks!

    I did try resetting the gallery password. When I removed the password, the problem resolved, but when I put the password back, it returned. Is there a way to give the gallery guest user explicit rights to view albums?
  • acrylian Administrator, Developer
    It will be the php upload limit. If that is just a few MB it will fail if you upload more files if those togehter exceed that limit. See php.net for the correct spelling
  • For questions of user/guest rights please review the user rights documentation. In short, you can place guest passwords on each and every album if you so desire. All are independent. (But of course if there is a password on a parent album the guest will need that in order to browse to the child album.)
  • I'm sorry. I must not have explained my situation clearly. None of my albums are password protected. I do not want to set individual album or user rights, if I can help it. I would like to use one password that I can provide to any person so that they can see the entire gallery. People without this password should see only a login page.

    In version 1.3.1.2 the "options"->"gallery"->"Gallery password" setting in the admin panel provided this functionality, so that when a user logged in with the "Gallery password" they saw the home page, with thumbnails of each album taken randomly from the albums. In version 1.4.1.3, this same password allows the user into the gallery, but the album thumbnails on the home page are substituted with the err-passwordprotected.gif image. This is true even if I log in with my admin username and password, which obviously has access to everything, so this must be a bug.

    I discovered a temporary workaround for this problem. If I uncheck the "options"->"image"->"Use lock image" option, then I get the desired effect. However, with this option unchecked, an album with a password shows a thumbnail, which breaks the desired security on that album.

    I looked at the code, and while I don't claim to understand everything that's going on, I think I found the key difference between the two versions of ZenPhoto. In zp-core/template-functions.php, in the function printAlbumThumbImage (line 1395), the checkAlbumPassword function is compared to the token 'zp_public_access' (line 1430). This is different from the way it was done in 1.3.1.2. The problem is that the checkAlbumPassword function returns token 'zp_gallery_auth' when the album has no password, but the gallery does. Since it doesn't compare equal, the thumbnail created is the getPasswordProtectImage version, even though the user can (and should be able to) view the album contents.

    As for the problem of the upload limit, I read about the php.ini options, and found a few settings that seemed appropriate. I set the options upload_max_filesize, post_max_size, and memory_limit all to 96M, but the problem remains. Any other thoughts? Both the jquery and flash versions only upload a subset of the selected images.
  • acrylian Administrator, Developer
    The first issue I will leave to sbillard and for the 2nd I have no idea, sorry. There are still no errors in the server log or browser log? JS errors? Flash not correctly installed? You could use ftp as a workaround for now.
  • The password protect image issue is fixed in the nightly tonight.
  • Still haven't figured out the problem with jquery and flash upload, but I'll assume at this point that it's an unknown problem/limitation with my server.

    I finally (two months after you fixed it) updated (to 1.4.1.6), and, indeed, the fix worked. Thanks a million! You guys are definitely on my Christmas list. Happy holidays and a joyful new year!
Sign In or Register to comment.