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.

Migrating a Site to Silverstripe

What you need to know when migrating your existing site to SilverStripe.

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



14 Posts   5040 Views


23 July 2009 at 12:14pm (Last edited: 23 July 2009 12:15pm), Community Member, 59 Posts

Though no one is responding here, I noticed that the StaticImporter plugin was massively upgraded yesterday (I am downloading from SVN). Wow! I am checking it out now, on a local install. ...I see some logical steps here now and something about wget. Ironically, I just came across wget yesterday too, before I saw it here in the plugin! It must have been meant to be! :-)

Hope the documentation starts to churn out too! Thanks to the developer on the work!


23 July 2009 at 1:13pm (Last edited: 23 July 2009 1:16pm), Community Member, 59 Posts

I am using XAMPP on a Windows Vista 32 Bit machine, with a local install of SilverStripe. I even have the virtual machine set-up, so that I access my SilverStripe at http://silverstripe.loc/ . Pretty cool, eh? My own SilverStripe (local) domain!

I just downloaded Wget 1.11.4-1 from the following:

It installs (by default) in the following directory:

C:\Program Files\GnuWin32

At the following:


I see:

Step 1

And then I see:

Site URL: http://

However, this does not appear to be a real field to enter the domain.

Then I see the button:

Download site using wget

But when I press the button, I get the following error message:

Website Error
There has been an error
The website server has not been able to respond to your request

I am hoping someone knowledgeable about StaticImporter will respond. Maybe the developer?


23 July 2009 at 5:02pm Community Member, 59 Posts

I am looking at the following code in /staticimporter/code/StaticImporter.php:

   // STEP 1

    * Downloads a website using wget.
   function doDownload() {
      $url = self::$url;
      if(!$url) {
         trigger_error('StaticImporter URL was not set.', E_USER_ERROR);
      // Create the accepted extensions argument to pass to wget
      $accepted = array();
      foreach(self::$allowed_extensions as $extension) {
         $accepted[] = "*.$extension";
      $acceptedTxt = implode(',', $accepted);
      if(!file_exists('../assets/staticimport')) {
         $command = "wget -r -nH --directory-prefix=../assets/staticimport -A "
            . escapeshellarg($acceptedTxt) . ' ' . escapeshellarg($url);
         echo "<p>Running $command</p>";
         echo "<p><b>Done!</b></p>";
      } else {
         echo '<p><b>Site already downloaded.</b></p>';

I see the command for wget. I am able to use wget my self, with command line. I have successfully downloaded and processed a couple sites using the regular windows Command Prompt. However, I want to use the StaticImporter as it is intended. So, I am wondering, is there a config setting in the plugin, so that it knows where the local wget is?

In my case, I have two installations of wget now:

C:\Program Files\GnuWin32\bin\


The first was with the Windows installer version (already mentioned) and the second was with the standard version here:


2 August 2009 at 3:53pm Community Member, 59 Posts

It's been 10 days since I last posted and again no one is responding. ...Hoping someone will take interest in this thread. Hoping the developer (sminnee? or aoneil?) of StaticImporter will keep enhancing the module. No updates since July 22nd (and it is presently August 2nd) and no posts here either. Here is the page on the wiki, where documentation should be:

It would be great if one of the developers, such as sminnee? or aoneil?, would fill all of the documentation out, so that we can use this great and promising module! Thanks!


28 August 2009 at 2:39am Community Member, 59 Posts

I have tried the August 12th SVN update for the StaticImporter. I am so happy to see the improvements and continued development on this module! Is there a way that I could communicate with one of the StaticImporter developers, to get some questions answered? I still don't see any documentation done for this plugin, on the wiki and no one is replying on the forums, with help on how to use this module. So, if someone would be willing to communicate by e-mail, that would be fine too. Please help! I am loving SilverStripe, but I need help on this module. Thanks!!! :-)


28 August 2009 at 10:33am Core Development Team, 4 Posts


I've posted a bit of info on StaticImporter over at

Hopefully this sheds a bit of light!