AppGini 22.12 PHP support

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
jbarge
Posts: 18
Joined: 2020-01-28 18:26

AppGini 22.12 PHP support

Post by jbarge » 2022-04-02 10:47

Hi,

New AppGini 22.12 version is normaly supported with PHP 7.0 and table view acces runs normaly with PHP 7.0 but not with PHP 7.2

Or my heberger support minimum version PHP 7.2

Here is the bug with PHP 7.2 :

Fatal error: Uncaught ArgumentCountError: Too few arguments to function sql(), 1 passed in C:\Users\abarg\Documents\EasyPHP-Devserver-17\eds-www\alls-alumni\hooks\membres.php on line 55 and exactly 2 expected in C:\Users\abarg\Documents\EasyPHP-Devserver-17\eds-www\alls-alumni\admin\incFunctions.php:395 Stack trace: #0 C:\Users\abarg\Documents\EasyPHP-Devserver-17\eds-www\alls-alumni\hooks\membres.php(55): sql('select valeur f...') #1 C:\Users\abarg\Documents\EasyPHP-Devserver-17\eds-www\alls-alumni\membres_view.php(232): membres_init(Object(DataList), Array, Array) #2 {main} thrown in C:\Users\abarg\Documents\EasyPHP-Devserver-17\eds-www\alls-alumni\admin\incFunctions.php on line 395

Can you help me ?

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

Re: AppGini 22.12 PHP support

Post by jsetzer » 2022-04-02 12:49

From the error message it looks as if you are missing the 2nd argument $e when calling sql("sql command", $e)-function in your hooks code of hooks\membres.php. I don't think this relates to AppGini- generated code but to your custom PHP code.
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 24.10 Revision 1579 + all AppGini Helper tools

jbarge
Posts: 18
Joined: 2020-01-28 18:26

Re: AppGini 22.12 PHP support

Post by jbarge » 2022-04-03 15:32

Thanks very much for your answer.

André BARGE

Post Reply