Cacti / cacti

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

CactiEZ 1.2.27 CMDPHP Validation Error on import Templates and import packages #5760

Closed tgreaser closed 1 day ago

tgreaser commented 1 month ago

Describe the bug

CactiEZ straight out of the box with latest Rocky updates .

Cannot import templates and just get the error

Can export templates already on the newly setup setup system

Console Import/Export

To Reproduce

Steps to reproduce the behavior:

  1. Go to Console Import/Export

  2. Click on Import Templates

  3. See error (/templates_import.php[48]:import(), /templates_import.php[444]:get_filter_request_var(), /lib/html_utility.php[493]:die_html_input_error(), /lib/html_validate.php[64]:cacti_debug_backtrace()) Validation error for variable image_format with a value of on. See backtrace below for more details.

Expected behavior

A page to allow one to upload the template.

Screenshots

Screenshot cacti error  2024-05-29 11-10-05

Desktop (please complete the following information)

Additional context

Error when using import packages

(/package_import.php[54]:package_import(), /package_import.php[930]:get_import_form(), /package_import.php[798]:get_filter_request_var(), /lib/html_utility.php[493]:die_html_input_error(), /lib/html_validate.php[64]:cacti_debug_backtrace()) Validation error for variable image_format with a value of on. See backtrace below for more details.

TheWitness commented 3 weeks ago

Can you please upload the XML file here.

tgreaser commented 3 weeks ago

Sorry I was not clear. I dont ever get the opertunity to even chose a file. As soon as I click on the Import I get the error page .
I get the same error in the logs too. 2024-06-07 16:56:16 - CMDPHP Validation Error, Variable:image_format, Value:on Backtrace: (/templates_import.php[48]:import(), /templates_import.php[444]:get_filter_request_var(), /lib/html_utility.php[493]:die_html_input_error(), /lib/html_validate.php[64]:cacti_debug_backtrace())

2024-06-07 16:56:15 - CMDPHP Validation Error, Variable:image_format, Value:on Backtrace: (/package_import.php[54]:package_import(), /package_import.php[930]:get_import_form(), /package_import.php[798]:get_filter_request_var(), /lib/html_utility.php[493]:die_html_input_error(), /lib/html_validate.php[64]:cacti_debug_backtrace())

Screenshot from 2024-06-07 16-56-47

TheWitness commented 1 day ago

I am unable to reproduce this one.

TheWitness commented 1 day ago

I've updated the CactiEZ as it was pretty old. Try again with the latest version. I'm going to go ahead and close now. Re-open if it happens again with the 1.2.27 version of CactiEZ.