• Resolved Albin

    (@albinvlc)


    Hello

    It has happend in two different sites.

    header.php has a ob_star(‘renderfinished’);

    and footer.php has a ob_end_flush();

    The function renderfinished() gets the generated HTML, does some str_replace and returns it BUT the browser doesn′t get that HTML but one without the replaces done.

    Any idea? What change in this version can do that?

    Thanks.

    • This topic was modified 4 years, 2 months ago by Albin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @albinvlc,

    This issue sounds quite complex so I’d recommend reaching out to us here (click the “Complete a Form” button) so our support team can follow up on this –
    https://aioseo.com/contact/

    – Arnaud

    Thread Starter Albin

    (@albinvlc)

    Hello again,

    I got a fix. I have moved my ob_start to init hook and the ob_get_flush to shutdown hook.

    I removed the ob_start and ob_ob_get_clean from your Main/Head.php and it did not solve the problem. But ob is not being used in any other relevant place. Despite this, it looks like the problem is:

    · You start a buffer in template_redirect hook
    · I start my bufffer in header.php
    · You close your buffer in wp_footer before I close mine
    · I run into troubles XD

    I logged ob_get_status in some places and never reported your buffers but I don′t figure out any other explanation.

    Just telling it to you in case someone else complains about the same.

    – Albin

    Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @albinvlc,

    I’m glad to hear you were able to fix this on your end. That’s definitely useful feedback that we’ll keep into account. I’ll see if we can prevent this from happening for other users.

    – Arnaud

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AIOSEO 4.0.11 Breaks Site that uses ob_start with function’ is closed to new replies.