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

PHP errors on new install #5738

Closed
KnoAll opened this issue Apr 30, 2024 · 5 comments
Closed

PHP errors on new install #5738

KnoAll opened this issue Apr 30, 2024 · 5 comments
Labels
bug Undesired behaviour unverified Some days we don't have a clue

Comments

@KnoAll
Copy link

KnoAll commented Apr 30, 2024

I have a clean install and am getting PHP errors...
2024-04-29 12:52:03 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2024-04-29 12:52:03 - ERROR PHP ERROR: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /var/www/html/cacti/poller_boost.php:503 Stack trace: #0 /var/www/html/cacti/poller_boost.php(503): date() #1 /var/www/html/cacti/poller_boost.php(138): boost_time_to_run() #2 {main} thrown in file: /var/www/html/cacti/poller_boost.php on line: 503

This is on:
AlmaLinux 9.3
PHP 8.1.28
official release Cacti 1.2.26

reproduced on both 1.2.x branch as well as 1.3.x from git.

@KnoAll KnoAll added bug Undesired behaviour unverified Some days we don't have a clue labels Apr 30, 2024
@TheWitness
Copy link
Member

Check out my fork. It should be fixed there.

@KnoAll
Copy link
Author

KnoAll commented May 1, 2024

Looks to be working as expected now. Thanks!

@KnoAll KnoAll closed this as completed May 1, 2024
@KnoAll
Copy link
Author

KnoAll commented May 2, 2024

Am getting another similar issue....

2024-05-02 15:05:18 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_rrdcheck.php[159]:do_rrdcheck(), /lib/rrdcheck.php[170]:is_resource_writable(), /lib/functions.php[6660]:fopen(), CactiErrorHandler())
2024-05-02 15:05:18 - ERROR PHP WARNING: fopen(/var/www/html/cacti/rra/mm-fortigate_traffic_in_73.rrd): Failed to open stream: Permission denied in file: /var/www/html/cacti/lib/functions.php on line: 6660
2024-05-02 15:05:18 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_rrdcheck.php[159]:do_rrdcheck(), /lib/rrdcheck.php[170]:is_resource_writable(), /lib/functions.php[6660]:fopen(), CactiErrorHandler())
2024-05-02 15:05:18 - ERROR PHP WARNING: fopen(/var/www/html/cacti/rra/mm-fortigate_traffic_in_72.rrd): Failed to open stream: Permission denied in file: /var/www/html/cacti/lib/functions.php on line: 6660
2024-05-02 15:05:18 - CMDPHP PHP ERROR WARNING Backtrace: (/poller_rrdcheck.php[159]:do_rrdcheck(), /lib/rrdcheck.php[170]:is_resource_writable(), /lib/functions.php[6660]:fopen(), CactiErrorHandler())
2024-05-02 15:05:18 - ERROR PHP WARNING: fopen(/var/www/html/cacti/rra/mm-fortigate_traffic_in_71.rrd): Failed to open stream: Permission denied in file: /var/www/html/cacti/lib/functions.php on line: 6660

@KnoAll KnoAll reopened this May 2, 2024
@TheWitness
Copy link
Member

That's a legit permission error not a bug.

@KnoAll
Copy link
Author

KnoAll commented May 3, 2024

Yep, sorry about that. thanks again.

@KnoAll KnoAll closed this as completed May 3, 2024
netniV added a commit that referenced this issue May 7, 2024
* Fixing #5733 - French Translation

Cacti does not work using the French Language

* Update CHANGELOG

* Fixing #5738 - Boost Issues with fresh install

* QA: Address type juggling vulnerability in Cacti

* QA: Update ChangeLog

* Update CHANGELOG

* Update CHANGELOG

---------

Co-authored-by: Mark Brugnoli-Vinten <netniv@hotmail.com>
TheWitness added a commit to TheWitness/cacti that referenced this issue May 18, 2024
* Fixing Cacti#5733 - French Translation

Cacti does not work using the French Language

* Update CHANGELOG

* Fixing Cacti#5738 - Boost Issues with fresh install

* QA: Address type juggling vulnerability in Cacti

* QA: Update ChangeLog

* Update CHANGELOG

* Update CHANGELOG

---------

Co-authored-by: Mark Brugnoli-Vinten <netniv@hotmail.com>
TheWitness added a commit that referenced this issue May 18, 2024
* Fixing #5733 - French Translation

Cacti does not work using the French Language

* Update CHANGELOG

* Fixing #5738 - Boost Issues with fresh install

* QA: Address type juggling vulnerability in Cacti

* QA: Update ChangeLog

* Update CHANGELOG

* Update CHANGELOG

---------

Co-authored-by: Mark Brugnoli-Vinten <netniv@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour unverified Some days we don't have a clue
Projects
None yet
Development

No branches or pull requests

2 participants