- Posts: 22
Question Media not found
- df23
- Topic Author
- Offline
- New Member
Less
More
2 months 4 weeks ago - 2 months 4 weeks ago #1
by df23
Media not found was created by df23
Hi
I am getting "500" shown instead of my images and i cannot see what i have done wrong.
My tree is configured to have the media at data\media
Using filezilla i can see files in the media folder including one file that i have been using to try to resolve this issue.
Using phpmyadmin in the webtrees table wt_media_file i can see the same file name listed. Given that there is nothing in front of the file name in the field multimedia_file_refn i think this means that webtrees is expecting to find the file in data\media.
If i go into webtrees and use "Lists - media objects" I can see the item listed but with 500 instead of the thumbnail. If i click through the thumbnail it says "This Image failed to load".
I think everything seems to point to the image being in the location where webtrees expects to find it. File permission is 0644. Owner and Group are the same as other files (not just images).
Can sks point me in the right direction? There must be something i am missing here.
thanks
Dave
using webtrees v2.0.17
I am getting "500" shown instead of my images and i cannot see what i have done wrong.
My tree is configured to have the media at data\media
Using filezilla i can see files in the media folder including one file that i have been using to try to resolve this issue.
Using phpmyadmin in the webtrees table wt_media_file i can see the same file name listed. Given that there is nothing in front of the file name in the field multimedia_file_refn i think this means that webtrees is expecting to find the file in data\media.
If i go into webtrees and use "Lists - media objects" I can see the item listed but with 500 instead of the thumbnail. If i click through the thumbnail it says "This Image failed to load".
I think everything seems to point to the image being in the location where webtrees expects to find it. File permission is 0644. Owner and Group are the same as other files (not just images).
Can sks point me in the right direction? There must be something i am missing here.
thanks
Dave
using webtrees v2.0.17
Last edit: 2 months 4 weeks ago by df23.
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
2 months 4 weeks ago #2
by bertkoor
stamboom.BertKoor.nl runs on webtrees v2.1.20
Replied by bertkoor on topic Media not found
Have you followed directions of this FAQ article, to get details what the exact cause is?
webtrees.net/faq/500/
webtrees.net/faq/500/
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
2 months 4 weeks ago #3
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Media not found
When an image cannot be generated, you'll get an error code (403/404/500) in a red box.
There is also a helpful error message. To see it, use your browser's developer tools to see the HTTP response headers for the image. There will be one with a name such as "x-thumbnail-exception".
What does it say?
If you don't know how to do this, maybe post a URL where we can see one of the 500 images...
There is also a helpful error message. To see it, use your browser's developer tools to see the HTTP response headers for the image. There will be one with a name such as "x-thumbnail-exception".
What does it say?
If you don't know how to do this, maybe post a URL where we can see one of the 500 images...
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- fdejaigher
- Offline
- New Member
- French user
Less
More
- Posts: 11
2 months 1 week ago - 2 months 6 days ago #4
by fdejaigher
Using a Webtrees installed and updated with Softaculous.
My tree is not public yet.
Replied by fdejaigher on topic Media not found
Hello !
May be a wrong file extension ?
I already encountered this king of problem (not in Webtrees) a file with a "jpg" extension was well displayed everywhere (without error), but sometimes not.
In fact, it was a png file. Changing extension file to the good one was the "solution".
As sometimes on some websites displaying of images is made through a php script (mainly for security), if mime type differs from extension, it's not displayed, and, or returns an error.
I don't know if it's the solution, but this is something to check too.
Edit : It seems that's part of a bug as mentioned here , no ?
May be a wrong file extension ?
I already encountered this king of problem (not in Webtrees) a file with a "jpg" extension was well displayed everywhere (without error), but sometimes not.
In fact, it was a png file. Changing extension file to the good one was the "solution".
As sometimes on some websites displaying of images is made through a php script (mainly for security), if mime type differs from extension, it's not displayed, and, or returns an error.
I don't know if it's the solution, but this is something to check too.
Edit : It seems that's part of a bug as mentioned here , no ?
Using a Webtrees installed and updated with Softaculous.
My tree is not public yet.
Last edit: 2 months 6 days ago by fdejaigher. Reason: Complement
Please Log in or Create an account to join the conversation.
- df23
- Topic Author
- Offline
- New Member
Less
More
- Posts: 22
2 weeks 3 days ago #5
by df23
Replied by df23 on topic Media not found
Thanks Greg
I have finally got some time to look at this again. Attached is the output. I have looked at the php config and the fileinfo extension is listed and selected.
I have finally got some time to look at this again. Attached is the output. I have looked at the php config and the fileinfo extension is listed and selected.
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
2 weeks 1 day ago #6
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Media not found
finfo is a PHP extension (one of many).
You need to install this.
You have a cPanel on your webhost? You can probably do this.
Your own linux server? A command similar to "sudo apt install php8.3-finfo" will install it.
Otherwise, raise a ticket with your webhost asking them to install it.
You need to install this.
You have a cPanel on your webhost? You can probably do this.
Your own linux server? A command similar to "sudo apt install php8.3-finfo" will install it.
Otherwise, raise a ticket with your webhost asking them to install it.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- df23
- Topic Author
- Offline
- New Member
Less
More
- Posts: 22
1 week 2 days ago #7
by df23
Replied by df23 on topic Media not found
Thanks Greg
I have shared hosting so I raised a ticket with my ISP and they were able to recreate the issue. The strange thing is the issue was resolved by changing from php v8.0 to v8.1,
However i have been running on v7.4 and only tried v8.0 just to see if that fixed it (which it didnt).
Looking at the webtree / php compatibility table my WT version 2.0.17 only works with php up to v7.4.
Will i be ok running webtrees v2.0.17 with php v8.1 until i get time to upgrade webtrees?
I am giving a talk promoting webtrees in just a few weeks and i dont want to risk upgrading before then (also dont have the time!).
thanks
Dave
I have shared hosting so I raised a ticket with my ISP and they were able to recreate the issue. The strange thing is the issue was resolved by changing from php v8.0 to v8.1,
However i have been running on v7.4 and only tried v8.0 just to see if that fixed it (which it didnt).
Looking at the webtree / php compatibility table my WT version 2.0.17 only works with php up to v7.4.
Will i be ok running webtrees v2.0.17 with php v8.1 until i get time to upgrade webtrees?
I am giving a talk promoting webtrees in just a few weeks and i dont want to risk upgrading before then (also dont have the time!).
thanks
Dave
Please Log in or Create an account to join the conversation.