Cacti / plugin_syslog

Syslog Plugin for Cacti
GNU General Public License v2.0
21 stars 16 forks source link

SQL syntax error for syslog when click browser back button #120

Closed yingbaiibm closed 4 years ago

yingbaiibm commented 4 years ago

Reproduce steps:

  1. Go to syslog alert logs page
  2. Click Clear button
  3. Click a syslog alert to drill down to Selected Alert page
  4. Click browser back button, page show empty, error exist.

2020/03/27 03:05:29 - CMDPHP SQL Backtrace: (/plugins/syslog/syslog.php[97]:syslog_view_alarm(), /plugins/syslog/syslog.php[152]:syslog_db_fetch_cell(), /plugins/syslog/database.php[77]:db_fetch_cell(), /lib/database.php[383]:db_fetch_cell_prepared(), /lib/database.php[399]:db_execute_prepared()) 2020/03/27 03:05:29 - CMDPHP ERROR: A DB Cell Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

yingbaiibm commented 4 years ago
Screen Shot 2020-03-27 at 3 25 31 PM Screen Shot 2020-03-27 at 3 26 14 PM Screen Shot 2020-03-27 at 3 28 19 PM