Before asking for help please read "How to request help" by clicking on that tab above here.
Question Server 500 Errors from non existant media links
- brian
- Topic Author
- Visitor
attempting to Edit the images under Media results in the following server 500 error, displaying page.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@webtrees.my domain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
From my Server Error log
[Tue Jul 22 16:36:03 2014] [error] [client my IP] File does not exist: /home/thebfile/public_html/webtrees/500.shtml
[Tue Jul 22 16:36:03 2014] [error] [client my IP] ] [notice] EACCELERATOR(817616): PHP crashed on opline -3689348814741910297 of loadClassLoader() at /home/[my domain]//public_html/webtrees/library/composer/autoload_real.php:23
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
Media files are not included in the GEDCOM file, you need to upload them seperately to your site. Usually the folder for that is ./media. If your GEDCOM file has an absolute path stored for media (e.g. C:\Documents\...) then the GEDCOM Import in webtrees offers the option to strip that off.
There's a Wiki article dedicated to media management here: wiki.webtrees.net/en/Media_Management#Media_storage
stamboom.BertKoor.nl runs on webtrees v1.7.13
Please Log in or Create an account to join the conversation.
- brian
- Topic Author
- Visitor
PHP crashed on opline -3689348814741910297 of loadClassLoader() at /home/[my domain]//public_html/webtrees/library/composer/autoload_real.php:23
Please Log in or Create an account to join the conversation.
- vytux
- Offline
- Senior Member
Vytautas
webtrees 1.7.9 (MODS: vytux_cousins, vytux_gallery3, vytux_pages, fancy_imagebar, fancy_treeview, Ancestral fan chart)
PHP 7.1.2, MySQL 5.7.17 x86_64 GPL, Nginx (mainline)
ged.vytux.com
Help translate Vytux Modules at translate.vytux.com/
Please Log in or Create an account to join the conversation.
- Jackie
- Offline
- Platinum Member
- Posts: 4787
brian wrote:
PHP crashed on opline -3689348814741910297 of loadClassLoader() at /home/thebfile/public_html/webtrees/library/composer/autoload_real.php:23
Hello Brian,
Googling the Web with "PHP crashed on opline" might give you the solution..
Vytux is right. It seems to be caused by Eaccelerator.. Some suggests to update PHP version (bug in 5.3 version?).. some suggests to use FastCGI instead..
Did you contact your hosting support about that?
EDIT : see that thread -> www.webtrees.net/index.php/en/forum/help...after-updating#47813
(Greg disabled Eaccelerator)
Please Log in or Create an account to join the conversation.
- brian
- Topic Author
- Visitor
This is from server log now. Which no longer mentions Eaccelerator.
[Fri Jul 25 16:30:57 2014] [error] [client My Ip] File does not exist: /home/[my domain]/public_html/webtrees/500.shtml, referer: http://webtrees.[my domain]/.com/admin_media.php
I'll fix up all my broken media links and see what happens after that.
I had to edit my gedcom file in a text editor to strip the absolute file path from media. I've uploaded some images to relative directories in the media folder and they seem to work. I just need to fix them all and hopefully the 500 errors stop.
I'll report back when done.
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
(a) configured your webserver to display custom pages when errors occur.
(b) not provided a custom error page.
It tells us nothing about the original error.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
brian wrote: I had to edit my gedcom file in a text editor to strip the absolute file path from media.
No, you did not have to do that with a text editor, webtrees could have done (or can do) that for you.
I thought one could specify the media path on the import dialog, but it's specified somewhere else. First go to the Admin panel. In the left menu "Family Trees" select your tree, then select the tab "Media". The second item "GEDCOM media path" is the absolute path to media items that will be stripped off on import/upload and put back on export/download.
If in the GEDCOM file you have this:
Should be as simple as that....
stamboom.BertKoor.nl runs on webtrees v1.7.13
Please Log in or Create an account to join the conversation.
- brian
- Topic Author
- Visitor
fisharebest wrote: It tells us nothing about the original error.
I appreciate the server log error is pretty unhelpful. I just wanted to provide an update to show disabling Eaccelerator doesn't stop the Server 500 errors.
Please Log in or Create an account to join the conversation.
- brian
- Topic Author
- Visitor
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- brian
- Topic Author
- Visitor
I've uploaded enough images so first page of media shows correctly, but if I try and go to subsequent page it just hangs with "loading..." over the Showing 1 to 10 of 45. If I then try and refresh the page after a minute I get the 500 Internal server Error page.
Then went back into cpanel a switched up my php version to 5.6 from 5.3 and it's working without crashing.
Please Log in or Create an account to join the conversation.
- fisharebest
- Away
- Administrator
it just hangs with "loading..."
The error is most likely present on the page - just hidden via CSS.
switched up my php version to 5.6 from 5.3
PHP5.6 hasn't been officially released yet. You are probably using a "release candidate" version.
PHP5.6 introduces a few incompatibilities with earlier versions of PHP (and hence with webtrees!).
As far as I can tell, all these have been found/fixed in the latest development code, and so the next release of webtrees will work with all versions of PHP from 5.3 to 5.6
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- brian
- Topic Author
- Visitor
fisharebest wrote: The error is most likely present on the page - just hidden via CSS.
Viewing html source I can't see anything. I think the webserver hangs hence the 500 Error.
fisharebest wrote: PHP5.6 hasn't been officially released yet. You are probably using a "release candidate" version.
PHP5.6 introduces a few incompatibilities with earlier versions of PHP (and hence with webtrees!).
As far as I can tell, all these have been found/fixed in the latest development code, and so the next release of webtrees will work with all versions of PHP from 5.3 to 5.6
I switched down to 5.5 and it works but the error returns on either 5.4 or 5.3. When I finally get all my broken media resolved I'll try again to get a definitive link between non existent media and php versions.
Please Log in or Create an account to join the conversation.