Cacti 1.1.38 fails to display graphs and acts erratically
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cacti (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Cacti fails to show many graphs, and also has problems reindexing.
The error given is:
sizeof(): Parameter must be an array or an object that implements Countable in /usr/share/
Fix is by patch:
diff --git a/lib/utility.php b/tmp/utility.php
index 6488d98..306e6e4 100644
--- a/lib/utility.php
+++ b/tmp/utility.php
@@ -459,7 +459,7 @@ function push_out_
*/
function poller_
/* set all fields present value to 0, to mark the outliers when we are all done */
- $ids = array();
+ $ids = '';
if (sizeof(
@@ -538,7 +538,7 @@ function poller_
}
/* remove stale records FROM the poller cache */
- if (sizeof($ids)) {
+ if (strlen($ids)) {
} else {
/* only handle explicitely given local_data_ids */
affects: | ubuntu → cacti (Ubuntu) |
Fixed upstream.
https:/ /github. com/Cacti/ cacti/issues/ 1528