• I had two shortcodes on a page and it was causing it to break ( couldn’t see how ), but I traced it all the way down to this one line and commenting it out fixed the issue.

    $body_content = apply_filters( ‘the_content’, $post->post_content );

    protected function body_keywords( $ID, $max = 20 ) {
    		$post = get_post( $ID );
    		if ( empty( $post ) ) {
    			return '';
    		}
    		$this->discovering_keywords = true;
    
    //$body_content               = apply_filters( 'the_content', $post->post_content );
    
    		$this->discovering_keywords = false;
    		$keywords                   = apply_filters( 'yarpp_body_keywords', $this->extract_keywords( $body_content, $max, $ID ), $max, $ID );
    
    		return $keywords;
    	}
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    unfortunately this fixes not the bug on my sites.

    slabbi

    Plugin Author YARPP

    (@jeffparker)

    @slabbi Can you please tell us more about the bug you’re facing and your YARPP setup?

    When YARPP is enabled I get a message that there was a “fatal error”.
    Disabled YARPP and its gone.

    Plugin Author YARPP

    (@jeffparker)

    When YARPP is enabled I get a message that there was a “fatal error”.

    @slabbi

    – Do you get the same error with YARPP v5.27.1?
    – Were you upgrading from an older version of YARPP?
    – Are you also using two shortcodes on the same page?
    – Are you using a custom template?

    Plugin Author YARPP

    (@jeffparker)

    Hi @slabbi can you please update to the latest version of YARPP (5.27.3 or newer) to see if it resolves your issue? Do let us know. Thanks so much!

    5.27.3 fixes the bug. Thanks!

    Plugin Author YARPP

    (@jeffparker)

    @slabbi thank you for confirming! Your issue was unrelated to shortcodes and instead related to this.

    @insivia we await further information from you! Please do also try 5.27.3.

    – Do you get the same error with YARPP v5.27.1?
    – Were you upgrading from an older version of YARPP?
    – Which two shortcodes are you using?
    — How are they breaking? Are there any errors?

    Any steps for us to replicate the issue on our end would be highly appreciated.

    • This reply was modified 3 years, 3 months ago by YARPP.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Two shortcodes cause page to break.’ is closed to new replies.