Solved Site not loading - error 500
- heikea
- Topic Author
- Offline
- New Member
Less
More
8 months 2 weeks ago - 8 months 1 week ago #1
by heikea
www.heikeelashi.de/webtrees
webtrees 2.1.19
[SOLVED] Site not loading - error 500 was created by heikea
Hi all,
hope I'm in the correct help category, not sure it is an upgrade issue. If wrong here, please advise/move. Thanks.
Here is what happened in ~ the last week:
1) trying to update from 1.7 to 2.1
2) running into a memory space issue, asked webprovider to increase memory space
3) deleted /webtrees-content from server, uploaded back-up 1.7. Everything was working fine.
4) last Saturday webhost increased memory. After that webtrees was not working (white page firefox / edge error 500)
5) according to the webhost the issue cannot be any server settings.
6) hoping an upgrade would solve the issue (webhost told it looked like a subfolder maybe needed a different php-version, but telling me he
is not familiar with webtrees), I uploaded 2.1.18 (manually, using filezilla), upgrading to php 8.2.5 beforehand.
Adding base_url=" www.heikeelashi.de/webtrees " into config.ini.php in the data-folder.
7) still error 500. Error log shows currently, after upgrading:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class "Fisharebest\\webtrees\\webtrees" not found in /home/users/heikeelashi/www/webtrees/index.php:45
Stack trace:
#0 {main}
thrown in /home/users/heikeelashi/www/webtrees/index.php on line 45'
8 ) /www/webtrees/index.php on line 45' shows $webtrees = new webtrees();
Any ideas/advise? Rights on data-folder: 755.
Regards
Heike
www.heikeelashi.de/webtrees
p.s. Possibly irrelevant, errorlog before upgrading to 2.1.18: AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Exception: No Connection Established in /home/users/heikeelashi/www/webtrees/app/Database.php:275
Stack trace:
#0 /home/users/heikeelashi/www/webtrees/app/Log.php(48): Fisharebest\\webtrees\\Database::prepare('INSERT INTO `##...')
#1 /home/users/heikeelashi/www/webtrees/app/Log.php(106): Fisharebest\\webtrees\\Log::addLog('/home/users/hei...', 'error')
#2 /home/users/heikeelashi/www/webtrees/includes/session.php(237): Fisharebest\\webtrees\\Log::addErrorLog('/home/users/hei...')
#3 [internal function]: Fisharebest\\webtrees\\{closure}(Object(ErrorException))
#4 {main}
thrown in /home/users/heikeelashi/www/webtrees/app/Database.php on line 275
hope I'm in the correct help category, not sure it is an upgrade issue. If wrong here, please advise/move. Thanks.
Here is what happened in ~ the last week:
1) trying to update from 1.7 to 2.1
2) running into a memory space issue, asked webprovider to increase memory space
3) deleted /webtrees-content from server, uploaded back-up 1.7. Everything was working fine.
4) last Saturday webhost increased memory. After that webtrees was not working (white page firefox / edge error 500)
5) according to the webhost the issue cannot be any server settings.
6) hoping an upgrade would solve the issue (webhost told it looked like a subfolder maybe needed a different php-version, but telling me he
is not familiar with webtrees), I uploaded 2.1.18 (manually, using filezilla), upgrading to php 8.2.5 beforehand.
Adding base_url=" www.heikeelashi.de/webtrees " into config.ini.php in the data-folder.
7) still error 500. Error log shows currently, after upgrading:
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Class "Fisharebest\\webtrees\\webtrees" not found in /home/users/heikeelashi/www/webtrees/index.php:45
Stack trace:
#0 {main}
thrown in /home/users/heikeelashi/www/webtrees/index.php on line 45'
8 ) /www/webtrees/index.php on line 45' shows $webtrees = new webtrees();
Any ideas/advise? Rights on data-folder: 755.
Regards
Heike
www.heikeelashi.de/webtrees
p.s. Possibly irrelevant, errorlog before upgrading to 2.1.18: AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Exception: No Connection Established in /home/users/heikeelashi/www/webtrees/app/Database.php:275
Stack trace:
#0 /home/users/heikeelashi/www/webtrees/app/Log.php(48): Fisharebest\\webtrees\\Database::prepare('INSERT INTO `##...')
#1 /home/users/heikeelashi/www/webtrees/app/Log.php(106): Fisharebest\\webtrees\\Log::addLog('/home/users/hei...', 'error')
#2 /home/users/heikeelashi/www/webtrees/includes/session.php(237): Fisharebest\\webtrees\\Log::addErrorLog('/home/users/hei...')
#3 [internal function]: Fisharebest\\webtrees\\{closure}(Object(ErrorException))
#4 {main}
thrown in /home/users/heikeelashi/www/webtrees/app/Database.php on line 275
www.heikeelashi.de/webtrees
webtrees 2.1.19
Last edit: 8 months 1 week ago by makitso.
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
8 months 2 weeks ago #2
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Site not loading - error 500
> PHP Fatal error: Uncaught Error: Class "Fisharebest\\webtrees\\webtrees" not found
This type of error usually indicates that you haven't uploaded all the files to the server.
> PHP Fatal error: Uncaught Exception: No Connection Established
Either the connection was dropped by the database or it was never established.
Suggestion:
* Rename the file /data/config.ini.php to something else.
* webtrees should run the setup wizard which will check the database connection and re-generate the /data/config.ini.php file.
* if the wizard detects that a database already exists, it will start using it, rather than create a new database with the new admin account
This should allow you to test the database configuration / connection.
This type of error usually indicates that you haven't uploaded all the files to the server.
> PHP Fatal error: Uncaught Exception: No Connection Established
Either the connection was dropped by the database or it was never established.
Suggestion:
* Rename the file /data/config.ini.php to something else.
* webtrees should run the setup wizard which will check the database connection and re-generate the /data/config.ini.php file.
* if the wizard detects that a database already exists, it will start using it, rather than create a new database with the new admin account
This should allow you to test the database configuration / connection.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- heikea
- Topic Author
- Offline
- New Member
8 months 2 weeks ago #3
by heikea
www.heikeelashi.de/webtrees
webtrees 2.1.19
Replied by heikea on topic Site not loading - error 500
Hi Greg,
thanks for your support. As the "no connection established" happend before I upgraded, I concentrated first on the "uncaught error" and re-did the upload, checking the completeness. It looked fine to me, but I still get an error:2024-03-19 16:49:2095.163.161.49 AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function parse_ini_file() in /home/users/heikeelashi/www/webtrees/app/Http/Middleware/ReadConfigIni.php:57
Stack trace:
#0 /home/users/heikeelashi/www/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\\webtrees\\Http\\Middleware\\ReadConfigIni->process()
#1 /home/users/heikeelashi/www/webtrees/app/Http/Middleware/SecurityHeaders.php(48): Middleland\\Dispatcher->handle()
#2 /home/users/heikeelashi/www/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\\webtrees\\Http\\Middleware\\SecurityHeaders->process()
#3 /home/users/heikeelashi/www/webtrees/app/Http/Middleware/EmitResponse.php(57): Middleland\\Dispatcher->handle()
#4 /home/users/heikeelashi/www/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\\webtrees\\Http\\Middleware\\EmitResponse->process()
#5 /home/users/heikeelashi/www/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\\Dispatcher->handle()
#...'2024-03-19 16:49:2095.163.161.49 500GET /webtrees/ HTTP/2.0
I followed up on your suggestion renaming config.ini.php. While setting up, this message appears on the first screen:Checking server configurationThe PHP function “parse_ini_file()” is disabled.
Could this be the cause? Should I follow through with the setup-wizard?
Regards
Heike
thanks for your support. As the "no connection established" happend before I upgraded, I concentrated first on the "uncaught error" and re-did the upload, checking the completeness. It looked fine to me, but I still get an error:2024-03-19 16:49:2095.163.161.49 AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function parse_ini_file() in /home/users/heikeelashi/www/webtrees/app/Http/Middleware/ReadConfigIni.php:57
Stack trace:
#0 /home/users/heikeelashi/www/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\\webtrees\\Http\\Middleware\\ReadConfigIni->process()
#1 /home/users/heikeelashi/www/webtrees/app/Http/Middleware/SecurityHeaders.php(48): Middleland\\Dispatcher->handle()
#2 /home/users/heikeelashi/www/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\\webtrees\\Http\\Middleware\\SecurityHeaders->process()
#3 /home/users/heikeelashi/www/webtrees/app/Http/Middleware/EmitResponse.php(57): Middleland\\Dispatcher->handle()
#4 /home/users/heikeelashi/www/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\\webtrees\\Http\\Middleware\\EmitResponse->process()
#5 /home/users/heikeelashi/www/webtrees/vendor/oscarotero/middleland/src/Dispatcher.php(118): Middleland\\Dispatcher->handle()
#...'2024-03-19 16:49:2095.163.161.49 500GET /webtrees/ HTTP/2.0
I followed up on your suggestion renaming config.ini.php. While setting up, this message appears on the first screen:Checking server configurationThe PHP function “parse_ini_file()” is disabled.
Could this be the cause? Should I follow through with the setup-wizard?
Regards
Heike
www.heikeelashi.de/webtrees
webtrees 2.1.19
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
8 months 2 weeks ago #4
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic Site not loading - error 500
> While setting up, this message appears on the first screen:Checking server configurationThe PHP function “parse_ini_file()” is disabled.
webtreees stores its database/site configuration in a file at /data/config.ini.php
Your host has blocked the PHP function that reads .INI files!
web hosts often block certain functions that can have security implications. But this function has absolutely no security implications. You can read what it does here:
www.php.net/parse_ini_file
You should raise a ticket with your web host, and ask them to re-enable this function.
webtreees stores its database/site configuration in a file at /data/config.ini.php
Your host has blocked the PHP function that reads .INI files!
web hosts often block certain functions that can have security implications. But this function has absolutely no security implications. You can read what it does here:
www.php.net/parse_ini_file
You should raise a ticket with your web host, and ask them to re-enable this function.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- heikea
- Topic Author
- Offline
- New Member
8 months 2 weeks ago #5
by heikea
www.heikeelashi.de/webtrees
webtrees 2.1.19
Replied by heikea on topic Site not loading - error 500
Many thanks Greg! This probably explains why the older version did not work after the webspace-memory-change as well.
Thanks a ton
Heike
Thanks a ton
Heike
www.heikeelashi.de/webtrees
webtrees 2.1.19
Please Log in or Create an account to join the conversation.
- heikea
- Topic Author
- Offline
- New Member
8 months 2 weeks ago #6
by heikea
www.heikeelashi.de/webtrees
webtrees 2.1.19
Replied by heikea on topic Site not loading - error 500
Hi Greg,
maybe this cause is worth to get listed on
webtrees.net/faq/500/
?
After reading your reply, it sounded familiar to me and after searching my emails I saw that I encountered this problem February 2019 also (when my host changed the site from http to https; both times he insisted the cause could not be any server settings)
Regards
Heike
maybe this cause is worth to get listed on
webtrees.net/faq/500/
?
After reading your reply, it sounded familiar to me and after searching my emails I saw that I encountered this problem February 2019 also (when my host changed the site from http to https; both times he insisted the cause could not be any server settings)
Regards
Heike
www.heikeelashi.de/webtrees
webtrees 2.1.19
Please Log in or Create an account to join the conversation.