• Resolved markfluk

    (@markfluk)


    Can anyone help me resolve this issue which appeared after activating Hummingbird?

    The error message is on all pages and says, “Notice: Function is_tax 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.0.) in /var/www/wp-includes/functions.php on line 5835”

    Thank you

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @markfluk

    I hope you’re well today!

    This may sound a bit counterintuitive but please go to the “Hummingbird -> Advanced Tools -> Lazy Load” page and see if “Enable lazy loading comments” option is enabled there.

    If yes, disable it, clear all cache on site and check if the issue is still happening.

    Best regards,
    Adam

    Thread Starter markfluk

    (@markfluk)

    That worked. Thank you, Adam. Is it worth trying Smush to see if lazy load works with that?

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @markfluk

    Thanks for confirmation.

    There is a known incompatibility with Woocommerce that happens in some cases and I suggested this change to make sure that we are dealing with the same issue here.

    Our developers are aware of it but I’m honestly not sure if this is entirely “solvable” on our end. For now, the solution that I suggested should work just fine and it shouldn’t really affect performance much as “lazy loading comments” is more of just “fine tuning” rather than anything else in most cases. So I’d say you can safely keep this option disabled and all should be fine.

    As for Smush – it should be fine too as it’s a “different lazy load”. The option in Hummingbird is specifically for comments feature (it happens that WooCommerce is utilizing some WordPress comments-related functions for its own purposes, hence the conflict).

    Lazy Load in Smush is for images and it’s a different aspect of the site, different code and, in general, should be completely unrelated to this issue so you can safely use it.

    Best regards,
    Adam

    Thread Starter markfluk

    (@markfluk)

    Hi Adam, I jumped the gun and it hasn’t solved the issue. Not sure what I did but the issue still persists after disabling lazy load. Any other ideas?

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    HI @markfluk

    Thanks for response!

    Just to make sure (as I cannot replicate this on any of my test setups currently) – if you

    a) only clear cache in Hummingbird
    b) or only disable page cache in Hummingbird
    c) or disable entire plugin

    the issue is going away, right?

    I mentioned WooCommerce in my earlier post because I assumed Woo is there (I’ve seen such issue with WooCommerce on WooCommerce product pages) but I actually didn’t visit the page – I should have done that, I’m sorry. I was a bit “too fast”.

    The “is_tax()” is a WordPress core function. It is used to check “whether the query is for an existing custom taxonomy archive page.”. By the nature of it, it shouldn’t be related to Asset Optimization (which applies to JS and CSS) but both that lazy load in Hummingbird and Page Cache can affect it.

    So if you can confirm any of the a,b,c cases that I asked about above – it would be best to do a conflict test after that to determine if a theme or one of other plugins is contributing to the conflict with Hummingbird and knowing about it we could then “dig into it” to find out more about the cause and how to fix it.

    Kind regards,
    Adam

    Thread Starter markfluk

    (@markfluk)

    Hi Adam,

    Thanks for helping. To answer your questions:

    a) only clear cache in Hummingbird – issue remains
    b) or only disable page cache in Hummingbird – issue goes away
    c) or disable entire plugin – issue goes away

    I don’t have WooCommerce on this site.

    The site runs Sportspress and the site is built on a theme developed by those guys. Turning that off, makes most things on the site disappear.

    I can’t find any conflicts with other plugins and none existed before I activated Hummingbird which was the final plugin installed. Other plugins include, Akismet, CoBlocks, Cookies and Content Security Policy, EWWW Image Optimizer, Fix Alt Text, Gravity Forms, NextGen Gallery, Redirect Redirection, Securi Security & Yoast SEO.

    Does that help solve the issue?

    TY

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @markfluk,

    I understand the issue is showing up only once the Humminbird plugin is activated. It could be a conflict with Humminbird and another plugin causing the issue. To identify the exact cause and help you resolve the issue, we need to identify which exact plugin is causing the conflict.

    Can you please perform a complete conflict test using a staging website and let us know the result? A staging website is a copy of your live website on a new folder on the same server using a separate database. I hope the following flowchart comes in handy while doing the test: https://wpmudev.com/wp-content/uploads/2015/09/Support-Process-Support-Process.gif

    We look forward to hearing back from you.

    Kind Regards,
    Nebu John

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @markfluk,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open the thread if you need further assistance.

    Best Regards
    Nithin

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Function is_tax was called incorrectly after Hummingbird activated’ is closed to new replies.