Web based family history software

Solved 500 Error on .png image files

  • makitso
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
5 months 1 week ago - 5 months 1 week ago #1 by makitso
500 Error on .png image files was created by makitso
Running latest beta on my production and dev site.  Both use php 8.2.  I just noticed that image .png files show a http 500 error when acessed.
On the individual page, the thumbnail shows the 500 error if I am logged in and if I click on the image I get the actual image file.
skatekey.net/tree/peters/individual/I001...ctoria-C-Schmidbauer

However, if I am not logged in then the thumb shows the correct image but when I clickon the thumbnail I get a 500 error.

 

Rob
www.skatekey.net ( webtrees 2.2.x beta GitHub)
webtrees forum admin
Author custom css module
PHP 8.2.24
Hosted at tigertech.net
Last edit: 5 months 1 week ago by makitso.

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
5 months 1 week ago #2 by bertkoor
Replied by bertkoor on topic 500 Error on .png image files
This is a bit strange indeed.
Part of list of Media Objects:
skatekey.net/tree/peters/media-list?go=1...rmat=&max=20&page=16

The media object on its own:
skatekey.net/tree/peters/media/M66/Victoria-Schmidbauer

Response headers show just a "200-OK"

I'm curious what's logged in your server error log...

stamboom.BertKoor.nl runs on webtrees v2.1.20

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago #3 by fisharebest
Replied by fisharebest on topic 500 Error on .png image files
Hi Rob,

If you look at the HTTP headers for this "500" image, you will see a webtrees error message:

x-thumbnail-exception: Error: Unknown named parameter $quality

Looking at the code, this exception is caused when calling the intervention image library.

Since you are using the 2.2.0-dev code, my guess is that you haven't updated your vendor directory.

You'll need to run `composer install` (or more likely `composer install --no-dev`) to update these files.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • makitso
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
5 months 1 week ago #4 by makitso
Replied by makitso on topic 500 Error on .png image files
> Since you are using the 2.2.0-dev code, my guess is that you haven't updated your vendor directory.
Actually, I did. 

However, I use rsync to update my prod system and dev systems.   So, I tar'ed my source vendor folder and completely replaced the prod system's vendor folder and that fixed it.   I did a diff on the folders and  there were lots of undeleted files in vendor folder.

Rob
www.skatekey.net ( webtrees 2.2.x beta GitHub)
webtrees forum admin
Author custom css module
PHP 8.2.24
Hosted at tigertech.net

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum