Closed netniV closed 6 years ago
I could have sworn I fixed this one about a month ago! (in that long thread issue). I thought I replaced it with a try/catch. I definitely remember that Cacti still picks up the error even with the @. There's also a reason why I didn't use is_writable()
so that isn't an alternative.
Hmm, what is the is_writable reason? Is that to do with cache because there is a function to flush the cache. Just curious because someone else had an issue that seemed to be with the is_writable function.
I think it was that it doesn't actually check permissions. It does some tests a bit like checking the permissions, but in some situation way back when, it would say the directory was writable when it wasn't. It must be a long time though, because the first svn version (imported here) already had this check instead. In fact 0.8 (first release with Cacti plugin) already had it.
I've done some testing of other software, it isn't just your plugin. I have suggested a change to the error handler for this in https://github.com/Cacti/cacti/issues/1296
So this no longer generates the backtrace. However, I suspect I got these errors when I clicked on Create Map. Whilst I know you've been working on the Editor, I take it we can't actually create a new map yet?
The editor should be working - anything left is a legit bug. The management UI is a lot of dummy screens at the moment. Next commit should start adding back functionality. The backtrace was from the 'check to see if output/ is writable', when you have just installed the plugin.
Yeah my output isn't writable, so I'm still getting the warning but i'm not getting anything when I use the "Create Map" option. It gives me the screen, I click create after entering details nowt happens (presume this is a dummy screen you mention)
Yes - that's the dummy screen. 'Add Map' (existing file) and 'Create Map' (new file) are the first two I will be adding. I realised there was no particular reason to have to go into the editor to create a new map, so you will be able to do that from the management screen as well, including using another map as a template.
Gimme gimme gimme (a map after midnight... )
Is there anything I can do in the meantime to start a map so I can at least try editing one?
More importantly, when will you be adding the Star Trek Console theme? ;-)
touch configs/empty.conf
should do the trick :-)
If there's an open-source Impact-like font, I will try to make the LCARS template!
The above logs are generated, presumably as a result of the poller calling Weathermap's code. However, there is both a Weathermap's warning and a Cacti error being recorded each time because I hadn't created the output directory (or it's not got the right permissions).
I'm not sure why there is a log within Cacti, given that the following code generated it:
Normally the @ suppresses errors so I'm a bit surprised this even happens.