When I click on a photo of an object, a black screen appears, not full view. However, a while ago everything was working fine. I am using the Curatescape Echo theme.
If you have a solution, I would appreciate it if you could share it here on the forum.
Hi @Korisnik, I’ll need a little more information in order to help.
Is it possible that the image it’s trying to load is not present? Or that it’s in a format that is not compatible (e.g. TIFF, JP2, etc)? Can you share an error message from the browser console? Or a link?
I think the key information is in the warnings on the browse page.
Warning: getimagesize(): https wrapper is disabled in the server configuration by allow_url_fopen=0
The image viewer (Photoswipe) requires that the image dimensions are known. Your server configuration prevents this step from being completed. The relevant code is in the custom.php file, line 2049. You might ask your web host or server admin to set allow_url_fopen=1 in your server php.ini config file, which should fix the problem (you may also be able to do this in Cpanel, depending on your service provider).
Again we have a problem with full screen display of photos. I am sending you the link to the application: https://app.e-routes.eu/.
When we click on a photo instead of the full display, we get a black screen and an error in the console: “Error while fetching an original source: request failed with status 404 Stack in the worker:networkRequest@resource://devtools/client/shared/source-map-loader/utils/network-request.js:43:9 Source URL: https://app.e-routes.eu/application/views/scripts/css/sass/public.scss”.
Checks have already been made regarding the 404 status, the files exist in the appropriate folders and everything is fine, the photos are visible.
Also, this is a new application, we have another one that is just on a different URL, everything else is the same and the photo display works.
Explanation: Basically, the issue is that your server disallows the way image dimensions are determined in the older version of the theme (i.e. calling PHP getimagesize on a web path). The new theme uses a more broadly supported method to do the same thing (i.e. instead of a web path, use getimagesize non the server path). Without the image dimensions, the lightbox cannot display the image, which is why it looks like a “black screen.”