Jump to:

22977 Posts in 11742 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Custom Page Type - Blank Pages all of a sudden

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1491 Views
  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Custom Page Type - Blank Pages all of a sudden Link to this post

    I never thought I would say it, but this CMS is becoming impossible to combat.

    I have a client running SS 2.4. This site has been running for 2 years over various versions. The last upgrade took place when 2.4 was released.

    This site has a custom page type. Quite a large page type with the only structural change being the addition of a HTML text field, which for all instances of this page type, is empty.

    For no apparent reason, on the live linux server ONLY, some of these pages have started appearing blank in all browsers. No error, no html in view source, nothing, even in dev mode.

    However the same data, the exact same DB dump, runs just fine over WAMP on a local machine.

    I have, one by one, removed the contents (from the html window) for each field to try and narrow down the issue, with no luck. If I change the page type to just a standard "Page", it displays. Then I change it back to the custom page type and it is still displaying, although all custom content is lost (which is not a surprise). Then I re-enter content and it goes blank again.

    What could this possibly be? The most frustrating part is a complete lack of reporting of any sort. I can't even narrow down the issue.

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: Custom Page Type - Blank Pages all of a sudden Link to this post

    To anyone else experiencing similar issues, the PHP memory limit for this site was set to 64MB and has been for several years.

    Maybe these custom pages have become for content heavier lately with the addition of a new HTMLText field. But I changed the memory limit to 128 and they started to work again.

    For those unsure how to do this, just add the following to the top of your .htaccess file, but be aware that some shared hosts will not allow the use of this

    php_value memory_limit 128M

    1491 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.