Support for PHP 8.x?

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
toolie
Posts: 4
Joined: 2016-10-02 07:23

Support for PHP 8.x?

Post by toolie » 2022-03-27 03:07

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.

User avatar
baudwalker
Veteran Member
Posts: 188
Joined: 2015-02-03 08:08
Location: Bellingen NSW Australia

Re: Support for PHP 8.x?

Post by baudwalker » 2022-03-28 01:31

Version 22.12 Revision 1273 runs ok with php 8.1 on my local server.

Barry

toolie
Posts: 4
Joined: 2016-10-02 07:23

Re: Support for PHP 8.x?

Post by toolie » 2023-04-16 02:02

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!

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

Re: Support for PHP 8.x?

Post by onoehring » 2023-05-11 06:42

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

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Support for PHP 8.x?

Post by a.gneady » 2023-05-23 15:37

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.
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply