0

I have moved my site from localhost to the web hosting, and in the web hosting, the user picture have been lost and the users cannot upload new photos. But in the localhost everything was working nicely

When i inspect the "lost picture", i get this path: MY_SITE.com/sites/default/files/styles/thumbnail/public/pictures/MY_PICTURE-5-1375807631.jpg?itok=eQN27TLT

I'm getting crazy with this. Is there any sugestion? Thank you

0

That may be due to permissions issues for your files floder. Try giving permission to your sites/default/files folder.That will resolve your issue.

  • They all have permission 755 (the folders "sites", "default", and "files") – user19627 Aug 6 '13 at 17:17
  • Did you check images are available in the files folder? – Ram Aug 6 '13 at 17:19
  • Give 777 for full files folder and clear the cache once. It will resolve your issue. – Ram Aug 6 '13 at 17:21
1

You might find that updating the permissions on your files folder is necessary. Depending on your server configuration you may need to run chmod -R 770 ~/public_html/sites/default/files (assuming the path to your files folder) or use 777 as your permissions string.

Beyond that, ensure that when you moved to production you deployed an entire copy of the site including all the files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.