WordPress.org

Ready to get started?Download WordPress

Forums

Warning notice in debug, and failure (7 posts)

  1. bobdobbs
    Member
    Posted 10 months ago #

    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.

  2. Tara
    Member
    Posted 10 months ago #

    This persist even when all other plugins are disabled.

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

  3. bobdobbs
    Member
    Posted 10 months ago #

    Yes, I still get the same Notice.

    I also still get multiple http requests for js.

  4. Tara
    Member
    Posted 10 months ago #

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

  5. bobdobbs
    Member
    Posted 10 months ago #

    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

  6. Tara
    Member
    Posted 10 months ago #

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

  7. bobdobbs
    Member
    Posted 10 months ago #

    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.

Reply

You must log in to post.

About this Topic