Third party plugins, patches, bugfixes
-
alaztetik
- Newbie
- Posts: 9
- Joined: Sun Mar 12, 2023 11:07 pm
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: 1788
- Joined: Fri Nov 24, 2017 8:45 am
Post
by alfa24 »
Please provide forma version and php version
-
alaztetik
- Newbie
- Posts: 9
- Joined: Sun Mar 12, 2023 11:07 pm
Post
by alaztetik »
Forma: 3.2.1
PHP: 8.1
-
alfa24
- Senior Boarder
- Posts: 1788
- Joined: Fri Nov 24, 2017 8:45 am
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.
-
alaztetik
- Newbie
- Posts: 9
- Joined: Sun Mar 12, 2023 11:07 pm
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.