Page 1 of 1

PHP V7 vs V8

Posted: 2023-09-23 09:04
by webnestors
Hi all it seems that the generated app that I made is not compatible with php version 8 and newer only with php version 7.4, What I face is that when I go to a table and save a record I get an error 500, any solution to make it work in php version 8?

Re: PHP V7 vs V8

Posted: 2023-09-23 13:15
by jsetzer
Can you please check for syntax errors in your hooks code, first. Very often there are parameters missing like $error parameter in functions sqlValue($command, $error) or sql($command, $error). Your IDE should mark those as errors, already. Those parameters are mandatory now. Just an idea.

Re: PHP V7 vs V8

Posted: 2023-09-27 18:50
by onoehring
Hi,

I noticed problems with PHP 8.2, but not with PHP 8.1 anymore. Maybe you have some more details for us.
Also: Did you generate your app with the latest version of AppGini? This has some fixes for the warnings that resulted when using PHP 8.x

Olaf