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

Map editor, did not look from config.php #169

Open
arno-st opened this issue Jan 6, 2025 · 3 comments
Open

Map editor, did not look from config.php #169

arno-st opened this issue Jan 6, 2025 · 3 comments

Comments

@arno-st
Copy link

arno-st commented Jan 6, 2025

In the latest weathmap 1.3.1, when you use the editor, the file config.php is not read

And the default path is
// sensible defaults $mapdir = 'configs';

Instead of what is in the config.php file (in my case):
$configdir = '/usr/share/cacti/plugins/weathermap/configs/';

Outputdir should behave the same, I think!

that lead to the following error:
06/01/2025 10:48:13 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/weathermap/weathermap-cacti-plugin-editor.php[396]:getMapAreaData(), /plugins/weathermap/lib/editor.actions.php[98]:WeatherMap->DrawMap(), /plugins/weathermap/lib/WeatherMap.class.php[3511]:file_get_contents(), CactiErrorHandler()) 06/01/2025 10:48:13 - ERROR PHP WARNING in Plugin 'weathermap': file_get_contents(configs/lavey-V3.conf): Failed to open stream: No such file or directory in file: /usr/share/cacti/plugins/weathermap/lib/WeatherMap.class.php on line: 3511

And the editor is not taking the image from the right directory, I didn't find where the images are called! And no error, but no image/icon on my map

@TheWitness
Copy link
Member

TheWitness commented Jan 6, 2025

Do not use the latest version it's very much broken. I haven't had time to fix it just telling people who Open tickets to not to upgrade to developer release.

@arno-st
Copy link
Author

arno-st commented Jan 6, 2025

Did you have a link to the 'old' one ?

@TheWitness
Copy link
Member

Check out the tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants