• Resolved nickwuk

    (@nickwuk)


    Activation after a new install gave 4 php errors:

    Undefined index: SCRIPT_NAME in <path-to-website-removed>/wp-content/plugins/wp-security-audit-log/classes/Sensors/Files.php on line 96

    Notice: Undefined index: SCRIPT_NAME in <path-to-website-removed>/wp-content/plugins/wp-security-audit-log/classes/Sensors/Files.php on line 97

    Notice: Undefined index: SCRIPT_NAME in <path-to-website-removed>/wp-content/plugins/wp-security-audit-log/classes/Sensors/Menus.php on line 383

    Notice: Undefined index: SCRIPT_NAME in <path-to-website-removed>/wp-content/plugins/wp-security-audit-log/classes/Sensors/System.php on line 401

    Then on the website I see another error:

    Notice: Undefined index: REQUEST_URI in <path-to-website-removed>/wp-content/plugins/wp-security-audit-log/classes/Sensors/Content.php on line 1460

    The system variable $_SERVER[‘SCRIPT_NAME’] is defined when tested.

    The website was originally installed via Softaculous.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @nickwuk,

    Sorry to see you are encountering such problems. Quick question:

    1) Are these errors being generated each time you try to activate the plugin or they only appeared once during the first activation?

    2) Is the activation still succeeding though?

    Looking forward to hearing from you.

    Thread Starter nickwuk

    (@nickwuk)

    1) If I deactivate and then re-activate the same errors still occur.

    2) The Audit Log does seem to be working yes.

    Hello @nickwuk,

    Sorry for taking long to reply.

    What is happening is the plugin is failing to retrieve the value of such indexes (such as SCRIPT_NAME and REQUEST_URI) during activation. In most cases this could be because of the server setup etc though should not have an impact on the plugin’s performance as long as the alerts are being generated correctly.

    We applied a fix to the plugin to make sure we cover more setups and hopefully we will cover yours as well. We will release this update next week.

    I hope this answers your question and should there be anything else we can assist you with, please do not hesitate to ask.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Undefined index: SCRIPT_NAME’ is closed to new replies.