Images not loading

Billy Member
edited October 2019 in General support

Hello,

I installed ZenPhoto with the basic theme, light version, i uploaded several images into several albums but they don't appear, the thumbnails either and the cache doesn't work. Could you please help resolve this issue ?
My website is: https://www.lechatabois.fr/produits/

Thank you in advance for your help!

Comments

  • acrylian Administrator, Developer

    Most likely your images are too large for your server to process: https://www.zenphoto.org/news/problems-with-albums-and-images/
    The debug log or php error log should have entries about that.

  • acrylian Administrator, Developer

    Most likely your images are too large for your server to process: https://www.zenphoto.org/news/problems-with-albums-and-images/
    The debug log or php error log should have entries about that.

    Edit: Just looked at the browser log and it says 403 on your site. Which would mean the file/folder permissions on your site are not correct or not correct for your server. https://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders/

  • The images are indeed large but not heavy as they are compressed images that weigh less than 2Mo. Could it be the cause ?

  • acrylian Administrator, Developer

    As the article linked above mentions it is not the file size that matters but the dimensions. But anyway, I think the issue is related to permissions as noted.

  • Thanks for your answers.

    I edited the permissions since my FTP but it's doesn't work :-(

  • acrylian Administrator, Developer
    edited October 2019

    What do the logs say? Also our recommendations do not work on all servers.

    Is this a fresh install? How did you install?

    Looking at your site it seems the page does not even load completely. There must be an PHP fatal error in the log. This might or might not be related to the image issue.

  • I have multiple errors such as this one:

    [Thu Oct 24 19:49:45.548932 2019] [proxy_fcgi:error] [pid 25982:tid 140061943371520] [client 90.22.192.227:49284] AH01071: Got error 'PHP message: PHP Warning: fopen(//var/www/lechatabois.fr/htdocs/produits/zp-data/debug.log): failed to open stream: Permission denied in /htdocs/produits/zp-core/functions-basic.php on line 1332\nPHP message: PHP Warning: fopen(//var/www/lechatabois.fr/htdocs/produits/zp-data/debug.log): failed to open stream: Permission denied in /htdocs/produits/zp-core/functions-basic.php on line 1332\n', referer: https://www.lechatabois.fr/produits/

    I installed it 4 days ago by uploading it with FTP

  • acrylian Administrator, Developer
    edited October 2019

    Permission denied

    As I suspected, something is not set right either the permissions don't match or the user is not the right one. The users that runs scripts on the server might not be the one you use for FTP (not related to users in Zenphoto itself). Can't help with that from here, best contact your host about this.

  • Ok thanks for your help. I will keep you informed

  • I have the same problem since the upgrade.

  • acrylian Administrator, Developer

    This is most certainly not related to the update if you get the same error as above.

  • No, nothing happens when i wants to load a picture.
    Where can i see an error ?

  • acrylian Administrator, Developer

    Zenphoto's debug log, your server's php error log and your browser console log (name varies per browser) for all client related ones.

  • If I go to the OP's site (Billy), I get 403 Forbidden errors with every image. I don't know if some setting in Zenphoto is causing it or some .htaccess rule is causing the forbidden responses.

    If Hotlink protection is enable in the webhost's cPanel or something might try turning that off to see what happens.

  • Ganesh Member
    edited October 2019

    It is not the Billy problem.
    I use zenphoto since many years and after a new installation on a new environment, i was not able to load images.
    After investigations (nothing appears in the logs), i saw that Jquery does not work, something must miss and after selecting uploader_http i can load images...

  • acrylian Administrator, Developer

    @Ganesh: So you were talking about "uploading" and not "loading"? This is a completely different topic then…

    The jquery uploader has indeed a conflict with some stricter https heades that are now set in 1.5.5 that we somehow missed. The support build has the fix already and soon will become 1.5.6 therefore.

  • OK, thanks acrylian.

  • Hello,

    To solve the problem, I tried installing my gallery on my ftp and connect the database on the VPS server of a friend.
    I input all the right information for the user, password and host but it doesn't work.

    I have the "Connection refused" error in MySQLi and "SQLSTATE[HY000] [2002] Connection refused" in PDO_MySQL.

    Is there a security setting to disable on ZenPhoto that will allow to connect my gallery to an external database ?

    Thank you in advance !

  • Database connection refused is a server defined security. All zenphoto does is try to connect to the database providing the credentials you gave it. So perhaps the credentials are not really correct or perhaps the server does not allow remote connections. Anyway this is something you will have to resolve with the server.

  • Okay thanks for the answer

  • Hello,

    I found the problem, another CMS prevented ZenPhoto from working properly.
    Now almost everything works!

    I have one question: the jquery script to upload images does not work. When I click on "Add files", I can select an image but it will never be added on hold.

    How to solve this?

    Thanks!

  • acrylian Administrator, Developer
    edited November 2019

    Glad you found out. It can always be problematic if Zenphoot (or any other CMS) resides in a subfolder within the install of another CMS: Often it is betterto use subdomains (e.g. photos.yourdomain.com) for example to separate systems.

    Please do not mix topics. I already mentioned that issue above:

    The jquery uploader has indeed a conflict with some stricter https headers that are now set in 1.5.5 that we somehow missed. The support build has the fix already and soon will become 1.5.6 therefore.

    This mean you can already install the 1.5.6beta (support build) or just wait a little. You can use the http uploader meanwhile or FTP directly.

  • Hello,

    I still have trouble caching images. Some do not load at all with the cache manager, and from the 5th album it does not charge at all.

    What should I do ?

    Thank you

    Screenshot: https://www.zupimages.net/up/19/45/edz8.jpg

  • acrylian Administrator, Developer

    It is quite normaly that you will need more than one attempt in the classic mode. It is normal that not all sizes of all images work on the first go. Try the cURL mode of the cachemanager plugin if your server supports it. It is more reliable on some servers and does not work on others (including our for example)
    Still pre-caching is a really resource heavy procedure for your server and may overload it for power and even memory especially if you are trying to precache a lot images and albums at the time. Better split by album. Still technically not exactly required as Zenphoto will do it when needed anyway: https://www.zenphoto.org/news/caching/

  • I changed the server and it now works perfectly.

    Thank you for your help and availability !

Sign In or Register to comment.