Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
jason23
Posts: 44
Joined: Wed May 22, 2024 9:52 am

Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post by jason23 »

Hello Sir,

I have just finished the upgrade from Cacti v0.8.8h to v1.2.27. And now I am testing to add back the Plugin "WeatherMap" into the Cacti.

I have downloaded the "WeatherMap" via the below Link, and paste in D:\Inetpub\wwwroocacti\plugins. But the Cacti Site will be crashed after I put in the Plugins of "WeatherMap".

https://github.com/Cacti/plugin_weathermap

The error is as below showing at Chrome Browser.

This page isn’t working
hk-cacti is currently unable to handle this request.
HTTP ERROR 500

I can see the below error in cacti.log

2024-05-23 20:09:32 - ERROR PHP PARSE: syntax error, unexpected '?', expecting variable (T_VARIABLE) in file: D:\Inetpub\wwwroot\cacti\plugins\weathermap\lib\WeatherMap.class.php on line: 1880
2024-05-23 20:09:32 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2024-05-23 20:09:33 - ERROR PHP PARSE: syntax error, unexpected '?', expecting variable (T_VARIABLE) in file: D:\Inetpub\wwwroot\cacti\plugins\weathermap\lib\WeatherMap.class.php on line: 1880
2024-05-23 20:09:33 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
May I know if anyone can help to provide some solutions for me to solve this issue?

Thank you so much.

Jason
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post by macan »

php version?
Let the Cacti grow!
jason23
Posts: 44
Joined: Wed May 22, 2024 9:52 am

Re: Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post by jason23 »

macan wrote: Thu May 23, 2024 7:27 amphp version?
Hello Macan,

PHP 5.6.40 (cli)

MySQL 5.7.43
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post by macan »

fix is here
https://github.com/Cacti/plugin_weathermap/pull/148
or wait for appove this PR and download actual develop branch.


But you need update your php. weathermap needs php 7.4+
Let the Cacti grow!
jason23
Posts: 44
Joined: Wed May 22, 2024 9:52 am

Re: Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post by jason23 »

macan wrote: Thu May 23, 2024 9:03 am fix is here
https://github.com/Cacti/plugin_weathermap/pull/148
or wait for appove this PR and download actual develop branch.


But you need update your php. weathermap needs php 7.4+
Hello Macan,

Thanks for your prompt solution for me. I have just modified with the Row 1880, but it still having the Crash Issue.
May I know if I need to update to PHP 7.4+ as well? Or directly upgrade to "mysql-8.4.0" (Thread Safe Version)??

Thank you.

Jason
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post by macan »

requirements for cacti are described here:
https://github.com/Cacti/cacti

It is for cacti, plugins can have higher requirements like weathermap. You really have to update php to 7.4+
Let the Cacti grow!
jason23
Posts: 44
Joined: Wed May 22, 2024 9:52 am

Re: Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post by jason23 »

macan wrote: Fri May 24, 2024 1:07 am requirements for cacti are described here:
https://github.com/Cacti/cacti

It is for cacti, plugins can have higher requirements like weathermap. You really have to update php to 7.4+
Hello Macan.,

Thanks for your advice. Let me arrange a time to upgrade the PHP version.

Thank you.

Jason
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post by TheWitness »

Yea, sorry about that. I test on php 8.x these days.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jason23
Posts: 44
Joined: Wed May 22, 2024 9:52 am

Re: Failed to install v1.3 WeatherMap in v1.2.27 Cacti

Post by jason23 »

TheWitness wrote: Sat May 25, 2024 6:38 am Yea, sorry about that. I test on php 8.x these days.
Hello Witness,

Thanks for that.

Jason
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests