Jump to:

5538 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Tabs missing

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

Page: 1
Go to End
Author Topic: 612 Views
  • cinek
    Avatar
    Community Member
    17 Posts

    Tabs missing Link to this post

    Hello,

    I've been recently struggling with tabstrip.{css,js} not loading in one situation.
    To reproduce, I need to:
    - log in to admin
    - click on one of the pages, it's content form loads on the left but tabs are not styled

    Once I hit F5 in this state, the page loads in one go with the required styles and JavaScript files.

    Unfortunately I'm using a quite old version of SS: 2.3.3. I don't want to upgrade because the whole page is otherwise ready, I have some private fixes etc.

    I can't reproduce the issue with a vanilla project. It seems that something I have interferes.
    I'm using three plugins:
    - userforms 0.2.1
    - sfwupload
    - dataobject_manager r322

    I have tried finding the culprit from both ends, i.e. both tried removing code from my project where the issue is present (didn't get far - it's difficult to remove the plugins from it) and adding code to a vanilla project (I have copied simple code from the problematic project that uses both of the plugins).

    I've also looked at various bugs that have been fixed in newer releases that looked relevant, to no avail.

    "Requiring" the files unconditionally in LeftAndMain.php doesn't help much - the tabs look better but the page doesn't behave correctly.

    Does anyone have any idea on how I could go on about debugging it? Or does anyone have a quick fix (like including all the necessary files unconditionally)?

  • 3dgoo
    Avatar
    Community Member
    133 Posts

    Re: Tabs missing Link to this post

    Sometimes I've seen problems like these in the cms. It turns out my problems were caused by blank lines at the end of my php files.

    So what I had to do was go through all the php files in the code folder and delete the blank lines at the end, making sure ?> were the last characters in the file.

    I'm not sure if your problem is caused by this, but have a look.

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