HTTP 500 Error

Third party plugins, patches, bugfixes
Post Reply
alaztetik
Newbie
Posts: 9
Joined: Sun Mar 12, 2023 11:07 pm

HTTP 500 Error

Post 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?
alfa24
Senior Boarder
Posts: 2120
Joined: Fri Nov 24, 2017 8:45 am

Re: HTTP 500 Error

Post by alfa24 »

Please provide forma version and php version
Per supporto GRATUITO contattatemi in privato qui
alaztetik
Newbie
Posts: 9
Joined: Sun Mar 12, 2023 11:07 pm

Re: HTTP 500 Error

Post by alaztetik »

Forma: 3.2.1
PHP: 8.1
alfa24
Senior Boarder
Posts: 2120
Joined: Fri Nov 24, 2017 8:45 am

Re: HTTP 500 Error

Post 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.
Per supporto GRATUITO contattatemi in privato qui
alaztetik
Newbie
Posts: 9
Joined: Sun Mar 12, 2023 11:07 pm

Re: HTTP 500 Error

Post 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.
Post Reply