Bug 264385 - net-mgmt/cacti: 1.2.19 fails to run: ERROR: PHP ERROR: Uncaught TypeError: Unsupported operand types: array & bool in /usr/local/share/cacti/lib/mib_cache.php:359
Summary: net-mgmt/cacti: 1.2.19 fails to run: ERROR: PHP ERROR: Uncaught TypeError: Un...
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-qa, regression
: 264386 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-01 03:58 UTC by heas
Modified: 2023-12-26 19:27 UTC (History)
3 users (show)

See Also:
lwhsu: maintainer-feedback? (m.muenz)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description heas 2022-06-01 03:58:22 UTC
just upgraded pkg;

ERROR: PHP ERROR: Uncaught TypeError: Unsupported operand types: array & bool in
 /usr/local/share/cacti/lib/mib_cache.php:359
Cacti[10409]: Stack trace:
#0 /usr/local/share/cacti/lib/snmpagent.php(471): MibCache->update(Array)
#1 /usr/local/share/cacti/poller.php(822): snmpagent_poller_bottom()
#2 {main}
thrown in file: /usr/local/share/cacti/lib/mib_cache.php on line: 359

the error is obvious; s/\&/&&/
Comment 1 Li-Wen Hsu freebsd_committer freebsd_triage 2022-06-01 04:01:20 UTC
*** Bug 264386 has been marked as a duplicate of this bug. ***
Comment 2 Michael Muenz 2022-06-01 06:07:18 UTC
Hi,

Did you mean Cacti 1.2.20 or 1.2.10?
On which version are you (Cacti, PHP, FreeBSD)?

Michael
Comment 3 heas 2022-06-01 17:03:26 UTC
Indeed a typo, but 1.2.19 is what installed from binary for x86_64 fbsd 12.2
and php 8.0.18.
Comment 4 Michael Muenz 2022-06-03 19:27:38 UTC
Can you try the "latest" 1.2.20? 
I installed it from ports and cant reproduce.

But beware, it seems FBSD13.1 and PHP8 doesn't have php80-json so the install script fails. 

Please bear with me when it takes a bit since I'm on vacation the next weeks.
Comment 5 heas 2022-06-07 05:08:46 UTC
Take your time.  I will probably stop using cacti.
Thanks
Comment 6 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-12-21 21:27:04 UTC
Is the still persisting?
Comment 7 heas 2023-12-26 19:12:11 UTC
Sorry, I do not know.  I have stopped using cacti.
Comment 8 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-12-26 19:27:16 UTC
Sorry to hear that. Closing this for now. Will reopen if someone else has problems.