You are not logged in.
Pages: 1
Topic closed
Bonjour,.
Lorsque j'essaie d'installer le plugin, j'ai une erreur HTTP 500 lorsque je clic sur installer.
Dans les logs Apache j'ai ceci:
[Tue Jan 23 14:51:41.891711 2018] [:error] [pid 640] [client 172.16.2.195:62230] PHP Fatal error: Uncaught Error: Call to a member function tableExists() on null in /var/www/glpi/plugins/archires/hook.php:40\nStack trace:\n#0 /var/www/glpi/inc/plugin.class.php(730): plugin_archires_install()\n#1 /var/www/glpi/front/plugin.form.php(48): Plugin->install('12')\n#2 {main}\n thrown in /var/www/glpi/plugins/archires/hook.php on line 40, referer: http://srvglpi1/glpi/front/plugin.php
Une idée sur le souci?
Merci d'avance et meilleures salutations.
Offline
Fatal error: Uncaught Error: Call to a member function tableExists() on null in /usr/share/glpi/plugins/archires/hook.php:40 Stack trace: #0 /usr/share/glpi/inc/plugin.class.php(730): plugin_archires_install() #1 /usr/share/glpi/front/plugin.form.php(48): Plugin->install('1') #2 {main} thrown in /usr/share/glpi/plugins/archires/hook.php on line 40
same same on install and upgrade
Last edited by Megachip (2018-01-26 18:29:31)
Offline
There is a bug in the hook.php on line 40. It is a simple typo which is not tolerated on *nix systems.
Old code:
if (!$DB->tableExists("glpi_plugin_archires_config")
&& !$db->tableExists("glpi_plugin_archires_views")) {
$DB->runFile(GLPI_ROOT ."/plugins/archires/sql/empty-2.2.sql");
New code:
if (!$DB->tableExists("glpi_plugin_archires_config")
&& !$DB->tableExists("glpi_plugin_archires_views")) {
$DB->runFile(GLPI_ROOT ."/plugins/archires/sql/empty-2.2.sql");
Notice the lowercase 'db' in the first block and the uppercase 'DB' in the second block. This should fix it for you.
Offline
Ticket opened in the forge of the plugin and corrected: https://forge.glpi-project.org/issues/5547
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Merci beaucoup pour la correction.
C'est parfait! :-)
Offline
Version 2.5.1 publiée ce jour.
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Pages: 1
Topic closed