Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Parts of $Content missing in Chrome & Safari

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

Page: 1
Go to End
Author Topic: 770 Views
  • micschk
    Avatar
    Community Member
    18 Posts

    Parts of $Content missing in Chrome & Safari Link to this post

    I'm having some strange issues of parts of $Content missing _sometimes_ on a website I'm developing (my first in SilverStripe).

    When I load the website in Chrome/Chromium or on an Android & iPad, it only loads the first paragraph of the $Content. When reloading it, sometimes (eg. after three times) it does load the full content (but this is only sometimes).

    When I use Firefox, all content is there, always (and the html output seems just fine). I really have no clue as to how this could be happening; content should either be there or not there, right? Could this be some kind of memory issue?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Parts of $Content missing in Chrome & Safari Link to this post

    Perhaps there is an HTML error on the page? You didn't have a $Content.Summary or something previously did you? If so then it could be a cache issue.

  • micschk
    Avatar
    Community Member
    18 Posts

    Re: Parts of $Content missing in Chrome & Safari Link to this post

    Hmm.. turns out there were some tiny validation issues, but the culprit was one little line in the css. I added it to remove the empty paragraphs that can sometimes be generated in the editor;

    p:empty {display:none;}

    So, after 3,5 hours of debugging I've decided I can live with some empty paragraphs...

    Thanks @Willr!

    770 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.