0

I'm on Drupal 7 and attempting to upgrade to Civi 5.25.

I followed the steps here to upgrade and now I'm getting this error when attempting to log in as a user on the front end:

"The website encountered an unexpected error. Please try again later."

which I think is caused by this:

"The directory sites/default/files exists but is not writable and could not be made writable."

which I can see in Drupal, which I can get to. I can get to the command line via SSH to modify my settings.

I had to sudo at the command line to do these commands:

"Ensure that your Drupal files directory is writeable by the webserver.

$ cd /sites/default/files

$ chown -R www-data: .

$ find . -type d -exec chmod 0755 {} \;

$ find . -type f -exec chmod 0644 {} \;

$ chmod -R u+rw ."

So I hope and think the fix is a simple one, at the command line. Any help appreciated!

2
  • So I think I fixed the permissions issue, doing this at the command line - sudo chown -R joe-demo:joe-demo /var/www/joe-demo/htdocs . I had done the same a few months ago with help from Jon Goldberg, and that was in my history. But I don't remember enough to add a good Answer here. Also, this is a good reference civicrm.stackexchange.com/questions/168/… May 12 '20 at 19:38
  • I'm a bit lost here! You had a problem logging in; you found an error message; you ran some commands intended to fix the error message.... So can you log in now? If so, congrats you appear to have resolved the problem. If not, what messages are you getting now? What's the problem you are looking for help with?
    – Aidan
    May 14 '20 at 11:16

Your Answer

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

Browse other questions tagged or ask your own question.