Jump to content

Error: Unable to create temp dir


heldercervantes
 Share

Recommended Posts

I'm getting this weird error, any idea how to get around it?

I was having problems importing content via API. I had a bunch of tech PDF files to add to a products catalogue and the online server was timing out in the operation. So I used Ryan's ProcessDatabaseBackups module to grab the DB from the online server and downloaded the whole assets directory to update my local version, then did the PDF import locally. Then I used the same module to overwrite the online DB and reuploaded the assets folder.

Now there's a first section of products that work fine, as does the rest of the site, but getting to an image from the second section on PW crashes and outputs this error.

The same page that outputs this, when edited on the CMS shows no problems. I've also checked permissions and even went 777 on the whole thing, but no cigar.

Error: Exception: Unable to create temp dir - /var/www/vhosts/isma.pt/httpdocs/site/assets/cache/WireTempDir/.PagefilesManager2231/1/ (in /var/www/vhosts/isma.pt/httpdocs/wire/core/WireTempDir.php line 113)

#0 /var/www/vhosts/isma.pt/httpdocs/wire/core/PagefilesManager.php(473): WireTempDir->get()
#1 /var/www/vhosts/isma.pt/httpdocs/wire/core/Pageimage.php(361): PagefilesManager->getTempPath()
#2 /var/www/vhosts/isma.pt/httpdocs/wire/core/Pageimage.php(245): Pageimage->___size(270, 284, Array)
#3 /var/www/vhosts/isma.pt/httpdocs/site/templates/product.php(39): Pageimage->size(270, 284)
#4 /var/www/vhosts/isma.pt/httpdocs/wire/core/TemplateFile.php(182): require('/var/www/vhosts...')
#5 [internal function]: TemplateFile->___render()
#6 /var/www/vhosts/isma.pt/httpdocs/wire/core/Wire.php(398): call_user_func_array(Array, Array)
#7 /var/www/vhosts/isma.pt/httpdocs/wire/core/Wire.php(333): Wire->runHooks('render', Array)
#8 /var/www/vhosts/isma.pt/httpdocs/wire/modules/PageRender.module(422): Wire->__call('render', Arr
Link to comment
Share on other sites

Just guesses here...

Perhaps you should empty all caches before making your profile backup. ClearCacheAdmin would be useful for that.

If you FTP to the problem directory, do you see anything there that might be preventing the creation of the temp directory? For example, an existing directory of the same name.

You could also try a more traditional migration (i.e. zip/ftp/extract files, export/import db via phpMyAdmin).

  • Like 1
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...