Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#48325 - [cacti] Php7 compatibility

Attached to Project: Community Packages
Opened by ... (spider007) - Wednesday, 24 February 2016, 21:34 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 22 April 2016, 11:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


Cacti is not compatible with the currently shipped version of PHP in the Arch repos. This is easily fixed. I've attached a patch that fixes all issues. It fixes three issues:

* php7 no longer supplies the mysql-extension. Remove check and fix PDO support, configurable by using $database_hostname = "mysql:host=localhost;dbname=cacti";
* fixes in adodb, using incorrect constant names
* minor fix in html_tree.php that otherwise results in a broken interface
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 22 April 2016, 11:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  thank you
Comment by Alexander Kempen (chron) - Thursday, 21 April 2016, 14:52 GMT
  • Field changed: Percent Complete (100% → 0%)
The provided patch missed an occurence of "& new" on line 537 in

PHP message: PHP Parse error: syntax error, unexpected 'new' (T_NEW) in /usr/share/webapps/cacti/lib/adodb/ on line 537

Result: You can't add new graphs, devices or data sources.

For a patch see:
Comment by Alexander Kempen (chron) - Thursday, 21 April 2016, 15:13 GMT