You are not logged in.
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
Check for Cli php.ini if mysql extension is enabled..
Offline
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
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