I receiving the following error this morning when trying to access the Weathermap Editor:
[2019-05-22 08:08:48] production.ERROR: Cannot declare class Weathermap, because the name is already in use {“userId”:1,“email”:“[email protected]”,“exception”:"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 1): Cannot declare class Weathermap, because the name is already in use at /opt/librenms/html/plugins/Weathermap/Weathermap.php:5)
[stacktrace] #0 {main}
"}
I am also having this problem. I was using the Weathermap plugin the day before and can confirm that it was functional before the following pull happened overnight:
83522c6 Added support for East iStars UPS (os: istars) (#10041)
c9748b1 More url helper fixes (#10241)
2dc05ee Fixed Cisco MAC accounting discovery, polling and HTML templates. (#10158)
4387ab0 Fix docs tests (#10240)
e9ae08d Use Laravel url helpers to improve functionality without dns name (#10227)
Yeah, we had to remove a workaround for this bug in Weathermap because it caused issues in LibreNMS. The fix to Weathermap is in the pull request I linked. I’ll shoot laf an email and see if he can merge it.
60.diff:501: space before tab in indent.
//$errormessage .= " You might need to copy editor-config.php-dist to editor-config.php and edit it.";
warning: editor.php has type 100644, expected 100755
warning: 1 line adds whitespace errors.
I am having the same problem applying the patch as Donovan
git apply 60.diff
librenms_plugin/Weathermapper/60.diff:501: space before tab in indent.
//$errormessage .= " You might need to copy editor-config.php-dist to editor-config.php and edit it.";
warning: 1 line adds whitespace errors.
thanks everyone, works for me too! Can we get breaking updates like this in the LibreNMS notification feed? Our NOC relies on these weathermaps for everyday operations.