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

Script Server has invalid debug code left in #3314

Closed
rprofijt opened this issue Mar 3, 2020 · 2 comments
Closed

Script Server has invalid debug code left in #3314

rprofijt opened this issue Mar 3, 2020 · 2 comments
Assignees
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Milestone

Comments

@rprofijt
Copy link

rprofijt commented Mar 3, 2020

Describe the bug
In Cacti 1.2.10 we get this in the cacti.log:

2020/03/03 14:01:15 - CMDPHP PHP ERROR WARNING Backtrace: (/script_server.php[183]:unlink(), CactiErrorHandler())
2020/03/03 14:01:15 - ERROR PHP WARNING: unlink(/usr/share/cacti/site/log/script_server_7224.out): No such file or directory in file: /opt/cacti/cacti-prod/script_server.php on line: 183

The script_server.php has a hardcoded path to /usr/share/cacti, we have Cacti running in another location.

To Reproduce

Run Cacti in a custom directory (/opt)

Expected behavior

Use the path Cacti is running in

@netniV
Copy link
Member

netniV commented Mar 4, 2020

Ouch, that sounds like a line of my debugging version got into the live source.

@netniV netniV changed the title Hardcoded path in script_server.php Script Server has invalid debug code left in Mar 4, 2020
netniV added a commit that referenced this issue Mar 4, 2020
@netniV netniV self-assigned this Mar 4, 2020
@netniV netniV added bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue labels Mar 4, 2020
@netniV netniV added this to the 1.2.11 milestone Mar 4, 2020
@netniV
Copy link
Member

netniV commented Mar 4, 2020

This has now been resolved.

@netniV netniV closed this as completed Mar 4, 2020
@github-actions github-actions bot locked 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
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants