• Resolved CarynG

    (@caryng)


    Hello. I was trying to restore theme files from a backup, but UpdraftPlus returned the following:

    ————–

    Unpacking backup…
    Error message: Could not create directory.

    Restore failed…

    —————

    That “Could not create directory” message, is making me wonder if this problem may have something to do with the fact that I’m on a Windows server (like this is some permissions thing- the program is trying to create a directory but for some reason the Windows configuration isn’t allowing it?) Well any insight that you could provide, would be much appreciated- thanks.

    http://wordpress.org/plugins/updraftplus/

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter CarynG

    (@caryng)

    O.K.- I’ve just e-mailed that file to you. I also took a look at the contents of this zip file myself, and it looks fine to me- it does seem to have all of my site’s theme files. But the file name is rather long… like over 120 characters (I see that it’s including the site’s title in the file name, and in the case of my site, the title happens to be a bit of a mouthful.) πŸ™‚ So, do you think it would be worth a shot for me to alter the title of the site, to make it something a lot shorter (since I’m doing all this on a test site, there’s no real consequence of doing that), and then I can try making another backup and see if the restore works when using a backup that has a shorter file name?

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi Caryn,

    Yes, the file seems fine. Try this:

    1) Delete it from wp-content/updraft.

    2) Press the “rescan” link in the “restore” section. It should then disappear from the list of what’s available.

    3) Rename the file, taking out almost all of that middle section. e.g. Something like:
    backup_2013-08-01-0822_Testing_d4a1174f6109-themes.zip

    The rest of the filename needs to remain as-is – that’s used.

    4) Put it in wp-content/updraft, and press “rescan” again (or use the drag/drop uploader).

    Then see if that has a different result…

    Thread Starter CarynG

    (@caryng)

    SWEET!!! πŸ™‚ Yes- that file name turned out to be the problem, because after I did exactly what you said, the restore completed successfully (with all the files that I had deleted from my themes directory, put back in place- yea!)

    So it’s possible that this has never come up before because most site titles aren’t as crazy as mine is (and it could also be that, in combination with running on an IIS server- perhaps Apache servers can handle creating directories with names like that. My experience so far with working with sites on IIS servers versus on Apache servers, is that I get confounded by these sorts of problems left & right with IIS…)

    So although I do now have a “work-around” for this, and it probably won’t come up very often in general with people using your plugin, I was wondering if you would perhaps consider making a new version, that truncates the site title in the file name after so many characters, in the event of of the site title being so long? (And maybe strip out “non-standard” characters, too- it’s also a possibility that it wasn’t the length of the site title, but rather that it had characters in it like “|” and “+” which also happens to be the case with my title. When I performed your test, I replaced the entire site title with just the word “test”- because I was so eager to see it finally work so I wasn’t up for playing around with all the different possibilities…)

    Well thanks again, for all your help in getting this resolved!

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Hi Caryn,

    The present code truncates the site title at 96 characters, and removes any characters except for any in : A-Z, a-z, 0-9 and underscore, and replace spaces with underscores.

    It seems that 96 is too many, at least for you – in the next release I’ve cut it to 32 – that ought to be enough to identify the site the backups are from!

    The existing version already allows you to change the name with a filter… so, you have two options:

    1) Update to the development version, which cuts it at 32 characters: http://updraftplus.com/faqs/devversion

    2) Or, stay on the current version and create a filter, by creating a file wp-content/mu-plugins/cut-ud-name.php with contents (changing my_custom_name – but make sure it also obeys the above rules):

    <?php
    add_filter('updraftplus_blog_name', 'custom_updraftplus_blog_name');
    function custom_updraftplus_blog_name() { return "my_custom_name"; }

    David

    Thread Starter CarynG

    (@caryng)

    Hello again- I opted to go with your development version, and I just tried it out and I had no problems at all with it. So, I’ve just changed the status of this topic to “resolved”, and I also gave you a very well-deserved positive review here- http://wordpress.org/support/view/plugin-reviews/updraftplus

    Thanks again!! πŸ™‚
    -Caryn

    Plugin Author David Anderson / Team Updraft

    (@davidanderson)

    Thank you!

    David

    Thread Starter CarynG

    (@caryng)

Viewing 7 replies - 16 through 22 (of 22 total)

The topic ‘Getting "Restore failed…" error message, from UpdraftPlus’ is closed to new replies.