17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1480 Views |
-
Error when using Theme Installer widget

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\silverstripe2I 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 attachmentNotice 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?
-
Re: Error when using Theme Installer widget

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.
-
Re: Error when using Theme Installer widget

6 April 2008 at 8:09pm
I also tried iTheme and HigherGround and I get the same sort of errors. Any more ideas?
-
Re: Error when using Theme Installer widget

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)) { -
Re: Error when using Theme Installer widget

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!
-
Re: Error when using Theme Installer widget

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 (;
| 1480 Views | ||
|
Page:
1
|
Go to Top |

