PHP Update on 19.0.2

Hello,
I don’t manage to update the PHP version on Windows to Dolibarr 19.0.2.

History: Original 18.0.4. installation on Windows with PHP 7.3.33. Then Doliwamp updates to 19.0.0 and 19.0.2. PHP has not been updated with any update. Although I find 7.4.26 in the directory …\dolibarr\bin\php, but it is not active.
After consulting the compatibility list I tried a manual update to PHP 8.2.21 (using a generic PHP update guide), but after that it was impossible to log in to Dolibarr.
Since we are using an add-on module that expects at least PHP 7.4 we urgently need to update PHP.

  • Why was there no PHP update when running Doliwamp?
  • How do I update to PHP 8.2.21 to make Dolibarr work again?

Best thanks in advance, Andy

Hello,

The best is to do manual installation : Manual installation on Windows - Dolibarr ERP CRM Wiki
Doliwamp is really for beginners/Associations, but should be avoided in business.

1 Like

Hi ksar,
Thanks y lot for your answer, I will use the refered document to solve my issue.
Cheers,
Andy

I was able to update PHP to 8.2.21.
Apache/PHP as well as DB starts. It looks like I now have a problem mysql.class.php resulting in:

Fatal error: Uncaught Error: Class “mysqli” not found in C:\dolibarr\www\dolibarr\htdocs\core\db\mysqli.class.php:1257 Stack trace: #0 C:\dolibarr\www\dolibarr\htdocs\core\lib\functions.lib.php(250): require_once() #1 C:\dolibarr\www\dolibarr\htdocs\master.inc.php(141): getDoliDBInstance(‘mysqli’, ‘localhost’, ‘dolibarrmysql’, xxxxxx’, ‘dolibarr’, 3306) #2 C:\dolibarr\www\dolibarr\htdocs\main.inc.php(376): require_once(‘C:\dolibarr\www…’) #3 C:\dolibarr\www\dolibarr\htdocs\index.php(31): require(‘C:\dolibarr\www…’) #4 {main} thrown in C:\dolibarr\www\dolibarr\htdocs\core\db\mysqli.class.php on line 1257

I read further documentation and the functilonal description of DoliDBMysqli, but I’m lost now.

Can anybody help please?

Hello,

PHP MYSQL module is not installed or not loaded.

Hi,
Thanks.
DB is loaded and can be accessed by DB-Tools but thereis a config-issue in PHP/Dolibarr I can not figure out.

Also, die Lösung ist, nicht nur den Webserver neu zu starten, sondern Windows als Ganzes neu zu starten, dann klappt die Abhängigkeit.

Für die PHP-Version ist es sehr empfehlenswert die Umgebungsvariablen “Pfad” für den angemeldeten Benutzer wie auch für das System mit dem PHP-Pfad und dem Pfad für die PHP-Extensions zu ergänzen.

Danach unter Umständen noch Apache updaten um CURL-Problemen entgegenzuwirken.

Hi,
had the same problem, but other solution. In Apache Config File (“C:\dolibarr\bin\apache\apache2.4.51\conf\httpd.conf”) there ist the path to the PHP.ini File. And this path does not show to the php.ini file in the php version folder, but in “C:\dolibarr\bin\apache\apache2.4.51\bin\php.ini”.
And in this file there is the setting to the extension dir. And the extension dir shows to the php version folder. So I changed this to the actual php version folder, save, restart services.