Jump to:

5514 Posts in 1733 Topics by 1219 members

Customising the CMS

SilverStripe Forums » Customising the CMS » CMS Errors w/pic

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

Page: 1
Go to End
Author Topic: 1014 Views
  • Terry Apodaca
    Avatar
    Community Member
    109 Posts

    CMS Errors w/pic Link to this post

    Ever since I upgraded to the latest version of Silverstripe...I get this error:

    <% sprintf(_t('WELCOME1','Welcome to %s. Please choose on one of the entries in the left pane.'),SilverStripe CMS) %>
    or
    <% sprintf(_t('IMPORTSPECLINK', 'Show Specification for %s'),Property) %>

    with my new Property Admin model admin. I have followed all tutorials and examples on building my own models, and have no idea why these are showing up this way now. Use to not!

    Anyone have this problem or maybe know where i can fix it?

  • MateuszU
    Avatar
    Community Member
    89 Posts

    Re: CMS Errors w/pic Link to this post

    Works fine on vanilla 2.4. Can you tell me what's your exact version?

    mat

  • Terry Apodaca
    Avatar
    Community Member
    109 Posts

    Re: CMS Errors w/pic Link to this post

    Version 2.3.6

    I fixed it...but still should be noted some place. not sure this was just an oversight on an upgrade or something but I Had to change:

    this:
    <% sprintf(_t('WELCOME1','Welcome to %s. Please choose on one of the entries in the left pane.'),SilverStripe CMS) %>

    to:
    <% _t('WELCOMETO','Welcome to') %> $ApplicationName!
    <% _t('CHOOSEPAGE','Please choose one of the tabs from the left.') %>

    and similarly to the other error. i guess sprintf( is no longer needed/supported in the cms?

  • MateuszU
    Avatar
    Community Member
    89 Posts

    Re: CMS Errors w/pic Link to this post

    In version 2.3.6 the template you are mentioning looks as follows: http://open.silverstripe.org/browser/modules/cms/tags/2.3.6/templates/Includes/ModelAdmin_right.ss .

    Here is the difference in your code that makes it broken:
    Your code

    <% sprintf(_t('WELCOME1','Welcome to %s. Please choose on one of the entries in the left pane.'),SilverStripe CMS) %>

    2.3.6

    <% sprintf(_t('WELCOME1','Welcome to %s. Please choose on one of the entries in the left pane.'),$ApplicationName) %>

    Would you mind saying where did you get the code from? SVN repo? Or downloaded as installer/tarball? Would be good to have it fixed.

    mat

  • Terry Apodaca
    Avatar
    Community Member
    109 Posts

    Re: CMS Errors w/pic Link to this post

    I downloaded the tarball file (I did not use the installer) and simply extracted it to my server. It is for sure version 2.3.6. I got it right off the download page from silverstripe.org.

    i removed the sprintf() and it works fine now.

  • MateuszU
    Avatar
    Community Member
    89 Posts

    Re: CMS Errors w/pic Link to this post

    Good to hear it works for you now. Just downloaded that file, and it has correct 2.3.6 code inside, so I don't know where the "SilverStripe CMS" came from in ur case.

    Cheers,
    mat

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