Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weathermap getting disabled when attempting to edit a map #53

Closed
evilnate83 opened this issue Jan 17, 2023 · 2 comments
Closed

Weathermap getting disabled when attempting to edit a map #53

evilnate83 opened this issue Jan 17, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@evilnate83
Copy link

OS - Oracle Linux 8

Apache status
`● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/httpd.service.d
└─php-fpm.conf
Active: active (running) since Mon 2023-01-16 20:00:50 EST; 20h ago
Docs: man:httpd.service(8)
Main PID: 4188 (httpd)
Status: "Total requests: 1633; Idle/Busy workers 100/0;Requests/sec: 0.0223; Bytes served/sec: 126 B/sec"
Tasks: 278 (limit: 153432)
Memory: 56.7M
CGroup: /system.slice/httpd.service
├─4188 /usr/sbin/httpd -DFOREGROUND
├─4189 /usr/sbin/httpd -DFOREGROUND
├─4190 /usr/sbin/httpd -DFOREGROUND
├─4191 /usr/sbin/httpd -DFOREGROUND
├─4193 /usr/sbin/httpd -DFOREGROUND
└─4405 /usr/sbin/httpd -DFOREGROUND

MariaDB version
● mariadb.service - MariaDB 10.3 database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2023-01-16 19:52:37 EST; 20h ago Docs: man:mysqld(8) https://mariadb.com/kb/en/library/systemd/ Main PID: 1308 (mysqld) Status: "Taking your SQL requests now..." Tasks: 77 (limit: 153432) Memory: 303.5M CGroup: /system.slice/mariadb.service └─1308 /usr/libexec/mysqld --basedir=/usr

PHP version
PHP 7.4.33 (cli) (built: Dec 19 2022 13:23:13) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies

Errors from the cacti log
2023-01-17 16:15:23 - ERROR PHP ERROR in Plugin 'weathermap': Uncaught Error: Class 'index' not found in /var/www/html/cacti/plugins/weathermap/lib/WeatherMap.class.php:841 Stack trace: #0 /var/ww w/html/cacti/plugins/weathermap/lib/WeatherMap.class.php(529): WeatherMap->LoadPlugins() #1 /var/www/html/cacti/plugins/weathermap/lib/WeatherMap.class.php(372): WeatherMap->Reset() #2 /var/www/htm l/cacti/plugins/weathermap/weathermap-cacti-plugin-editor.php(281): WeatherMap->__construct() #3 {main} thrown in file: /var/www/html/cacti/plugins/weathermap/lib/WeatherMap.class.php on line: 841 2023-01-17 16:15:23 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler()) 2023-01-17 16:15:23 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'

@TheWitness
Copy link
Member

Apply this patch. It may take a day or so to get merged.

#54

@netniV netniV added the duplicate This issue or pull request already exists label Jan 18, 2023
@netniV
Copy link
Member

netniV commented Jan 18, 2023

This was a duplicate of #52 so closing for now.

@netniV netniV closed this as completed Jan 18, 2023
netniV pushed a commit that referenced this issue Jan 20, 2023
TheWitness added a commit that referenced this issue Jan 29, 2023
* Fixing Issues #52 & #53 - Disabling

* Fixing #57 - Wrong table alias

Invalid argument supplied for foreach() in file: /lib/ds-common.php on line: 66

* Additional fix for #57 - missing check

* Fixing Issue #55 - Bad variable

* Fixing Issue #50 - Link order

Switching Left for Right on the selection.

* Fixing trimming of file paths in #58

* mogrify images

* QA: Provide a config upgrade script

* QA: Move stats for individual maps to medium

* No longer required.  Redirect handles

* Fixing #24 Invalid colors result in errors

Logged error message when setting 'none' as scale color

* Fixing #63 - AICON's Not working

* Fixing #64 - Map scroll

* Fixing #66 - Auto-refresh

* Fixing #67 - int errors

* Restore image centering

* Fixing Issue #65 - Hover image sizes

The container should not be properly sized.

* Fixing #72 NOTES broken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants