Cannot declare class Weathermap, because the name is already in use - After Update

Was working fine yesterday…could this be related to an update.

We are facing the same issue here. No solution yet !

Same thing here. Rebooting did not help either… Hopefully the next update will fix it.

Me too, happened on three separate installs.

Anyone noticed strange issues before that?
I am at this point also now, but had some other un-explainable issues before (Weathermap Plugin - WMEDIT01 despite user having access)

1 Like

Any estimate on when @laf can do a merge?

Kind regards,

Hi all.

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)

Best wishes
Frey Alfredsson

====================================

Component Version
LibreNMS 1.51-70-g83522c6
DB Schema 2019_02_10_220000_add_dates_to_fdb (132)
PHP 7.2.17
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

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.

If you can’t wait:

wget https://github.com/librenms-plugins/Weathermap/pull/60.diff
git apply 60.diff
2 Likes

Thanks

Is the below expected:

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.

If you modified things, probably are those only warnings?

Hi @murrant.

I had already found your patch and applied it. Thank you very much.

Best wishes
Frey Alfredsson

1 Like

Thank you !

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.

Try this

cd /opt/librenms/html/plugins
mv Weathermap Weathermap-bad
git clone https://github.com/librenms-plugins/Weathermap.git
mv /opt/librenms/html/plugins/Weathermap-bad/configs/*.conf /opt/librenms/html/plugins/Weathermap/configs/
chown -R www-data /opt/librenms/html/plugins/Weathermap/configs

2 Likes

That worked for me. Thanks!

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.

1 Like

I HAD the same issue till I just re-gited the repo and copied some configs.
I still get the following while editing host/links in a map

but it hasnt stopped me from changing anything. all works Thanks

Here is my config.

====================================
Component | Version
--------- | -------
LibreNMS  | 1.52-14-geea0d4d
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP       | 7.1.24
MySQL     | 5.5.56-MariaDB
RRDTool   | 1.4.8
SNMP      | NET-SNMP 5.7.2
====================================

[OK]    Composer Version: 1.8.5
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
[WARN]  Your local git contains modified files, this could prevent automatic updates.
    [FIX]:
    You can fix this with ./scripts/github-remove
    Modified Files:
     html/plugins/Test/Test.inc.php
     html/plugins/Test/Test.php

See here -> Try this

cd /opt/librenms/html/plugins
mv Weathermap Weathermap-bad
git clone https://github.com/librenms-plugins/Weathermap.git
mv /opt/librenms/html/plugins/Weathermap-bad/configs/*.conf /opt/librenms/html/plugins/Weathermap/configs/
chown -R www-data /opt/librenms/html/plugins/Weathermap/configs

1 Like