Bug 2076407 - cacti-1.2.20-1.el7 does not work with CentOS7's php
Summary: cacti-1.2.20-1.el7 does not work with CentOS7's php
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: cacti
Version: epel7
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Morten Stevens
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-19 01:18 UTC by Akihiro Nomura
Modified: 2022-05-28 03:07 UTC (History)
3 users (show)

Fixed In Version: cacti-1.2.21-1.el7
Clone Of:
Environment:
Last Closed: 2022-05-28 03:07:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Akihiro Nomura 2022-04-19 01:18:09 UTC
Description of problem:


Version-Release number of selected component (if applicable):

cacti-1.2.20-1.el7.noarch
php-5.4.16-48.el7.x86_64


How reproducible:

Always

Steps to Reproduce:
1. Upgrade to cacti-1.2.20-1.el7
2. Access /cacti/ with browser and redirected to /cacti/install/install.php

Actual results:

Nothing appears.
The following error log is recorded to httpd's ssl_error_log

PHP Parse error:  syntax error, unexpected '[' in /usr/share/cacti/lib/api_device.p
hp on line 1214


Expected results:

Update wizard screen appears, without PHP error

Additional info:

Comment 1 Walter Francis 2022-04-19 16:54:23 UTC
I was about to log this, it appears to be a typo, not that it doesn't work with PHP.


The line on 1214 was originally something like this: } elseif (!$isset(raised[$poller_id])) {

When it should be more like this:

 } elseif (!isset($raised[$poller_id])) {

I am not sure, I quickly edited it so I could get Cacti going after the upgrade yesterday.

Comment 2 Akihiro Nomura 2022-04-19 17:00:13 UTC
Thanks for that info. Adding "$" before "raised" also worked for me.

Comment 3 Walter Francis 2022-04-19 17:44:48 UTC
Cacti is aware of the issue and are presumably fixing it, but it does appear to be an issue in their current master and their 1.2.20 tarballs.

Comment 4 Fedora Update System 2022-05-19 09:20:21 UTC
FEDORA-EPEL-2022-5c0acbff03 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-5c0acbff03

Comment 5 Fedora Update System 2022-05-20 03:41:20 UTC
FEDORA-EPEL-2022-5c0acbff03 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-5c0acbff03

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-05-28 03:07:26 UTC
FEDORA-EPEL-2022-5c0acbff03 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.