intellitrend / zabbix-csv-host-import-module

Zabbix frontend module for importing hosts via CSV files
GNU Lesser General Public License v3.0
32 stars 13 forks source link

HTTP ERROR 500 #22

Open Daggers opened 3 weeks ago

Daggers commented 3 weeks ago

Centos 8, Apache 2, PHP 8.4

Oct 30 17:14:12.985390 2024] [proxy_fcgi:error] [pid 2726283:tid 140262827357952] [client 172.17.242.14:47785] AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected ')' in /usr/share/zabbix/modules/csv-host-importer/views/module.ichi.import.php on line 45\n', referer: https://zabbix.server/zabbix.php?action=dashboard.view

intellitrend-team commented 3 weeks ago

Thank you for your report. I cannot reproduce this error in PHP 8.3, but I have a suspicion. Can you please edit the file /usr/share/zabbix/modules/csv-host-importer/views/module.ichi.import.php and edit line 44 to remove the comma at the end of it?

Daggers commented 3 weeks ago

Thank you for your report. I cannot reproduce this error in PHP 8.3, but I have a suspicion. Can you please edit the file /usr/share/zabbix/modules/csv-host-importer/views/module.ichi.import.php and edit line 44 to remove the comma at the end of it?

Thanks, it works! =) Now I`ll try to import hosts...