Giter Site home page Giter Site logo

Comments (13)

howardjones avatar howardjones commented on July 17, 2024

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.

YATV avatar YATV commented on July 17, 2024

Cacti 0.8.8g and Cacti SPINE 0.8.8g - work with PHP 7.0 without problem

from network-weathermap.

howardjones avatar howardjones commented on July 17, 2024

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.

YATV avatar YATV commented on July 17, 2024

Hello! Any news?

from network-weathermap.

howardjones avatar howardjones commented on July 17, 2024

Making progress! The two cacti plugin parts are very nearly complete. The editor data-picker remains.

from network-weathermap.

YATV avatar YATV commented on July 17, 2024

Many thanks.
I am pleased to be testing)

from network-weathermap.

howardjones avatar howardjones commented on July 17, 2024

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.

YATV avatar YATV commented on July 17, 2024

include/config.php

$database_type = 'mysqli';

from network-weathermap.

YATV avatar YATV commented on July 17, 2024

image

from network-weathermap.

howardjones avatar howardjones commented on July 17, 2024

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.

howardjones avatar howardjones commented on July 17, 2024

The database changes are happening in the database-refactor branch, here: 25cd23a

from network-weathermap.

malgoe avatar malgoe commented on July 17, 2024

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.

howardjones avatar howardjones commented on July 17, 2024

All mysql_* functions are replaced now.

from network-weathermap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.