Frank Vèssia Posted March 23, 2011 Share Posted March 23, 2011 I moved a site from one domain to another copying all files. Now when i create a page o trying to edit one i get this error: DirectoryIterator::__construct(/public_html/site/assets/cache/Page/6395/) [directoryiterator.--construct]: failed to open dir: No such file or directory it seems a dir permissions but i checked and i have all to 777 Link to comment Share on other sites More sharing options...
Frank Vèssia Posted March 23, 2011 Author Share Posted March 23, 2011 Ok, my fault, i was checking the folder permissions on old website directories and not in the new ;D Link to comment Share on other sites More sharing options...
ryan Posted March 24, 2011 Share Posted March 24, 2011 Since it looks like you have some cached pages, another thing you might want to do when moving a site is to clear the cache. You can do it before or after, but probably do it before just so you are transferring fewer files. Go to Admin > Modules > Page Render > and click on the "clear cache" checkbox, and submit. This can be especially useful when moving a site from one path to another (like subdirectory to root), because cached pages might temporarily be looking for external assets like CSS and JS files in the wrong directory. So if you ever transfer a site and see your homepage show up with no stylesheets or images, go in and clear that cache and you'll be set. Another way to clear the cache is: rm -rf ./site/assets/cache/Page/* But I always get a little nervous with anything involving an "rm -rf" (one stray character could wipe out everything) so I usually do it from the admin. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now