Page 1 of 2

Wizard upload error log

Posted: Mon Oct 05, 2015 6:53 pm
by emartine
I just attempted to upload a wizard I modifed and I get the error "Wizard installation failed. Uploaded zip file is not a config wizard." I renamed it and changed the templates and functions... however I can't seem to find the error log that states what the issue is.

Re: Wizard upload error log

Posted: Tue Oct 06, 2015 9:47 am
by tmcdonald
Usually we only see this if someone is trying to upload a wizard into the component field, or if the wizard is truly corrupted/mangled/broken. I don't know of any sort of log that we would keep for this, but I can ask the developers what sort of things would cause it to fail. In the meantime, can you post/PM your wizard? If you PM it to me, please post back here saying you have done so for the benefit of the rest of the staff.

Update: Received and shared in network drive.

Re: Wizard upload error log

Posted: Tue Oct 06, 2015 12:06 pm
by emartine
Sent PM with web wizard attached.

Re: Wizard upload error log

Posted: Tue Oct 06, 2015 3:13 pm
by scottwilkerson
I PM's you back a fixed wizard

For others, here was the problem, a wizard must be in a folder with the same name as the *.inc.php file.

Also, I fixed a bug in the wizard code on line 558 where it was missing a comma, causing invalid PHP

Re: Wizard upload error log

Posted: Tue Oct 06, 2015 3:28 pm
by emartine
Thanks Scott. I appreciate the help!

Re: Wizard upload error log

Posted: Tue Oct 06, 2015 3:35 pm
by emartine
I uploaded the wizard and noticed that everything below the regular website URL wizard disappeared. Looking into the logs to see what happened.

Re: Wizard upload error log

Posted: Tue Oct 06, 2015 3:52 pm
by jomann
Normally that means the page is hitting a warning that is causing the script to die but not actually breaking everywhere when it just gets loaded into the system, only when it's being called.

Re: Wizard upload error log

Posted: Tue Oct 06, 2015 4:02 pm
by emartine
I moved this /usr/local/nagiosxi/html/includes/configwizards/website_24x7 to /tmp and refreshed the web page. All the other wizards came back. Going to keep digging and see what happened.

Re: Wizard upload error log

Posted: Tue Oct 06, 2015 4:07 pm
by scottwilkerson
This is likely a bug in your wizard, check your apache log

tail -f /var/log/httpd/error_log

Re: Wizard upload error log

Posted: Tue Oct 06, 2015 4:39 pm
by emartine
No errors are showing up in the apache logs.