I have copied a site I have on a VPS down to run from XAMPP on my local machine. When I restore the site using Backup and Migrate I get the error message on all pages of the site:
The specified file temporary://filemy1oSK could not be copied, because the destination directory is not properly configured.
I have clean installs of drupal running fine on XAMPP. On the File System configuration page (admin/config/media/file-system) they use ‘/Applications/XAMPP/xamppfiles/temp/’ so I have tried using this and ‘/Applications/XAMPP/xamppfiles/private/’ but this doesn’t fix the error.
There is a similar Drupal Answers Question, about moving a site from local up to a VPS I have tried to work through the suggestions there to no effect. The top answer recommends advice from this site. Following this to avoid starting the file paths with a forward slash I tried using ‘sites/default/files/private/’ and ‘sites/default/files/temp/’but this doesn’t fix the error either.
As this is a local install, security is less of an issue. I have been setting the above directories to 777 to ensure that there are enough permissions. I have also made ‘sites’, ‘sites/default’ and ‘sites/default/files/’ 777.
Possibly incidentally, clean URLS weren’t working on the the local install, even though they work fine on the fresh installs of Drupal. This stopped the links on the site working. I disabled them by going to http://localhost/sitename/?q=admin/config/search/clean-urls and the site links now work without clean URLS
Also possibly incidentally, I got an error message when I used the site files I downloaded to install with a clean database. I did this so I could install the backup migrate module and restore the site properly. At the end of the install I got the error:
Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in _acquia_profile_create_node() (line 158 of /Applications/XAMPP/xamppfiles/htdocs/sitename/profiles/acquia/acquia.profile).
I don’t have any admin menu and the overlay admin screens aren’t working. I am assuming this is a result of the temporary files error.
Any advice?