Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cacti 1.2.0: Call to undefined function clearstatscache #1503

Closed
pautiina opened this issue Mar 29, 2018 · 5 comments
Closed

Cacti 1.2.0: Call to undefined function clearstatscache #1503

pautiina opened this issue Mar 29, 2018 · 5 comments

Comments

@pautiina
Copy link
Contributor

2018/03/28 22:32:21 - ERROR PHP ERROR: Uncaught Error: Call to undefined function clearstatscache() in /var/www/data/cacti/lib/dsstats.php:164 Stack trace: #0 /var/www/data/cacti/lib/dsstats.php(71): dsstats_obtain_data_source_avgpeak_values('/var/www/data/c...', 'daily', Array) #1 /var/www/data/cacti/poller_dsstats.php(191): dsstats_get_and_store_ds_avgpeak_values('daily') #2 {main} thrown in file: /var/www/data/cacti/lib/dsstats.php on line: 164

@netniV
Copy link
Member

netniV commented Mar 29, 2018

Thanks Alex. I'll submit a pull request shortly. The fix is to change clearstatscache() to clearstatcache()

netniV added a commit to netniV/cacti that referenced this issue Mar 29, 2018
This corrects issue Cacti#1503 were DSSTATS had incorrect function name 'clearstatscache' instead of 'clearstatcache'
@netniV
Copy link
Member

netniV commented Mar 29, 2018

PR has now been created.

@pautiina
Copy link
Contributor Author

Change please first line at file from:
s<?php
to:
<?php

@netniV
Copy link
Member

netniV commented Mar 29, 2018

Good spot, thought mine did not have that but actually I was on a different branch

cigamit pushed a commit that referenced this issue Mar 29, 2018
…1506)

* Fix for Issue #1503: Undefined function clearstatscache in DSSTATS

This corrects issue #1503 were DSSTATS had incorrect function name 'clearstatscache' instead of 'clearstatcache'

* Remove errorneous 's' at beginning of file
@cigamit
Copy link
Member

cigamit commented Mar 29, 2018

Resolved. Good work guys.

@cigamit cigamit closed this as completed Mar 29, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants