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.

Archive

Our old forums are still available as a read-only archive.

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

Error when using Theme Installer widget


Reply

6 Posts   1753 Views

Avatar
Jan

6 April 2008 at 7:57am Community Member, 9 Posts

I use the latest version silverstripe-v2.2.2-rc2.tar.gz on my Windows XP SP2 machine.
I use WAMPServer 2.0 which consists of PHP 5.2.5, MySQL 5.0.45, Apache 2.2.6
My web root is f:\www\silverstripe2

I installed Theme Installer widget (widgetssandbox-0.1.tar.gz) and drag/dropped it to the right in the CMS.

When I select the Spicy theme from the widget it begins installing but ends with a exclamation popup saying:
f:wwwsilverstripe2/themes/spicyimagesiconspage_excel.png
See attachment

Notice the missing \

I checked F:\www\silverstripe2\themes dir and noticed all the spicy* dirs were created and also the file F:\www\silverstripe2\themes\spicy\images\icons\page_excel.png did exist.

I tested in IE6 and FF2.0.0.13

Can somebody help me?

Avatar
simon_w

6 April 2008 at 8:04am Forum Moderator, 474 Posts

This is a problem with the XML entry for the spicy theme. All other ones should install fine.

To get the spicy theme working, someone from SS needs to update the name attribute.

Avatar
Jan

6 April 2008 at 8:09pm Community Member, 9 Posts

I also tried iTheme and HigherGround and I get the same sort of errors. Any more ideas?

Avatar
simon_w

6 April 2008 at 8:48pm Forum Moderator, 474 Posts

I see the problem. I only tested this on a non-windows box, so file paths started with a /.

Hopefully fix:

Open InstallSandbox.php, find
if($this->localUrl{0} != '/') {
around line 91, and replace with
if($this->localUrl{0} != '/' && !preg_match('/^[a-zA-Z]:/', $this->localUrl)) {

Avatar
Jan

6 April 2008 at 9:08pm Community Member, 9 Posts

Thanks all themes work now, except for the Spicy theme. It doesn't give me the error popup anymore but the spicy theme isn't shown... it stays with the default. So this is an other problem. Any idea?

This fix get's in the SVN I suppose?

Thanks for your time..it's a great widget!

Avatar
simon_w

6 April 2008 at 9:11pm Forum Moderator, 474 Posts

That's the problem I mentioned first, the faulty XML attribute, which my code can't fix.

And if this widget was in SVN, then this fix would get added, but it isn't because Matt is too lazy (;