Cacti / plugin_thold

Thold Plugin for Cacti
GNU General Public License v2.0
61 stars 60 forks source link

[Thold 2.0] - Unknown column 'enabled' in 'field list' #596

Closed bmfmancini closed 1 year ago

bmfmancini commented 1 year ago
<html><body>
<!--StartFragment-->

2023-07-26  09:23:01 - CMDPHP PHP ERROR WARNING Backtrace:   (/plugins/thold/poller_thold.php[96]:perform_thold_processes(),  /plugins/thold/poller_thold.php[139]:thold_check_all_thresholds(),  /plugins/thold/includes/polling.php[299]:thold_check_threshold(),  /plugins/thold/thold_functions.php[2236]:thold_get_thold_notification_format_file(),  /plugins/thold/thold_functions.php[1365]:CactiErrorHandler())
--
2023-07-26 09:23:01 - ERROR PHP WARNING in  Plugin 'thold':  Undefined variable $notify_format_file in file:  /var/www/html/cacti/plugins/thold/thold_functions.php  on line: 1365
2023-07-26 09:23:01 - CMDPHP SQL Backtrace:   (/plugins/thold/poller_thold.php[96]:perform_thold_processes(),  /plugins/thold/poller_thold.php[139]:thold_check_all_thresholds(),  /plugins/thold/includes/polling.php[299]:thold_check_threshold(),  /plugins/thold/thold_functions.php[2234]:get_thold_emails(),  /plugins/thold/thold_functions.php[6552]:get_thold_notification_emails(),   /plugins/thold/thold_functions.php[6565]:thold_notification_list_enabled(),  /plugins/thold/thold_functions.php[6591]:db_fetch_assoc(),  /lib/database.php[679]:db_fetch_assoc_prepared(),  /lib/database.php[699]:db_execute_prepared())
2023-07-26 09:23:01 - CMDPHP ERROR: A DB Row Failed!, Error: Unknown column 'enabled' in 'field list'
2023-07-26 09:23:01 - CMDPHP SQL Backtrace:   (/plugins/thold/poller_thold.php[96]:perform_thold_processes(),  /plugins/thold/poller_thold.php[139]:thold_check_all_thresholds(),  /plugins/thold/includes/polling.php[299]:thold_check_threshold(),  /plugins/thold/thold_functions.php[2233]:get_thold_emails(),  /plugins/thold/thold_functions.php[6552]:get_thold_notification_emails(),   /plugins/thold/thold_functions.php[6565]:thold_notification_list_enabled(),  /plugins/thold/thold_functions.php[6591]:db_fetch_assoc(),  /lib/database.php[679]:db_fetch_assoc_prepared(),  /lib/database.php[699]:db_execute_prepared())
2023-07-26 09:23:01 - CMDPHP ERROR: A DB Row Failed!, Error: Unknown column 'enabled' in 'field list'

<!--EndFragment-->
</body>
</html>
TheWitness commented 1 year ago

That one's odd. Review a little bit later.

TheWitness commented 1 year ago

Just thinking that is the enabled column that goes right after the name column in the notification list table.

bmfmancini commented 1 year ago

yes I see it here

    db_add_column('plugin_notification_lists', array(
        'name'    => 'enabled',
        'type'    => 'char(3)',
        'NULL'    => false,
        'default' => '',
        'after'   => 'name')
    );
bmfmancini commented 1 year ago

pr sent

TheWitness commented 1 year ago

Cool.