• I think this is a bug in WordPress that has been around for awhile and hasn’t been resolved.

    To reproduce:
    Paste this into a new page and when you try to view it you will get a blank page.

    [caption id="attachment_1" align="alignnone" width="199" caption="Caption 1"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_2" align="alignnone" width="199" caption="Caption 2"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_3" align="alignnone" width="199" caption="Caption 3"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_4" align="alignnone" width="199" caption="Caption 4"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_5" align="alignnone" width="199" caption="Caption 5"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_6" align="alignnone" width="199" caption="Caption 6"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_7" align="alignnone" width="199" caption="Caption 7"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_8" align="alignnone" width="199" caption="Caption 8"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_9" align="alignnone" width="199" caption="Caption 9"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_10" align="alignnone" width="199" caption="Caption 10"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_11" align="alignnone" width="199" caption="Caption 11"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_12" align="alignnone" width="199" caption="Caption 12"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_13" align="alignnone" width="199" caption="Caption 13"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_14" align="alignnone" width="199" caption="Caption 14"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_15" align="alignnone" width="199" caption="Caption 15"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_16" align="alignnone" width="199" caption="Caption 16"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_17" align="alignnone" width="199" caption="Caption 17"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_18" align="alignnone" width="199" caption="Caption 18"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_19" align="alignnone" width="199" caption="Caption 19"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_20" align="alignnone" width="199" caption="Caption 20"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_21" align="alignnone" width="199" caption="Caption 21"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_22" align="alignnone" width="199" caption="Caption 22"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_23" align="alignnone" width="199" caption="Caption 23"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_24" align="alignnone" width="199" caption="Caption 24"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_25" align="alignnone" width="199" caption="Caption 25"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_26" align="alignnone" width="199" caption="Caption 26"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_27" align="alignnone" width="199" caption="Caption 27"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_28" align="alignnone" width="199" caption="Caption 28"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]
    [caption id="attachment_29" align="alignnone" width="199" caption="Caption 29"]<img title="Test" src="https://www.ads-software.com/screenshots/2.5/ss-4.png" alt="Test" width="199" height="104" />[/caption]

    Then remove a few lines and the content will display again. If the content filter is disabled there is no problem so looks like the bug is in the content filter code.

    I posted this bug 5 months ago when on version 2.6.x but now on version 2.7.1 I see that this bug still exists. I noticed it when I was creating a page with a lot of photos and captions – after adding a few more photos and captions the page went blank. Then I remembered I had come across this issue before and had posted it here: https://www.ads-software.com/support/topic/218318

    This also looks like the same issue:
    https://www.ads-software.com/support/topic/176939

    It got marked as ‘resolved’ there but the ‘resolution’ was to disable the content filter! Not exactly a proper fix.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Hello everybody,

    After a good research and some meetings with the infra people, we changed the pcre.backtrack_limit value to 1000000 and it solved the problem.
    So, looks like it’s just a PHP5 config issue.

    Also here:
    https://www.ads-software.com/support/topic/258188

    onepack

    (@onepack)

    I was so stuck on this one for a while. I was getting all these empty posts untill I noticed that an article without the caption image elements was working fine. Even a lot of images attached (without the caption) worked fine… When I finally located the problem you guys rocked my world and gave me the solution. In wp_config.php just add:

    @ini_set(‘pcre.backtrack_limit’, 1000000);
    /* That’s all, stop editing! Happy blogging. */

    Hope this helps all the others out there with this issue!

    Greetings!

    This was very helpful, thanks a lot, onepack!

    @onepack – Thank you vey much, it’s fixed my problem.
    Only found the problem today and I thought I was going to go nuts. I thought it was something I had done wrong.
    Thanks to all the other posters too, without your diligence this would probably have gone unfixed.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘BUG: WordPress page goes blank if more than 20 captions’ is closed to new replies.