Page 1 of 1

HTTP 500 Error

Posted: Tue Mar 14, 2023 11:23 am
by alaztetik
When I visited my app today, it was giving HTTP ERROR 500 and it was down.

Error log says:

Code: Select all

[14-Mar-2023 13:18:25 Europe/Minsk] PHP Fatal error:  Uncaught Error: Non-static method Format::init() cannot be called statically in /home/alazteti/demo/i18n/lib.format.php:37
Stack trace:
#0 /home/alazteti/demo/lib/lib.bootstrap.php(520): Format::instance()
#1 /home/alazteti/demo/lib/lib.bootstrap.php(84): Boot::dateTime()
#2 /home/alazteti/demo/index.php(35): Boot::init()
#3 {main}
  thrown in /home/alazteti/demo/i18n/lib.format.php on line 37
What happened?
How can I fix this issue?

Re: HTTP 500 Error

Posted: Tue Mar 14, 2023 11:28 am
by alfa24
Please provide forma version and php version

Re: HTTP 500 Error

Posted: Tue Mar 14, 2023 11:40 am
by alaztetik
Forma: 3.2.1
PHP: 8.1

Re: HTTP 500 Error

Posted: Tue Mar 14, 2023 11:47 am
by alfa24
Forma 3.2.1 is not fully compatible with php 8.1
You should downgrade to php 7.4 or fix manually each of those errors when they occur.

Re: HTTP 500 Error

Posted: Tue Mar 14, 2023 11:55 am
by alaztetik
Thank you for the feedback. It now works with 7.4.

The vendor did not provide a compatible PHP version, but the official document states that. I should have checked this information.