I have the same issue on a fresh 1.2.18 installation with various plugins.
Code: Select all
2021-07-28 12:04:55 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'Intropage'
2021-07-28 12:04:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021-07-28 12:04:55 - ERROR PHP ERROR in Plugin 'Intropage': Uncaught Error: Call to undefined function intropage_initialize_database() in /opt/www/cacti/plugins/Intropage/setup.php:168 Stack trace: #0 /opt/www/cacti/plugins/Intropage/setup.php(63): intropage_setup_database() #1 /opt/www/cacti/lib/plugins.php(675): plugin_intropage_install() #2 /opt/www/cacti/plugins.php(74): api_plugin_install('Intropage') #3 {main} thrown in file: /opt/www/cacti/plugins/Intropage/setup.php on line: 168
2021-07-28 12:04:55 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[671]:db_execute_prepared())
2021-07-28 12:04:55 - CMDPHP ERROR: A DB Exec Failed!, Error: Column 'name' cannot be null
Code: Select all
2021-07-28 12:10:48 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'Reportit'
2021-07-28 12:10:48 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021-07-28 12:10:48 - ERROR PHP COMPILE_ERROR in Plugin 'Reportit': require_once(): Failed opening required '/opt/www/cacti/plugins/reportit/system/install.php' (include_path='.:/usr/share/pear:/usr/share/php') in file: /opt/www/cacti/plugins/Reportit/setup.php on line: 583
2021-07-28 12:10:48 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[671]:db_execute_prepared())
2021-07-28 12:10:48 - CMDPHP ERROR: A DB Exec Failed!, Error: Column 'name' cannot be null
I had a look at the github issues but was unable to really find something related to this.
Just enabled debug
Code: Select all
2021-07-28 12:16:03 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'Reportit'
2021-07-28 12:16:03 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2021-07-28 12:16:03 - ERROR PHP COMPILE_ERROR in Plugin 'Reportit': require_once(): Failed opening required '/opt/www/cacti/plugins/reportit/system/install.php' (include_path='.:/usr/share/pear:/usr/share/php') in file: /opt/www/cacti/plugins/Reportit/setup.php on line: 583
2021-07-28 12:16:03 - CMDPHP SQL Backtrace: (/plugins.php[74]:api_plugin_install(), /lib/plugins.php[671]:db_execute_prepared())
2021-07-28 12:16:03 - CMDPHP ERROR: A DB Exec Failed!, Error: Column 'name' cannot be null
2021-07-28 12:16:03 - DBCALL ERROR: A DB Exec Failed!, Error: 1048, SQL: 'INSERT INTO plugin_config (directory, name, author, webpage, version) VALUES (?, ?, ?, ?, ?)'
I've raised this in issue 4361 -
https://github.com/Cacti/cacti/issues/4361
Check if you plugin folder is lower-case.