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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Error when using Theme Installer widget


Go to End


6 Posts   2096 Views

Avatar
Jan

Community Member, 9 Posts

6 April 2008 at 7:57am

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
(deleted)

Community Member, 473 Posts

6 April 2008 at 8:04am

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

Community Member, 9 Posts

6 April 2008 at 8:09pm

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

Avatar
(deleted)

Community Member, 473 Posts

6 April 2008 at 8:48pm

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

Community Member, 9 Posts

6 April 2008 at 9:08pm

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
(deleted)

Community Member, 473 Posts

6 April 2008 at 9:11pm

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 (;