Comments (11)
Please see several other tickets for work in progress moving to PDO. (Sorry, on my phone so no numbers handy)
Sent from my PDP-11/780
On 15 Oct 2016, at 17:05, Karol Babioch [email protected] wrote:
This projects heavily relies upon mysql_* functionality from PHP and no other MySQL interface can be chosen, since it is hardcoded. Therefore it does not work with PHP7. The underlying database shouldn't be too much of a deal and should be configurable. At the very least mysqli should be used to stay compatible with PHP7.
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from network-weathermap.
And: https://network-weathermap.com/2016/09/04/september-2016-current-issues/
This work is happening in the database-refactor branch, and is almost complete.
from network-weathermap.
@kbabioch, are you using weathermap standalone, with Cacti or something else? I assume Cacti, since otherwise the database stuff wouldn't affect you at all.
I think the current database-refactor commit works in PHP 7.0, aside from a couple of obscure rendering issues. I'd be interested to know if you agree. I'd also be interested in knowing more about your environment, if it doesn't - Cacti version, OS etc...
from network-weathermap.
@howardjones
0.98a works for me on php7.0.11-1 and cacti 0.8.8h. Thanks for the update
from network-weathermap.
@howardjones I'm using it in conjuction with Cacti, but I'm having issues with the actual installation. Installing network-weathermap from an official release works just fine, but I'm having trouble with the database-refactor
branch. I'm trying it in the following way:
- Remove the weathermap directory in Cacti's plugin directory
- Checkout the
database-refactor
branch from the git repostiry - Invoke make
- Put the content from the resulting archive in Cacti's plugin directory
- Trying to open
Plugin management
from within Cacti
At this point the page stays white. The error log states:
AH01071: Got error 'PHP message: PHP Warning: require_once(/usr/share/webapps/cacti/plugins/weathermap/lib/database.php): failed to open stream: No such file or directory in /usr/share/webapps/cacti/plugins/weathermap/setup.php on line 12\nPHP message: PHP Fatal error: require_once(): Failed opening required '/usr/share/webapps/cacti/plugins/weathermap/lib/database.php' (include_path='.:') in /usr/share/webapps/cacti/plugins/weathermap/setup.php on line 12\n', referer: xxx
The file /usr/share/webapps/cacti/plugins/weathermap/lib/database.php
is not there in either case (official release vs. self-made release), so maybe some include logic is broken?
@jasonkack: How did you test it? Even when installing the plugin from the official release and then trying to replace all files I run into the same problem and cannot open a single Cacti page.
from network-weathermap.
Aaah. OK. The makefile is what I use to make releases - mostly, it compiles the manual from XML sources, and zips up the file that's uploaded as a release. However, it uses the packing.list file to decide what ends up in the zip file. I haven't updated that recently, and there are a lot of new files (including database.php) since 0.98. So instead, for the moment, I'd clone directly into plugins/weathermap. That how I test until very close to release time.
from network-weathermap.
Ok, after having a look at the Makefile it all makes sense now. For the time being I've basically copied all files from the repository into the plugin directory. This works fine. So far I couldn't spot any problems. Integration with Cacti works fine, although I certainly haven't tested everything yet. Going to do so in the next couple of days. I will report back any problems I encounter. Is there any ETA when this will be released officially?
from network-weathermap.
There is one failing test (or group of tests) related to the precedence of background colours for nodes. There are some changes I still want to add in for the new SNMPv2c and SNMPv3 plugins.
There's some documentation (and obviously packing.list!) to update.
I expect a week or two in real time.
Thanks for your feedback!
from network-weathermap.
We have an issue when we set the: "SET rrd_use_poller_output 1" option in the config because we use boost:
Plugin 'weathermap': Uncaught Error: Call to undefined function mysql_real_escape_string() in /opt/cacti/plugins/weathermap/lib/datasources/WeatherMapDataSource_rrd.php:72
We are on the database-refactor branch but the wmrrd_read_from_poller_output function still seems to use php5 code.
If you need anymore info I would be glad to help.
from network-weathermap.
Thanks for the report! This is a known issue - see #45. Several of the data plugins still have outstanding work to switch to PDO database calls.
from network-weathermap.
All mysql_* functions are replaced now.
from network-weathermap.
Related Issues (20)
- cant install on cacti 1.2.4 HOT 4
- Weathermap CACTI 1.2.7 HOT 5
- Any workaround for changing SNMP Indexes ? HOT 4
- Weathermap cannot run outside dir HOT 5
- Overlib Issue HOT 4
- Unable to view Realtime Graph in Weathermap HOT 10
- Weathermap full size view blank sometime HOT 7
- Incorrect calculation of points in angled "via" option HOT 6
- Editor does not work HOT 5
- Give Cacti User Read-only access of single weather Map HOT 3
- Incorrect calculation of COMMENTPOS
- Create copy - Incorrect permissions HOT 1
- I can't Unzip HOT 1
- Is this project abandoned? HOT 8
- Weathermap.class.php warnings HOT 11
- PHP8 Deprecations HOT 2
- Weathermap issue with SQLSTATE[HY000]: General error: 1364 Field 'last_time' doesn't have a default value'
- New weathermap plugin installation error HOT 2
- ZABBIX V6
- How can I change the color of the NODE in the ‘weathermap’ plugin? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from network-weathermap.