Title: firecastdan's Replies | WordPress.org

---

# firecastdan

  [  ](https://wordpress.org/support/users/firecastdan/)

 *   [Profile](https://wordpress.org/support/users/firecastdan/)
 *   [Topics Started](https://wordpress.org/support/users/firecastdan/topics/)
 *   [Replies Created](https://wordpress.org/support/users/firecastdan/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/firecastdan/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/firecastdan/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/firecastdan/engagements/)
 *   [Favorites](https://wordpress.org/support/users/firecastdan/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] YOAST SEO: ‘The Editor Has Encountered an Unexpected Error’ on Block Editor](https://wordpress.org/support/topic/yoast-seo-the-editor-has-encountered-an-unexpected-error-on-block-editor/)
 *  [firecastdan](https://wordpress.org/support/users/firecastdan/)
 * (@firecastdan)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/yoast-seo-the-editor-has-encountered-an-unexpected-error-on-block-editor/#post-14862556)
 * //relative links – rather than absolute for posts/page links
    function fcml_internal_link_to_relative(
   $url, $post, $leavename ) { //echo “<br />before url:” . $url;
 *  //if ( $post->post_type == ‘post’ || $post->post_type == ‘page’ ) {
    $url = 
   wp_make_link_relative($url); //} //echo “<br />after url:” . $url;
 *  return $url;
    } add_filter( ‘post_link’, ‘fcml_internal_link_to_relative’, 10,
   3 ); add_filter( ‘page_link’, ‘fcml_internal_link_to_relative’, 10, 3 );
 * NOTE: post_link causes the error – page_link is fine
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] YOAST SEO: ‘The Editor Has Encountered an Unexpected Error’ on Block Editor](https://wordpress.org/support/topic/yoast-seo-the-editor-has-encountered-an-unexpected-error-on-block-editor/)
 *  [firecastdan](https://wordpress.org/support/users/firecastdan/)
 * (@firecastdan)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/yoast-seo-the-editor-has-encountered-an-unexpected-error-on-block-editor/#post-14862555)
 * ISSUE STILL EXISTS (have identified where in the theme code it occurs and thus
   the cause)
 * REGULAR POSTS EDIT ERROR – CAUSED BY YOAST PLUGIN WHEN USING CUSTOM THEME
    WordPress
   error – The editor has encountered an unexpected error. Occurs when editing regular
   POSTS in the admin area (Custom Post Types unaffected)
 * Disabling Yoast plugin removes the error. Only happens on custom theme not the
   default WordPress ones.
 * Error is located in the functions.php file.
    It is caused by the function that
   converts absolute links to reltive ones – The ‘post_link’ filter that uses the
   wp_make_link_relative() function Specifically the line that changes the URL variable–
   $url = wp_make_link_relative($url)
 * When it occurs regarding plugin versions:
    Updating WordPress version on an older
   site is fine. Then when Yoast is updated to version 17.1 the post error starts
   happening
 * THIS IS A YOAST ISSUE
 * If any plugins or custom code hook ‘post_link’ after WordPress SEO it can generate
   a fatal error.
 * Discussion here of issue – Wrong parameter in get_permalink
    when you call get_permalink(
   $post); – $post is not a WP_Post or and ID but your Stdclass. If any plugins 
   or custom code hook ‘post_link’ after WordPress SEO it can generate a fatal error.
   [https://github.com/Yoast/wordpress-seo/issues/16308](https://github.com/Yoast/wordpress-seo/issues/16308)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Yoast SEO breaks Gutenberg/Block Editor](https://wordpress.org/support/topic/yoast-seo-breaks-gutenberg-block-editor/)
 *  [firecastdan](https://wordpress.org/support/users/firecastdan/)
 * (@firecastdan)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/yoast-seo-breaks-gutenberg-block-editor/#post-14421886)
 * ROFL. You basically said to her – “you have to pay for our plugin that doesn’t
   work for us to try and fix this error with our plugin that we may not be able
   to fix anyway or we aren’t going to bother to look into it any further”!! and
   you wonder why you got no reply!
 * For what its worth I have the exact same problem and its yoast causing it. its
   been weeks now and still not fixed. I would happily chuck yoast in the bin but
   my client likes it for some reason – although not enough to get the paid version
   like in the past
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] YOAST SEO: ‘The Editor Has Encountered an Unexpected Error’ on Block Editor](https://wordpress.org/support/topic/yoast-seo-the-editor-has-encountered-an-unexpected-error-on-block-editor/)
 *  [firecastdan](https://wordpress.org/support/users/firecastdan/)
 * (@firecastdan)
 * [5 years ago](https://wordpress.org/support/topic/yoast-seo-the-editor-has-encountered-an-unexpected-error-on-block-editor/#post-14385278)
 * how do i set this back to unresolved?
 * anyway my issue is that regular posts cant be edited with yoast on – you get 
   the unexpected error messsage – The editor has encountered an unexpected error.
 * custom posts are fine though.
 * turn yoast off and the error goes away
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] YOAST SEO: ‘The Editor Has Encountered an Unexpected Error’ on Block Editor](https://wordpress.org/support/topic/yoast-seo-the-editor-has-encountered-an-unexpected-error-on-block-editor/)
 *  [firecastdan](https://wordpress.org/support/users/firecastdan/)
 * (@firecastdan)
 * [5 years ago](https://wordpress.org/support/topic/yoast-seo-the-editor-has-encountered-an-unexpected-error-on-block-editor/#post-14380762)
 * same happens to me. And if I disable Yoast it goes away. So I don’t think it 
   is resolved?

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