Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author keesiemeijer

    (@keesiemeijer)

    Hi keyforweb

    Is it only specific tags when you update or publish a post? Do you get an error message?

    If not can you set WP_DEBUG to true in your wp-config.php and see if you get any error emessages. Post the error messages here.
    https://codex.wordpress.org/WP_DEBUG

    Try de-activating all other plugins to see if it’s a conflict with another plugin or not.

    Thread Starter keyforweb

    (@keyforweb)

    Hi!

    I’ve tried to enable debug and i’ve this error:

    Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0

    This appened on tag that are not present or there are much post that use it…

    Plugin Author keesiemeijer

    (@keesiemeijer)

    Is this when you save a post or on the front end of your site you get the error?
    Did you try with all other plugins de-activated?

    Thread Starter keyforweb

    (@keyforweb)

    I’ve tried but nothing… but.. i found the problem and a possible solution…

    the system crash cause i’ve too much post (12.000), but if i try to use a shortcode with a limit to 6 month… i haven’t issue!

    The problem now is that i use your widget for my site and there isn’t an option to limit the check on it… could u integrate this function on your widget?

    thx a lot!

    Plugin Author keesiemeijer

    (@keesiemeijer)

    Yeah, I think this is a memory issue. First of, this plugin uses output buffering for the shortcode, not for the widget. I think another (memory exhausted) error occurs just after starting the output buffering (which we don’t get to see). There’s a possibility it’s unrelated to this plugin. The memory usage by other plugins/themes that load before this plugin could just be to much, so when it reaches this plugin it fails when inside the output buffer. That’s why I asked you to try with other plugins de-activated. I know this is probably too much info 🙂

    Here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M at the top of your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 32 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation.

    http://codex.wordpress.org/Common_WordPress_Errors#Allowed_memory_size_exhausted

    If that doesn’t work you can add a filter to the widget in your (child) theme’s functions.php file to limit the search for related posts.

    add_filter( 'related_posts_by_taxonomy_widget_args', 'rpbt_limit_by_months', 10, 2 );
    function rpbt_limit_by_months( $args, $instance ) {
    
        $args['limit_month'] = 6;
    
        return $args;
    }

    btw:
    consider creating a child theme instead of editing your theme directly – if you upgrade the theme all your modifications will be lost. Or create a plugin with the code above.

    Another option is to download the next version that comes out next week (version 2.0.0), it has a small optimization for the query to get the related posts.
    https://downloads.wordpress.org/plugin/related-posts-by-taxonomy.zip

    Thread Starter keyforweb

    (@keyforweb)

    Thx Thx thx… fantastic support!! Now all work without issue!!! Thx a lot!

    Plugin Author keesiemeijer

    (@keesiemeijer)

    You’re welcome. I’m glad you’ve got it resolved 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal Error and blank page’ is closed to new replies.