Skip to content

Script Server has invalid debug code left in #3314

Closed

Description

@rprofijt

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

Activity

  1. netniV commented on Mar 4, 2020

    @netniV
    Member

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

  2. changed the title [-]Hardcoded path in script_server.php[/-] [+]Script Server has invalid debug code left in[/+] on Mar 4, 2020
  3. added a commit that references this issue on Mar 4, 2020
    929c226
  4. self-assigned this
    on Mar 4, 2020
  5. added
    bugUndesired behaviour
    confirmedBug is confirm by dev team
    on Mar 4, 2020
  6. added this to the 1.2.11 milestone on Mar 4, 2020
  7. netniV commented on Mar 4, 2020

    @netniV
    Member

    This has now been resolved.

  8. locked and limited conversation to collaborators on Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions