You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-05-24 08:25:11

bustmove
Member
Registered: 2023-05-24
Posts: 5

“Uncaught Exception Error” when execute "cron.php "

My Enviroment:

OS:Debian 10
mariadb:15.1
php:8.1.18
apache:2.4.38

GLPI:10.0.7  (just finished upgrade from 10.0.5)
Automatic Actions(in "SETUP" menu):(Run Mode)CLI

Hello everyone, GLPI was a great system that helps me a lot.
But recently, When I upgrade (from 10.0.5 to)10.0.7, I found the "SETUP-Automatic actions-queuednotification" didn't work.
I'm try to run "php /var/www/glpi/front/cron.php" under OS CLI, It show me:

root@glpi:/etc/cron.d# php /var/www/glpi/front/cron.php
Uncaught Exception Error: Call to undefined function mysqli_report() in /var/www/glpi/src/DBmysql.php at line 226

So I guess that's why the "Automatic actions" didn't work fine.

Did anyone can help? Appreciate that!

Last edited by bustmove (2023-05-24 10:11:05)

Offline

#2 2023-05-24 10:23:53

Kaya84
Member
Registered: 2019-06-13
Posts: 217

Re: “Uncaught Exception Error” when execute "cron.php "

Check for Cli php.ini if mysql extension is enabled..

Offline

#3 2023-05-24 11:28:26

bustmove
Member
Registered: 2023-05-24
Posts: 5

Re: “Uncaught Exception Error” when execute "cron.php "

Kaya84 wrote:

Check for Cli php.ini if mysql extension is enabled..

Thanks body! You remind me the environment of "php "

I remember the GLPI 10.0.7 require the php version was 8.1, and I installed 8.1 and 8.2, I should try to purge 8.2

Last edited by bustmove (2023-05-24 11:29:02)

Offline

#4 2023-05-25 03:23:58

bustmove
Member
Registered: 2023-05-24
Posts: 5

Re: “Uncaught Exception Error” when execute "cron.php "

Thanks everyone, Solved!
Few days ago, I did aptitude upgrade some package, but not aware php 8.1 upgade to 8.2. At php front-end page, The info shows php version was 8.1.18, but at the back-end of OS CLI, whe I run php -v, it shows:

root@glpi:/etc/cron.d# php -v
PHP 8.2.6 (cli) (built: May 12 2023 07:47:08) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies

That's the reason php(8.2) run cron.php shows error.

Last edited by bustmove (2023-05-25 11:09:45)

Offline

Board footer

Powered by FluxBB