Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.64k stars 405 forks source link

[1.2.20] - Errors thrown when trying to import packages #4583

Closed bmfmancini closed 2 years ago

bmfmancini commented 2 years ago

When trying to import packages via cli errors are thrown and package is not imported I have not tried a new install but I think someone has posted an issue with install and templates

[root@master1 cli]# php import_package.php --filename=/var/www/html/cacti/install/templates/Cisco_ASA_Security_Appliance.xml.gz
Read 88075 bytes of Package data
PHP Fatal error:  Uncaught Error: Call to undefined function clear_cached_allowed_types() in /var/www/html/cacti/lib/import.php:415
Stack trace:
#0 /var/www/html/cacti/lib/import.php(180): xml_to_graph_template('98596032e975476...', Array, Array, '1.2.20', false)
#1 /var/www/html/cacti/lib/import.php(383): import_xml_data('<cacti>\t\n\t<hash...', false, '3', false, false)
#2 /var/www/html/cacti/cli/import_package.php(133): import_package('/var/www/html/c...', '3', false, false)
#3 {main}
  thrown in /var/www/html/cacti/lib/import.php on line 415
TheWitness commented 2 years ago

This one is fixed. It's a pre-release QA bug, so no changelog.