pH7Software/pH7-Social-Dating-CMS

Error 500 when opening the site

Closed this issue · 5 comments

Hello! After installation, Error 500 occurs when opening the site (php 7.4)

https://audiobook-online.com/ph7builder1721/

(a clear and concise description of what the bug is.)

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected Behavior

(a clear and concise description of what you expected to happen.)

Screenshots / Screencasts

(if applicable, add screenshots or screencast the scenario to help explain your issue the best you can.)
11
22
33
44

pH-7 commented

Hi @alex7070m

There must be an internal PHP error causing this 500 page you mentioned (on your last screenshot).

Can you enable the development mode to show the PHP errors (exceptions) on the page?

To do so, please edit _protected/app/configs/config.ini, and replace environment = production to environment = development, and then save it.

Then, go back to your web browser and refresh the page.
From there, you will normally see an explanatory PHP error message. Let me know the error you will see there.

Have a great day! 😊

Thanks, I did as you wrote, such error message appeared.

Fatal error: Uncaught TypeError: strtolower() expects parameter 1 to be string, bool given in /home/audioboo/public_html/ph7builder1721/_protected/framework/Server/Server.class.php:165 Stack trace: #0 /home/audioboo/public_html/ph7builder1721/_protected/framework/Server/Server.class.php(165): strtolower(false) #1 /home/audioboo/public_html/ph7builder1721/_protected/app/Bootstrap.php(78): PH7\Framework\Server\Server::isRewriteMod() #2 /home/audioboo/public_html/ph7builder1721/index.php(45): PH7\Bootstrap->run() #3 {main} thrown in /home/audioboo/public_html/ph7builder1721/_protected/framework/Server/Server.class.php on line 165

pH-7 commented

Thank you. This issue has been already patched in 18.x default branch 88c5890
However, hasn’t been release in the zip archive yet.
In your website, can you go to protected/framework/Server/Server.class.php and copy/paste the content of this file https://raw.githubusercontent.com/pH7Software/pH7-Social-Dating-CMS/18.x/_protected/framework/Server/Server.class.php and save it.

It will fix the issue you currently have. Hope it helps!

pH-7 commented

Same problem as #1061

Thank you! That helped.