Full size image issue?

Setting up a Curatescape to use in my teaching and this warning is appearing in the All Location view (and full size views of the images are not displaying when the image is clicked on):

Warning: getimagesize(/home/drstephe/public_html/files/fullsize/87f9282e72667a0bf3a92741a00a7d5c.jpg): Failed to open stream: No such file or directory in /home/drstephe/public_html/NYCGuide1939/themes/curatescape-echo/items/browse.php on line 85

This should be fixed in a recent release. What version of the theme are you using?

The most recent - 2.0.3

My mistake, looks like that change had not yet been released. It’s now available in 2.0.4.

Thanks. This update fixes the errors on the location page, but they are still on the default home page

Please send me the warning message that appears on the homepage, which will have additional details that will help me fix this more easily.

Assuming that the error/warning you had on the homepage is similar in root cause to the one on the items/browse page, you should be able to download and install the latest version again to fix it. The 2.0.4 release has been updated to include the ammended fix.

I’ve updated to 2.0.4.

This warning message still appears on the homepage if I set Items to display:

Warning: getimagesize(/home/drstephe/public_html/files/fullsize/87f9282e72667a0bf3a92741a00a7d5c.jpg): Failed to open stream: No such file or directory in /home/drstephe/public_html/NYCGuide1939/themes/curatescape-echo/custom.php on line 1938

I’ve also got a new warning on the items browse page:

Warning: Undefined variable $single in /home/drstephe/public_html/NYCGuide1939/themes/curatescape-echo/custom.php on line 827

The 2.0.4 release you previously installed has been replaced. Download it fresh from the linked releases page. That should fix both issues.

Thanks - back to this after a break and all the errors have disappeared. However, images are still not displaying when you click on an image in a story. The screen is simply black

You have the Curatescape Galleries plugin activated. That one is actually not compatible with the Echo theme (we’re still working out some logistics related to a recent refactor/rewrite of the Curatescape plugin and themes). Deactivating it will almost certainly fix the issue.

Thanks - I’ve deactivated and unfortunately it did not fix the issue

Ok, next shot. I see that you’re images don’t contain height or width info.

They should look like:

<img width="1080" height="778" alt="..." loading="lazy" src="....">

But instead look like:

<img width height alt="..." loading="lazy" src="....">

So your server is not calculating the dimensions. See rl_item_files_by_type in custom.php, lines 2179 and 2180:

$fullsizePath = $_SERVER["DOCUMENT_ROOT"].'/files/fullsize/'.$src;
$size = file_exists($fullsizePath) ? getimagesize($fullsizePath) : false;

So either the $fullsizePath in incorrect, or the file_exists check is failing, or the getimagesize calculation is failing.

Can you turn on dev mode and error reporting and check error logs, etc.?

You could also modify those lines to look like this, which will add some junk to the top of your page temporarily but might be helpful for debugging:

$fullsizePath = $_SERVER["DOCUMENT_ROOT"].'/files/fullsize/'.$src;
var_dump($fullsizePath); // remove this later
$size = file_exists($fullsizePath) ? getimagesize($fullsizePath) : false;
var_dump($size); // remove this later

See latest release. Let me know if that fixes it.