Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Sprintf and quotation marks

Go to End

5 Posts   1676 Views


Community Member, 19 Posts

1 February 2010 at 6:39am


I'm new to this module and not sure if i have just overlooked something or whether it's just that i'm running SS in XAMPP on a windows platform but within the supplied templates you seem to have used quotation marks within quotation marks quite a lot.

the sprintf data within the alt atribute is creating invalid html and causing errors

// --- line 17

<img class="productImage" src="$Image.ContentImage.URL" alt="<% sprintf(_t("IMAGE","%s image"),$Title) %>" />


<img class="productImage" src="$Image.ContentImage.URL" alt="<% sprintf(_t('IMAGE','%s image'),$Title) %>" />

I have had to go through and change this within every supplied template file (Not the most exciting thing i've had to do today).

To finish on a high point - this seems to be an amazing module. Good work :)



Community Member, 19 Posts

1 February 2010 at 9:14am

Sorry have answered my own question. Installed on test server (linux) with my hosting provider and seems to work fine.


Community Member, 178 Posts

27 May 2010 at 7:58am

Are you saying that this problem only appears to you on your local windows machine?
I ask because I am also having this same problem, and also have a linux server that I will use to going live.

Did you use the modified templates on the Linux box, or just local?

Any other fix found for the windows server?

thanks in advance for any help you can provide.


Community Member, 19 Posts

28 May 2010 at 12:08am

Sorry no fix for it as yet. It is strange that it only happens on my windows machine. I also get the same problem using the dataobject manager in the admin section as well.

My suggestion is put the basics together on your windows machine - upload to to linux server and finish off the rest there. If I find anything else out i will post it here.


Community Member, 12 Posts

28 May 2010 at 5:27am

please do.
Seams with so much SS dev going on for the windows platform that this would be a high priority issue, since it makes things rather ugly both on the front end and back end.