Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Failure to import?

I am trying to shift my forum from one server to another. I have set up the new instance, new database etc. and have exported the old forum information using the tool. When I try to import at the other end I get 'BONKed' like so:

Fatal Error in Gdn_Upload.SaveAs();

Failed to move uploaded file to target destination (C:\Users\Virtual Machine\Documents\My Web Sites\Vanilla/uploads/C:/Users/Virtual Machine/Documents/My Web Sites/Vanilla/uploads/import/34YFHOMUFN6O.gz).

The error occurred on or near: C:\Users\Virtual Machine\Documents\My Web Sites\Vanilla\library\core\class.upload.php

212: if (!file_exists(dirname($Target))) 213: mkdir(dirname($Target)); 214: 215: if (!move_uploaded_file($Source, $Target)) 216: throw new Exception(sprintf(T('Failed to move uploaded file to target destination (%s).'), $Target)); 217: } 218: return $Parsed; 219: } 220:

[C:\Users\Virtual Machine\Documents\My Web Sites\Vanilla\applications\dashboard\controllers\class.importcontroller.php:167] Gdn_Upload->SaveAs(); [C:\Users\Virtual Machine\Documents\My Web Sites\Vanilla\applications\dashboard\controllers\class.importcontroller.php:167] ImportController->Index(); [C:\Users\Virtual Machine\Documents\My Web Sites\Vanilla\library\core\class.dispatcher.php:322] PHP::call_user_func_array(); [C:\Users\Virtual Machine\Documents\My Web Sites\Vanilla\index.php:53] Gdn_Dispatcher->Dispatch();
Need Help?

If you are a user of this website, you can report this message to a website administrator.

If you are an administrator of this website, you can get help at the Vanilla Community Forums.

Additional information for support personnel:
Application: Vanilla
Application Version:
PHP Version: 5.4.9
Operating System: WINNT
Server Software: Microsoft-IIS/8.0
Referer: http://localhost:46007/index.php?p=/dashboard/import
User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Request Uri: /index.php?p=/dashboard/import
Controller: Gdn_Upload
Method: SaveAs

I'm sure it's blindingly obvious to someone else but would you mind sharing it with me? Thanks!


  • Options

    No-one got anything to say on this? I thought the point was to post your BONK error and receive a response?

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited December 2012



    The point is that the more detail you provide, the more chance there is that someone can help you.

    This board is mostly community supported, with occasional wise words from the developers.

    People aren't simply hanging around waiting to solve other people's problems.

    The error seems to be related to an uploaded image for one of your users, which is stored as a gz.

    Rather than exporting, why not simply ftp the files?

    Try that, making sure to delete the ini files in the cache folder in the new forum folder, and updating the config.php file to point to your new database.

  • Options

    I understand that but had been led to believe that posting BONK errors usually resulted in a response. I'm not sure why something that should be relatively straightforward i.e. migration is being so reticent to comply.

    I can't see where the image could be an issue as I haven't used any! Curious.

    Could you elaborate on the ftp option? As in, exactly which files to transfer?

    Thanks for the reply

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    The problem uploads file could be a site banner image I gues, if you haven't got any user avatars.

    Can I check:

    Is this a currently live forum with active members/posts discussions etc. ?

    Most of the 'good stuff' is stored in the database, so one option would be to simply create a new install of Vanilla on your new server and export and import the database.

    If you want to transfer your current forum in toto, then assuming for example your current forum files are in a folder called Vanilla (or Forum etc.) ftp the entire contents to the folder you want them to be in on your new server.

    Once you have done that, find the cache folder and delete the ini files.

    If your db has a different name/user etc, change that information in the config.php file.

Sign In or Register to comment.