PHP7

Bonjour,
en passant avec PHP7 voici ce que j’ai comme message dans la partie module.
Warning: Declaration of modShowPrice::init() should be compatible with DolibarrModules::init($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/showprice/core/modules/modShowPrice.class.php on line 161

Warning: Declaration of modShowPrice::remove() should be compatible with DolibarrModules::remove($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/showprice/core/modules/modShowPrice.class.php on line 161

Warning: Declaration of modCustomFields::init() should be compatible with DolibarrModules::init($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/customfields/core/modules/modCustomFields.class.php on line 291

Warning: Declaration of modCustomFields::remove() should be compatible with DolibarrModules::remove($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/customfields/core/modules/modCustomFields.class.php on line 291

Warning: Declaration of modExtraPrice::init() should be compatible with DolibarrModules::init($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/extraprice/core/modules/modextraprice.class.php on line 125

Warning: Declaration of modExtraPrice::remove() should be compatible with DolibarrModules::remove($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/extraprice/core/modules/modextraprice.class.php on line 125

Warning: Declaration of modNdfp::init() should be compatible with DolibarrModules::init($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/ndfp/core/modules/modNdfp.class.php on line 558

Warning: Declaration of modNdfp::remove() should be compatible with DolibarrModules::remove($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/ndfp/core/modules/modNdfp.class.php on line 558

Warning: Declaration of modmyfield::remove() should be compatible with DolibarrModules::remove($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/myfield/core/modules/modmyfield.class.php on line 252

Warning: Declaration of modAccountingExpert::init() should be compatible with DolibarrModules::init($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/custom/accountingex/core/modules/modAccountingExpert.class.php on line 609

Warning: Declaration of modAccountingExpert::remove() should be compatible with DolibarrModules::remove($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/custom/accountingex/core/modules/modAccountingExpert.class.php on line 609

Warning: Declaration of modUltimatepdf::init() should be compatible with DolibarrModules::init($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/custom/ultimatepdf/core/modules/modUltimatepdf.class.php on line 474

Warning: Declaration of modUltimatepdf::remove() should be compatible with DolibarrModules::remove($options = ‹  ›) in /home/atelyd5/public_html/erp_dsa/htdocs/custom/ultimatepdf/core/modules/modUltimatepdf.class.php on line 474

D’après vous. D’ou cela provient ?
nous sommes en DOlibar 6.04

Bonjour
Ceux sont des warning PHP. Pas grave mais ennuyeux.
Quelle version de PHP précisément ?
@+

Il s’agit d’une mauvaise écriture de certaines déclaration de fonctions (surcharge de classe), qui est moins a bien accepté en php7 (parmis d’autres choses tout aussi sympatique)
Pour les modules patas-monkey, une mise à jour depuis le dolistore devrait régler le problème

Bonjour à tous,
Serveur VPS OVH
Suite MAJ ubuntu 18.04 LTS et donc PHP 7.2.5, MySQL 5.7.22
Dolibarr 7.0
Je rencontre l’erreur suivante :

Fatal error: Uncaught Error: Class ‹ mysqli › not found in /home/ubuntu/dolibarr/htdocs/core/db/mysqli.class.php:201 Stack trace: #0 /home/ubuntu/dolibarr/htdocs/core/db/mysqli.class.php(91): DoliDBMysqli->connect(‹ localhost ›, ‹ dolibarr ›, ‹ Efr3vAdcWdz82Zi… ›, ‹  ›, ‹ 3306 ›) #1 /home/ubuntu/dolibarr/htdocs/core/lib/functions.lib.php(99): DoliDBMysqli->__construct(‹ mysqli ›, ‹ localhost ›, ‹ dolibarr ›, ‹ Efr3vAdcWdz82Zi… ›, ‹ dolibarr ›, ‹ 3306 ›) #2 /home/ubuntu/dolibarr/htdocs/master.inc.php(120): getDoliDBInstance(‹ mysqli ›, ‹ localhost ›, ‹ dolibarr ›, ‹ Efr3vAdcWdz82Zi… ›, ‹ dolibarr ›, ‹ 3306 ›) #3 /home/ubuntu/dolibarr/htdocs/main.inc.php(238): require_once(’/home/ubuntu/do…’) #4 /home/

Je cherche, sans trouver, une piste pour résoudre le problème…

Je m’auto réponds.

J’avais le module php7.1 encore activé alors que ubuntu 18.04 embarque php7.2

sudo a2dismod php7.1
sudo service apache2 restart
sudo a2enmod php7.2
sudo service apache2 restart

et hop c’est rentré dans l’ordre

1 « J'aime »

tu a instaler des module ou autre ??