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?
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.