• Resolved clauz

    (@clauz)


    Hi there, I installed this plugin to replace the other one which is no longer being maintained.
    This plugins seems to have the same compatibility problem with Woocommerce than the other one.
    Whenever woocommerce is active, trying to add a new recipe just produces a blank popup screen.
    If woocommerce is deactivated, the plugin works fine.

    The debug produces the same notices as well as the other plugin when in conflict:

    Undefined index: add-recipe-button in /home/ashleyy8/public_html/wp-content/plugins/zip-recipes/zip-recipes.php on line 652
    [03-Mar-2015 14:23:04 UTC] PHP Notice: Undefined index: add-recipe-button in /home/ashleyy8/public_html/wp-content/plugins/zip-recipes/zip-recipes.php on line 660
    [03-Mar-2015 14:23:04 UTC] PHP Notice: Undefined index: recipe_id in /home/ashleyy8/public_html/wp-content/plugins/zip-recipes/zip-recipes.php on line 761
    [03-Mar-2015 14:23:04 UTC] PHP Notice: Undefined index: add-recipe-button in /home/ashleyy8/public_html/wp-content/plugins/zip-recipes/zip-recipes.php on line 762

    Any ideas on this?

    Thank you,
    Claudia

    https://www.ads-software.com/plugins/zip-recipes/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter clauz

    (@clauz)

    Forgot to add the next debig line problem connected to it:

    [03-Mar-2015 14:29:13 UTC] PHP Fatal error: Call to a member function is_main_query() on a non-object in /home/ashleyy8/public_html/wp-includes/query.php on line 730

    Hi Clauz,

    Thanks for telling me about this issue. I’ll take a look later today (hopefully).

    BTW, I really appreciate the debug log messages ??

    Thread Starter clauz

    (@clauz)

    No problem! Thanks for the prompt reply!

    Hi Clauz,

    I installed WooCommerce and it turns out this issue is being caused by them.

    Please file a support ticket with them as follows:

    I’m using a plugin Zip Recipes that makes a call to get_the_title() function. This call seems to fail when I have WooCommerce enabled. The problem starts in wc_page_endpoint_title() function defined by WooCommerce in wc-page-functions.php.

    Here’s the full stack trace:

    [04-Mar-2015 03:52:43 UTC] PHP Fatal error:  Call to a member function is_main_query() on null in /Applications/MAMP/htdocs/glutenfreerecipes/wp-includes/query.php on line 730
    [04-Mar-2015 03:52:43 UTC] PHP Stack trace:
    [04-Mar-2015 03:52:43 UTC] PHP   1. {main}() /Applications/MAMP/htdocs/glutenfreerecipes/wp-admin/media-upload.php:0
    [04-Mar-2015 03:52:43 UTC] PHP   2. require_once() /Applications/MAMP/htdocs/glutenfreerecipes/wp-admin/media-upload.php:16
    [04-Mar-2015 03:52:43 UTC] PHP   3. require_once() /Applications/MAMP/htdocs/glutenfreerecipes/wp-admin/admin.php:31
    [04-Mar-2015 03:52:43 UTC] PHP   4. require_once() /Applications/MAMP/htdocs/glutenfreerecipes/wp-load.php:29
    [04-Mar-2015 03:52:43 UTC] PHP   5. require_once() /Applications/MAMP/htdocs/glutenfreerecipes/wp-config.php:80
    [04-Mar-2015 03:52:43 UTC] PHP   6. include_once() /Applications/MAMP/htdocs/glutenfreerecipes/wp-settings.php:215
    [04-Mar-2015 03:52:43 UTC] PHP   7. zrdn_iframe_content($post_info = *uninitialized*, $get_info = *uninitialized*) /Applications/MAMP/htdocs/glutenfreerecipes/wp-content/plugins/zip-recipes/zip-recipes.php:103
    [04-Mar-2015 03:52:43 UTC] PHP   8. get_the_title($post = *uninitialized*) /Applications/MAMP/htdocs/glutenfreerecipes/wp-content/plugins/zip-recipes/zip-recipes.php:769
    [04-Mar-2015 03:52:43 UTC] PHP   9. apply_filters($tag = *uninitialized*, $value = *uninitialized*, *uninitialized*) /Applications/MAMP/htdocs/glutenfreerecipes/wp-includes/post-template.php:158
    [04-Mar-2015 03:52:43 UTC] PHP  10. call_user_func_array:{/Applications/MAMP/htdocs/glutenfreerecipes/wp-includes/plugin.php:213}(*uninitialized*, *uninitialized*) /Applications/MAMP/htdocs/glutenfreerecipes/wp-includes/plugin.php:213
    [04-Mar-2015 03:52:43 UTC] PHP  11. wc_page_endpoint_title($title = *uninitialized*) /Applications/MAMP/htdocs/glutenfreerecipes/wp-includes/plugin.php:213
    [04-Mar-2015 03:52:43 UTC] PHP  12. is_main_query() /Applications/MAMP/htdocs/glutenfreerecipes/wp-content/plugins/woocommerce/includes/wc-page-functions.php:19

    Feel free to cc me in the bug report, Clauz. help &at* ziprecipes.net.

    Thread Starter clauz

    (@clauz)

    Thanks for looking into it. I will file a report to them ??

    Clauz I was wondering if this has been fixed by woo commerce because I think thats why my Zip Recipe has a blank page now. I just changed my theme that uses woocommerce.

    Thread Starter clauz

    (@clauz)

    Nope. I reported this issue to woocommerce and had no single reply to it…
    I did find a way to momentarily “solve” this, which is to comment all the contents of the wc_page_endpoint_title() function on woocommerce, leaving the return statement intact only. My client’s use of woocommerce is very very limited so she can now use the recipes with no other issue on the site as far as we could tell so it worked for her for now.

    Not that I recommend this a solution but as a temp hack for the time being…

    Thanks Clauz. I’m not a designer, so I wouldn’t know how to add your hack to my theme.

    Clauz, Tammy,

    I’ve just pushed an update to Zip Recipes that fixes the issue with WooCommerce (even though it’s caused by them, I managed to find a work around).

    Thread Starter clauz

    (@clauz)

    Wow, awesome! You rock!

    Thanks, Clauz! (Don’t be shy to say that in the reviews as well ?? https://www.ads-software.com/support/view/plugin-reviews/zip-recipes )

    I had to push another update tonight as I broke something for Tammy. I also realized that WooCommerce has fixed their issue in 2.3.8. So, don’t forget to update WooCommerce as well.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Compabitility issues with Woocommerce’ is closed to new replies.