Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Error when using Theme Installer widget

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

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

Page: 1
Go to End
Author Topic: 1692 Views
  • Jan
    Avatar
    Community Member
    9 Posts

    Error when using Theme Installer widget Link to this post

    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?

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Error when using Theme Installer widget Link to this post

    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.

  • Jan
    Avatar
    Community Member
    9 Posts

    Re: Error when using Theme Installer widget Link to this post

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

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Error when using Theme Installer widget Link to this post

    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)) {

  • Jan
    Avatar
    Community Member
    9 Posts

    Re: Error when using Theme Installer widget Link to this post

    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!

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Error when using Theme Installer widget Link to this post

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

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