Is there a problem with gc and PHP>8.0?

Hi Johnny, till now i used gc with PHP 8.0 and everything works well, After upgrading to 8.3, i get the following error.


console

Returning to 8.0 and all works well again
cheers,
Marc

Hello @MarcVdB ,

Grocery CRUD Enterprise works fine with latest PHP 8.3 . It should be a local configuration issue. Enable error reporting in your PHP script by adding the following lines at the top of your script:

ini_set('display_errors', 1);
error_reporting(E_ALL);

As early as possible. If you use Codeigniter framework please also go to public/index.php file and add the following at the very beginning:

ini_set('display_errors', 1);
define('ENVIRONMENT', 'development');

Once you see the error and debugged your code you can remove those lines.

Let me know if that worked for you.

Regards
Johnny

1 Like

Thanx! That worked. It showed, that i forgot to install the mbstring extension (which is a non-default extension). After installing all runs well!

1 Like

is there a way to use the old grocerycrud with php8.3 and ci3 ? i have a project that i have to build from scratch using ci4 and grocery crud 2.x (not enterprise) . can you propose a way. ? however if i want to build it in ci4 should i use the gc2.x? Version for free?

Hello @cbabekos ,

Sorry I don’t get it.

Considering only the free versions Grocery CRUD version 1 runs with Codeigniter 3 only. If I remember correctly Codeigniter 3 doesn’t support PHP 8.3 so it wouldn’t be an issue of Grocery CRUD version but rather of Codeigniter version.

Grocery CRUD version 2 (free) works fine with PHP 8.3 and Codeigniter 4.

So considering that old version of Codeigniter 3 and Grocery CRUD version 1 doesn’t work with PHP 8.3, the only way to achieve that is is by migrating to Codeigniter 4 and Grocery CRUD version 2 (free) .

I am still not getting the initial question though, so if you can give more information this would help.

Regards
Johnny