Title: PHP Errors with Shortcodes from Another Plugin
Last modified: November 25, 2017

---

# PHP Errors with Shortcodes from Another Plugin

 *  Resolved [Collin](https://wordpress.org/support/users/collinmbarrett/)
 * (@collinmbarrett)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/php-errors-with-shortcodes-from-another-plugin/)
 * Recently, there has been an incompatibility related to a new version of Yoast
   SEO. We use the [wp-simmer](https://wordpress.org/plugins/simmer/) plugin which
   hasn’t been updated in over a year. However, a recent version of Yoast SEO started
   triggering PHP errors when generating its shortcode. When I deactivate the Yoast
   SEO plugin, things work as expected again. Below are three sample errors from
   my nginx error logs that demonstrate the issue.
 * Any ideas on how to resolve? I recognize that this could be a bug in the Simmer
   plugin, but I need to know what changed in Yoast SEO that caused the breakage
   to occur if that is the case. Thanks!
 *     ```
       2017/11/25 09:42:45 [error] 1967#1967: *198 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function simmer_get_template_part() in /var/www/jennythebaker/wp-content/plugins/simmer/core/recipes/class-simmer-recipe-shortcode.php:101
       Stack trace:
       #0 /var/www/jennythebaker/wp-includes/shortcodes.php(319): Simmer_Recipe_Shortcode->display_shortcode(Array, '', 'recipe')
       #1 [internal function]: do_shortcode_tag(Array)
       #2 /var/www/jennythebaker/wp-includes/shortcodes.php(197): preg_replace_callback('/\\[(\\[?)(recipe...', 'do_shortcode_ta...', '[recipe id="120...')
       #3 /var/www/jennythebaker/wp-content/plugins/wordpress-seo/admin/ajax/class-shortcode-filter.php(33): do_shortcode('[recipe id="120...')
       #4 /var/www/jennythebaker/wp-includes/class-wp-hook.php(286): WPSEO_Shortcode_Filter->do_filter('')
       #5 /var/www/jennythebaker/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
       #6 /var/www/jennythebaker/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
       #7 /var/www/jennythebaker/wp-admin/admin-ajax.php(97): do_action('wp_" while reading response header from upstream, client: 67.202.83.124, server: jennythebaker.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "jennythebaker.com"
   
       2017/11/25 09:43:19 [error] 1967#1967: *217 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function simmer_get_template_part() in /var/www/jennythebaker/wp-content/plugins/simmer/core/recipes/class-simmer-recipe-shortcode.php:101
       Stack trace:
       #0 /var/www/jennythebaker/wp-includes/shortcodes.php(319): Simmer_Recipe_Shortcode->display_shortcode(Array, '', 'recipe')
       #1 [internal function]: do_shortcode_tag(Array)
       #2 /var/www/jennythebaker/wp-includes/shortcodes.php(197): preg_replace_callback('/\\[(\\[?)(recipe...', 'do_shortcode_ta...', '[recipe id="120...')
       #3 /var/www/jennythebaker/wp-content/plugins/wordpress-seo/admin/ajax/class-shortcode-filter.php(33): do_shortcode('[recipe id="120...')
       #4 /var/www/jennythebaker/wp-includes/class-wp-hook.php(286): WPSEO_Shortcode_Filter->do_filter('')
       #5 /var/www/jennythebaker/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
       #6 /var/www/jennythebaker/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
       #7 /var/www/jennythebaker/wp-admin/admin-ajax.php(97): do_action('wp_" while reading response header from upstream, client: 67.202.83.124, server: jennythebaker.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "jennythebaker.com"
   
       2017/11/25 09:43:19 [error] 1967#1967: *215 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function simmer_get_template_part() in /var/www/jennythebaker/wp-content/plugins/simmer/core/recipes/class-simmer-recipe-shortcode.php:101
       Stack trace:
       #0 /var/www/jennythebaker/wp-includes/shortcodes.php(319): Simmer_Recipe_Shortcode->display_shortcode(Array, '', 'recipe')
       #1 [internal function]: do_shortcode_tag(Array)
       #2 /var/www/jennythebaker/wp-includes/shortcodes.php(197): preg_replace_callback('/\\[(\\[?)(recipe...', 'do_shortcode_ta...', '<p>Note to self...')
       #3 /var/www/jennythebaker/wp-includes/class-wp-hook.php(286): do_shortcode('<p>Note to self...')
       #4 /var/www/jennythebaker/wp-includes/plugin.php(203): WP_Hook->apply_filters('<p>Note to self...', Array)
       #5 /var/www/jennythebaker/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php(107): apply_filters('the_content', 'Note to self: B...')
       #6 /var/www/jennythebaker/wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php(56): WPSEO_Link_Watcher->process(1" while reading response header from upstream, client: 67.202.83.124, server: jennythebaker.com, request: "POST /wp-admin/post.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "jennythebaker.com"
       ```
   
    -  This topic was modified 8 years, 6 months ago by [Collin](https://wordpress.org/support/users/collinmbarrett/).
      Reason: remove link to page need help with (its not public / in wp-admin)
    -  This topic was modified 8 years, 6 months ago by [Collin](https://wordpress.org/support/users/collinmbarrett/).
    -  This topic was modified 8 years, 6 months ago by [Collin](https://wordpress.org/support/users/collinmbarrett/).

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

 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-errors-with-shortcodes-from-another-plugin/#post-9788796)
 * It looks like the [Recipes by Simmer](https://wordpress.org/plugins/simmer/) 
   plugin was recently updated on two weeks ago. Can you please clear your errors
   log, update Recipes by Simmer plugin, and check the errors log again to see whether
   the errors appear again?
 * Please, make sure that you are using the latest Yoast SEO v5.9.3 plugin.
 *  Thread Starter [Collin](https://wordpress.org/support/users/collinmbarrett/)
 * (@collinmbarrett)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-errors-with-shortcodes-from-another-plugin/#post-9790866)
 * Thanks, [@mazedulislamkhan](https://wordpress.org/support/users/mazedulislamkhan/)
 * I did just verify that I have the latest version of both Yoast SEO as well as
   Simmer, and the same error persists.
 * Essentially, whenever we are actively working on a post, we have to temporarily
   disable Yoast SEO. Then, we try to remember to re-enable Yoast SEO when we are
   done. Not ideal, to be sure.
 * Any other ideas?
 * Thanks!
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-errors-with-shortcodes-from-another-plugin/#post-9793257)
 * Based on the information you provided, we expect this to be a bug. We’re actively
   using the bug tracking on our GitHub repository so your best next step would 
   be to create a new issue for our developers at [https://github.com/Yoast/wordpress-seo/issues/new](https://github.com/Yoast/wordpress-seo/issues/new).
   You will need an account to create a new issue. If this is your first bug report,
   please check out: [https://kb.yoast.com/kb/how-to-write-a-good-bug-report/](https://kb.yoast.com/kb/how-to-write-a-good-bug-report/).
   Don’t forget to include the URL to this conversation in your bug report.
 * On the other hand, we also suggest you please share the GitHub issue to the [Recipes by Simmer](https://wordpress.org/plugins/simmer/)
   plugin developer so they can also contribute to resolving the issue.
 *  Thread Starter [Collin](https://wordpress.org/support/users/collinmbarrett/)
 * (@collinmbarrett)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-errors-with-shortcodes-from-another-plugin/#post-9793599)
 * Issue opened on GitHub here: [https://github.com/Yoast/wordpress-seo/issues/8513](https://github.com/Yoast/wordpress-seo/issues/8513)
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/php-errors-with-shortcodes-from-another-plugin/#post-9800636)
 * [@collinmbarrett](https://wordpress.org/support/users/collinmbarrett/) Thanks
   for opening a bug report. Our development team will follow up with you in the
   relevant bug report.

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

The topic ‘PHP Errors with Shortcodes from Another Plugin’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/php-errors-with-shortcodes-from-another-plugin/#post-9800636)
 * Status: resolved