Page 1 of 1

Support for PHP 8.x?

Posted: 2022-03-27 03:07
by toolie
Hi there, I just moved my websites to a server with PHP 8.0.15 and 5.5.5-10.6.5-MariaDB. Will the current version of AppGini work on this server? I'm behind a couple of versions of AppGini.

Re: Support for PHP 8.x?

Posted: 2022-03-28 01:31
by baudwalker
Version 22.12 Revision 1273 runs ok with php 8.1 on my local server.

Barry

Re: Support for PHP 8.x?

Posted: 2023-04-16 02:02
by toolie
After just over a year, I got around to trying the latest version of AppGini (v23.11) on the aforementioned server (see above). I opened the old project file, regenerated all the application files, and uploaded those files to the server. I'm getting a 500 error, and the stack trace below. [domain.com]/artdb/ is the project folder.

Code: Select all

PHP message: PHP Fatal error:  
Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in [absolute path]/artdb/settings-manager.php:148\n
Stack trace:\n
#0 [absolute path]/artdb/settings-manager.php(264): save_config()\n
#1 [absolute path]/artdb/settings-manager.php(108): update_config_app_uri()\n
#2 [absolute path]/artdb/lib.php(9): detect_config()\n
#3 [absolute path]/artdb/index.php(3): include_once('...')\n
#4 {main}\n  thrown in [absolute path]/artdb/settings-manager.php on line 148
I have checked the database connection and it's fine. Does any of this look familiar? I don't know where to look next. Help!

Re: Support for PHP 8.x?

Posted: 2023-05-11 06:42
by onoehring
Hi,

I did report several bugs/warnings which concerned 8.x.
Yes, I did have similar problems like you describe when I regenerated an application due to table changes.
Just go check your code (at the mentioned place), maybe it's YOUR code that has an error now, not AG generated code?

Olaf

Re: Support for PHP 8.x?

Posted: 2023-05-23 15:37
by a.gneady
Although I haven't been able to reproduce this issue on PHP 8.0, 8.1 or 8.2, I've added a type check line in this file that will be available in the next release to eliminate the error you reported.