Comments (13)
This is correct. Cacti itself also doesn't work on PHP 7 either though, partly for the same reason.
The next weathermap release is switching from mysql_xxxx calls to PDO, which will resolve this for the Weathermap Cacti plugin and picker. Cacti 1.0 is doing the same - I doubt there will be a fix for Cacti 0.8.x. The Cacti team's fix at this time is to use PHP 5.6. In particular Ubuntu 16 comes with PHP 7 now, which has highlighted this problem.
from network-weathermap.
Cacti 0.8.8g and Cacti SPINE 0.8.8g - work with PHP 7.0 without problem
from network-weathermap.
That's interesting. They didn't for me! :-) And there is a whole thread in the Cacti forum of Ubuntu 16 users with problems.
Anyway, for Weathermap the solution is 0.98a, which is in progress. Removing all the database calls from the plugin takes a while. I hope it will be complete in the next couple of weeks.
from network-weathermap.
Hello! Any news?
from network-weathermap.
Making progress! The two cacti plugin parts are very nearly complete. The editor data-picker remains.
from network-weathermap.
Many thanks.
I am pleased to be testing)
from network-weathermap.
Sure - I'll let you know :-) Also, I just fired up my Ubuntu 16 vagrant box, and this is the error I get from Cacti 0.8.8.h on it (PHP 7.0.4, mysql 5.7.12) :
[Tue Jul 19 17:05:10.112827 2016] [:error] [pid 18507] [client 10.0.2.2:56310] PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /var/www/html/cacti/lib/adodb/adodb.inc.php on line 866
which is why I was confused that you have it working! It seems that the ADODB bundled with Cacti hits this change in PHP 7.0 New objects cannot be assigned by reference, and also, the ADODB mysql driver uses the deprecated mysql_* functions, which don't exist in PHP 7.0
from network-weathermap.
include/config.php
$database_type = 'mysqli';
from network-weathermap.
from network-weathermap.
Even with 'mysqli', I still get the parse error. I don't see why you wouldn't. Very strange. Anyway, PDO is the future.
from network-weathermap.
The database changes are happening in the database-refactor branch, here: 25cd23a
from network-weathermap.
FYI: I'm on 0.8.8f (the APT version for ubuntu 16.04) and it seems to work fine. I can add hosts, create graphs, poll data, everything i'd expect. The only complaint seems to be that 0.8.8f doesn't know about the rrdtool version I have (also APT version), but it still works. PHP7, Ubuntu 16.04. Using spine for polling.
Oh and network weathermap doesn't work properly, but that's what this issue is about so..
Could it be that the APT package for 16.04 is modified somehow compared to the official version?
from network-weathermap.
All mysql_* functions are replaced now.
from network-weathermap.
Related Issues (20)
- When host is disabled - have error HOT 1
- Anti-aliasing in v0.98 needs explanation HOT 4
- 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
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.