PHP Notices Flooding Logs | WordPress.org

[ad_1]

Using WP Sort Order (1.3.2) and PHP 8.3 /wp-content/debug.log seems to be filled with 3 main PHP Notices and these are below:

PHP Notice:  Function is_home was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6078

PHP Notice: Function is_front_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 6078

 PHP Notice:  Function is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /wp-includes/functions.php on line 607

After doing some testing the problem seems to be connected to /wp-content/plugins/wp-sort-order/inc/hooks.php on line 898 it has the following code:

} elseif(!is_home() && !is_front_page() && !is_feed()) {

Please would you be able to take a look and release a fix?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer