C'est parfait! :-)
]]>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.
]]>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
]]>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.