• Resolved protohominid

    (@protohominid)


    Since updating Yoast SEO to 5.0, we can’t save/update posts that have the Simmer shortcode in them. Yoast appears to be choking on the ‘recipe’ shortcode. PHP error log below. I’ve submitted this to the Simmer plugin people but they are saying that it’s likely something wrong with Yoast SEO. Any ideas? I submitted this as a bug report to the Yoast SEO github page.

    [09-Jul-2017 21:25:18 UTC] PHP Fatal error: Uncaught Error: Call to undefined function simmer_get_template_part() in /var/www/vhosts/[site.com]/httpdocs/wp-content/plugins/simmer-pro-1.1.1/core/recipes/class-simmer-recipe-shortcode.php:101
    Stack trace:
    #0 /var/www/vhosts/[site.com]/httpdocs/wp-includes/shortcodes.php(345): Simmer_Recipe_Shortcode->display_shortcode(Array, ”, ‘recipe’)
    #1 [internal function]: do_shortcode_tag(Array)
    #2 /var/www/vhosts/[site.com]/httpdocs/wp-includes/shortcodes.php(223): preg_replace_callback(‘/\\[(\\[?)(recipe…’, ‘do_shortcode_ta…’, ‘[recipe id=”183…’)
    #3 /var/www/vhosts/[site.com]/httpdocs/wp-content/plugins/wordpress-seo/admin/ajax/class-shortcode-filter.php(33): do_shortcode(‘[recipe id=”183…’)
    #4 /var/www/vhosts/[site.com]/httpdocs/wp-includes/class-wp-hook.php(298): WPSEO_Shortcode_Filter->do_filter(”)
    #5 /var/www/vhosts/[site.com]/httpdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #6 /var/www/vhosts/[site.com]/httpdocs/wp-includes/plugin.php(453): W in /var/www/vhosts/[site.com]/httpdocs/wp-content/plugins/simmer-pro-1.1.1/core/recipes/class-simmer-recipe-shortcode.php on line 101

Viewing 5 replies - 1 through 5 (of 5 total)
  • Vicky

    (@vickymedrano)

    Something similar is happening to The7 premium theme, the DT-Blog shortcodes get messed up if edited/created while having yoast activated. If you don’t try to edit them, nothing seems to be wrong. Only way around it is to deactivate Yoast BEFORE editing any DT-Blog element. I’ve submitted a ticket to the theme but I think this is a Yoast related problem.

    jomo

    (@jonathanmoorebcsorg)

    The shortcode plugin probably isn’t designed to run under AJAX or in admin mode.

    If you put some sort of check line like this in the shortcode function it may be resolved:

    
    if ( (wp_doing_ajax()) ){return '';} 
    

    [I don’t work for Yoast and haven’t had time to investigate as thoroughly as I would like but I did get some case like this. Other plugins which examine shortcode results such as Relvannsi are aware that not all shortcodes are happy being run in different circumstances and have options and exclusion lists and filters to deal with that, however I didn’t hear anything about this type of solution in the replies from Yoast.]

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    @protohominid Can you please submit the issue to our GitHub repository for Yoast SEO? Thanks!

    As the issue is a conflict with another plugin or theme, we highly recommend reporting the issue to the development or support team of the other plugin or theme. Having both teams work on the issue is a benefit to you.

    If you have not submitted an issue previously, this guide will help you submit a complete report which may result in a faster resolution.

    Thread Starter protohominid

    (@protohominid)

    @mazedulislamkhan – I did submit it, yes, but haven’t seen any responses. I also have corresponded with the Simmer plugin people and they say it’s an issue with Yoast SEO.

    For now I have reverted to Yoast SEO 4.9 and that has removed the problem, so it is something that was introduced in v5.0.

    Plugin Support amboutwe

    (@amboutwe)

    Bugs are reported, investigated and fixed in GitHub so this topic was closed in favor of the open bug report.

    If you have any further information or want to get updates on the solution, please leave a comment or subscribe to the GitHub report here: https://github.com/Yoast/wordpress-seo/issues/7419

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘New version 5.0.x seems to be conflicting with recipe plugin shortcode’ is closed to new replies.