5095 Posts in 1518 Topics by 1114 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 886 Views |
-
CMS Errors w/pic

5 March 2010 at 11:16am
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?
-
Re: CMS Errors w/pic

5 March 2010 at 12:04pm Last edited: 5 March 2010 12:04pm
Works fine on vanilla 2.4. Can you tell me what's your exact version?
mat
-
Re: CMS Errors w/pic

5 March 2010 at 12:56pm
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?
-
Re: CMS Errors w/pic

5 March 2010 at 1:35pm
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
-
Re: CMS Errors w/pic

5 March 2010 at 2:23pm
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.
-
Re: CMS Errors w/pic

5 March 2010 at 2:28pm
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
| 886 Views | ||
|
Page:
1
|
Go to Top |

