Jump to:

23453 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Broken CMS

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 2
Go to End
Author Topic: 1203 Views
  • innyinskip
    Avatar
    Community Member
    46 Posts

    Broken CMS Link to this post

    Hi Chaps,

    Im almost to the point of unvailing the new silverstripe intranet site to my company.
    I have been tweaking a few things and have managed to kind of break it!

    I have built an article system as per the docs on the help system.
    This worked fine. Got a homepage created that displays the latest 5 entries and then tickered it using jQuery in a BBC stylee.

    I then realised that all the users would have to enter in their usernames when they create news. I have the bright idea of having it auto populate this field based on who is logged in.
    So i added this to the article page :

    public function populateDefaults() {
    parent::populateDefaults();
    $memberName = Member::currentUser() ? Member::currentUser()->getName() : null;
    $this->setField('Author', $memberName);
    }

    As per another forum post i found.
    Works great!

    My only issue is now that pages that were created before that mod are uneditable from the CMS.
    I can remove them from the published site but whenever i try to remove them completely from the CMS i get a red 'server error'.

    Im guessing its because those posts no longer relate to the tables in the database.

    My question is how to get rid of these from the site?

    Can anyone point me in the right direction please?

    Many Thanks
    Craig

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Broken CMS Link to this post

    The server error message is not very useful. You can see the full error message in your browsers error console (firefox at least) or in your php error log.

  • innyinskip
    Avatar
    Community Member
    46 Posts

    Re: Broken CMS Link to this post

    Hi Wil,

    sorry mate, been crazy busy.

    Ive looked at the page using firebug and get this (screenshot attached)

    to be fair it means absolutely nothing to me.
    Have you got any ideas?
    Anything more i can provide just let me know
    Thanks alot!
    Craig

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Broken CMS Link to this post

    I can see the words

    500 Internal Server error which means the site is probably running in live mode so you won't see the actual error message outputted to the console. Check your error logs or turn on devmode to get the actual error message.

  • innyinskip
    Avatar
    Community Member
    46 Posts

    Re: Broken CMS Link to this post

    Hi wil,

    Is this what you were after?

    Thanks mate!

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Broken CMS Link to this post

    Tried checking the steps that error page lists to check. PROTIP If its hard to read in the console like that. You can right click, copy error and paste in a new text doc and it should be formatted a bit better.

  • innyinskip
    Avatar
    Community Member
    46 Posts

    Re: Broken CMS Link to this post

    Hi wil,

    3rd time lucky?!

    Cheers mate

    Attached Files
  • ttyl
    Avatar
    Community Member
    114 Posts

    Re: Broken CMS Link to this post

    did you try everything on the list?

    1203 Views
Page: 1 2
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.