PHP Notice: Function get_current_page was called incorrectly
-
Hi,
I am testing your plugin Version 1.0.120 on my local environment with debug.log enabled.
During wizard and when I visit /wp-admin/admin.php?page=rank-math I get PHP notice as below:
[05-Aug-2023 04:43:04 UTC] PHP Notice: Function get_current_page was called incorrectly. Current page retrieval should be called on or after the
current_screenhook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in [path]\wp-includes\functions.php on line 5865
[05-Aug-2023 04:43:09 UTC] PHP Notice: Function get_current_page was called incorrectly. Current page retrieval should be called on or after thecurrent_screenhook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in [path]\wp-includes\functions.php on line 5865
[05-Aug-2023 04:44:23 UTC] PHP Notice: Function get_current_page was called incorrectly. Current page retrieval should be called on or after thecurrent_screenhook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in [path]\wp-includes\functions.php on line 5865
[05-Aug-2023 04:44:42 UTC] PHP Notice: Function get_current_page was called incorrectly. Current page retrieval should be called on or after thecurrent_screenhook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in [path]\wp-includes\functions.php on line 5865
[05-Aug-2023 04:45:05 UTC] PHP Notice: Function get_current_page was called incorrectly. Current page retrieval should be called on or after thecurrent_screenhook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in [path]\wp-includes\functions.php on line 5865
[05-Aug-2023 04:45:27 UTC] PHP Notice: Function get_current_page was called incorrectly. Current page retrieval should be called on or after thecurrent_screenhook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in [path]\wp-includes\functions.php on line 5865
[05-Aug-2023 04:45:40 UTC] PHP Notice: Function get_current_page was called incorrectly. Current page retrieval should be called on or after thecurrent_screenhook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in [path]\wp-includes\functions.php on line 5865
[05-Aug-2023 04:45:54 UTC] PHP Notice: Function get_current_page was called incorrectly. Current page retrieval should be called on or after thecurrent_screenhook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in [path]\wp-includes\functions.php on line 5865
[05-Aug-2023 04:46:09 UTC] PHP Notice: Function get_current_page was called incorrectly. Current page retrieval should be called on or after thecurrent_screenhook. Please see Debugging in WordPress for more information. (This message was added in version 0.16.0.) in [path]\wp-includes\functions.php on line 5865Please review and guide / fix.
Thanks
The topic ‘PHP Notice: Function get_current_page was called incorrectly’ is closed to new replies.