“Notices” on fresh install
-
Eli
I am getting some Notices when I activate the ez sql reports plugn
Error:
Notice: add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead. in /homepages/28/d89642000/htdocs/clickandbuilds/testingsite/wp-includes/functions.php on line 3829
Fix:
in index.php about line 812 should be if ( function_exists(“add_menu_page”)
Note: test for add menu page, not for the apsense of add_object_page.Error:
Notice: Undefined index: page in /homepages/28/d89642000/htdocs/clickandbuilds/testingsite/wp-content/plugins/elisqlreports/index.php on line 832
Fix:
(array_key_exists(“page”, $_GET) && ($_GET[“page”] == $Rslug)) )
Note: This test for the missing array key – I do not know when the key is present, so you will have to test this fix for when the key is presentError on save settings:
Notice: Undefined index: backup_dir in /homepages/28/d89642000/htdocs/clickandbuilds/testingsite/wp-content/plugins/elisqlreports/index.php on line 768
Fix:
add array_key_exists(“backup_dir”, $_POST) &&
just before is_dir($_POST[“backup_dir”])
Note: This test for the missing array key – I do not know when the key is present, so you will have to test this fix for when the key is presentHope this helps
Roy
- The topic ‘“Notices” on fresh install’ is closed to new replies.