• I installed and activated WP Minify.

    I have ‘debug’ on in my config. When I load the site (local dev server) I get the warning:

    “Notice: is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information.”

    I still see multiple http request for js files in chrome dev tools.

    This persist even when all other plugins are disabled.

    My scripts are called in the recommended way: enqueued from the functions.php file.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    This persist even when all other plugins are disabled.

    Try switching to the default Twenty Twelve theme via FTP with all plugins disabled.

    Thread Starter bobdobbs

    (@bobdobbs)

    Yes, I still get the same Notice.

    I also still get multiple http requests for js.

    Moderator t-p

    (@t-p)

    -also try resetting the plugin folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed or some plugins stick around in cached files. So by renaming the folder, you break them and force them inactive).

    If that does not help, please post what errors are reported by WP_DEBUG?

    Thread Starter bobdobbs

    (@bobdobbs)

    I went one better, and deleted all plugins except wp-minify.

    I’m still getting the same result.

    The notice I’m getting is:

    Notice: is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.) in /var/www/test/web/wp-includes/functions.php on line 3012

    Moderator t-p

    (@t-p)

    Most likely, you’ve got an undefined function error somewhere.

    Thread Starter bobdobbs

    (@bobdobbs)

    More information:

    I looked at the plugin file. The notice says that “is_feed()” is being incorrectly, so I looked at the source of wp-minify.php.

    line 67 has this:

    if (!is_admin() && !is_feed() && !defined(‘XMLRPC_REQUEST’)) {…}

    I used another browser, from which I’m not logged on into the site. As I figured, the notice doesn’t show: I’m not hitting the “is_admin()” condition.

    However, there are no error reported, and the files are still not being delivered minified.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning notice in debug, and failure’ is closed to new replies.