• Resolved Andy60103

    (@andy60103)


    Hi, I get this in my error log when running elisqlreports

    blackheathfencing.org.uk [Mon Jun 02 09:33:49 2025] [error] [client 77.99.186.16:0] AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “page” in /home/sites/1a/6/66ac65027f/public_html/wp-content/plugins/elisqlreports/index.php on line 823’

    Latest Apache, themes, WordPress 6.8.1 google chrome

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Eli

    (@scheeeli)

    I see the undefined array key, but I cannot recreate that error in my logs. Can you tell me what URL you are getting this error on and what version of PHP you are using?

    Thread Starter Andy60103

    (@andy60103)

    I upgraded to PHP 8.2 after receiving your reply but the error is still in the logs this morning. there are two reports that run on our WordPress dashboard that analyse our membership records. https://blackheathfencing.org.uk/

    We could use it a lot more for end of month and end of year procedures but they tend to fire off unexpectedly and delete data too early! Could do with a Confirm Run Y/N type of control 😉

    Plugin Author Eli

    (@scheeeli)

    Hi Andy,

    I fixed that error on line 823 by changing:

                if ($GLOBALS["ELISQLREPORTS"]["settings_array"]["menu_display"] || ($_GET["page"] == $Rslug))

    to:

                if ($GLOBALS["ELISQLREPORTS"]["settings_array"]["menu_display"] || (isset($_GET["page"]) && $_GET["page"] == $Rslug))

    … but I have not released the update yet because I am still working on another feature which I think you could use to get the same effect as a confirmation control. I am adding an optional password protection feature for each report that can be set and applied individually and would thus require the end user to perform an additional step before the report is executed. I suppose you could publish the password on the page with the report if you wanted anyone to be able to unlock it and that extra step would prevent the report from running until it was confirmed with the password. What do you think, would that be useful to you?

    If you just need the fix for the error you initially reported to be fixed then you can make the change illustrated above to the plugins/elisqlreports/index.php file on line 823 in your current copy of the plugin and then update to the new release once I have finished and tested all the new changes.

    Plugin Author Eli

    (@scheeeli)

    I released the update last week. Please let me know if there is anything else.

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

The topic ‘Error log entry running elisqlreports’ is closed to new replies.