PHP V7 vs V8

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
webnestors
Posts: 9
Joined: 2023-05-17 21:02

PHP V7 vs V8

Post by webnestors » 2023-09-23 09:04

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?

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1944
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: PHP V7 vs V8

Post by jsetzer » 2023-09-23 13:15

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.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 25.10 + all AppGini Helper tools

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1231
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: PHP V7 vs V8

Post by onoehring » 2023-09-27 18:50

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

Post Reply