Getting weird with images broken..

Hi,
I have got some troubles with my zenphoto and it is getting weird.
ZP 1.4.9 libratus
PHP-Version: 5.4.45-0+deb7u14

When I upload an image it is not visible, there is the zp-icon (with the redline) and you can´t see the image.
( http://torstenbahr.com/perfect-waves/ )
I had a look on my server, all rights and group:user are identical in all images, only the image "1903_weisseSerie_aframe.jpg" is not visible.

"...
-rw-r--r-- 1 www-data www-data 151001 Sep 6 2016 1503_greendevil_mlogo_b4000px_rgb.jpg
-rw-r--r-- 1 www-data www-data 103244 Apr 2 11:35 1903_weisseSerie_aframe.jpg
-rw-r--r-- 1 www-data www-data 507996 Mai 26 2015 backdoor_b1200px_72dpi_rgb.jpg
-rw-r--r-- 1 www-data www-data 370709 Mai 26 2015 linkeoffshore_b1200_72dpi_rgb.jpg
-rw-r--r-- 1 www-data www-data 404525 Mai 26 2015 pointbreak_rgb_b1200_72dpi.jpg
-rw-r--r-- 1 www-data www-data 526700 Mai 26 2015 reefbreak_b1200px_72dpi_rgb.jpg
"
Doesn´t matter if I am logged in or not. Tried different Browser, same problem. I tried to use DB-refresh and thumbnail refresh - nothing helped. Then I used the cachemanager with no effort.

Tags:

Comments

  • acrylian Administrator, Developer

    If the "4000px" indicates the dimensions of the image it is most certainly this: https://www.zenphoto.org/news/problems-with-albums-and-images/#server-memory-issues

    Btw, if you are really still on 1.4.9 you should update. 1.5.1 is current and 1.5.2 will follow sometime soon.

  • the image size is 1200px x 1500px, 550 KB.
    This can´t be the reason...

  • acrylian Administrator, Developer
    edited April 2019

    It could be corrupt meta data. Anything in the logs?

    In any case please upgrade. Whatver we test we test with the support build becoming 1.5.2 sometime soon.

  • here is a log entry, I don´t understand...
    cacheImage(/perfect-waves/1903_weisseSerie_aframe_w140_h140_cw140_ch140_thumb.jpg) exception: unable to open image `/var/www/torstenbahr.com/web/gallery/cache/perfect-waves/1903_weisseSerie_aframe_w140_h140_cw140_ch140_thumb.jpg': Permission denied @ error/blob.c/OpenBlob/2641

  • acrylian Administrator, Developer
    edited April 2019

    That sounds like file/folder permissions issues. Do they differ to those that work? Does the file exist at all? Can you open it manually?

    In any case again please consider to update, Zenphoto 1.4.9 is from mid 2015.

  • leiferikson Member
    edited April 2019

    My Webserver is not ready for php7...
    Last TIme I tried to update it ended up in a miss. So I try to get along with 1.4.9.

  • acrylian Administrator, Developer

    My Webserver is not ready for php7...

    7 is not yet required actually. 5.6 would be good.

    Last TIme I tried to update it ended up in a miss. So I try to get along with 1.4.9.

    Sorry to hear about update troubles. What were they? Perhaps try again? In any case support is problematic as we test with the current/support build so we may not see what you do in any case. Not to speak of some security issues fixed.

  • hm, I use adobe Bridge for the metadata of the images. there I use german "ü" and other chararkters. i will check if that the reason.

  • well, some images can be uploaded, some not. Depends on folder. Metatags of bridges have no evidence...

  • acrylian Administrator, Developer

    Umlauts should actually not be the issue.

    well, some images can be uploaded, some not. Depends on folder.

    Check the folder permissions via FTP. Perhaps something is set wrong which could prohibit ZP from accessing them which can result in broken images.

  • This I checked out before. If I have this options it is not working, I can´t load up and have broken images:
    drwxrwxrwx 10 www-data www-data 4096 Jun 1 2016 albums
    drwxr-xr-x 4 web19 client4 4096 Jun 19 2018 backup
    drwxrwxrwx 12 web19 client4 4096 Jun 1 2016 cache
    drwxrwxrwx 9 web19 client4 4096 Jun 19 2018 cache_html
    -rw-r--r-- 1 web19 client4 252 Feb 8 2015 contributing.md
    -rw-r--r-- 1 web19 client4 894 Mai 21 2015 favicon.ico
    ...

    But the zp works, only the new ones are not visible.
    And if I change the albums directory to:

    drwxrwxrwx 10 web19 client4 4096 Jun 1 2016 albums
    drwxr-xr-x 4 web19 client4 4096 Jun 19 2018 backup
    drwxrwxrwx 12 web19 client4 4096 Jun 1 2016 cache
    drwxrwxrwx 9 web19 client4 4096 Jun 19 2018 cache_html
    ...

    I have the lock-sign on all folders in the ZP-upload funktion "elFinder" in the upload section of ZP. But all old pictures are visible, only the new images are broken.

  • Solution, thank you very much for the advice. I changed the complete folder of the ZP to www-data:www-data and it works.

  • acrylian Administrator, Developer

    Great, that you solved it! Thanks for the follow up. The permissions and the actual "server user"/owner assigned is of importants. There are still some hosts where for example the ftp user may not be the user the script runs under later. So it may have not access. Permissions can be a frequent source of fun in these matters…

Sign In or Register to comment.