I've transferred a Drupal 7 website from online to my mac to work on some features. Styled images cannot be generated for some reason.

I've tried deleting styles folder, adding $conf['image_allow_insecure_derivatives'] = TRUE; in settings.php, disabling & enabling clean URLs, deactivating & activating my theme again (a ZEN sub theme), uncommenting # RewriteBase / in my .htaccess and all those tricks suggested by people online with no success. Public path is set to sites/default/files and temporary to sites/all/temp and no problems are reported on admin/reports/status.

I now believe the problem is caused by user permissions/ownership. I've changed permissions to 777 for sites/default/files and everything included in it. That didn't help. All these folders seem to belong to user "my_name" and group "admin". I would use the Apache web user/group but there is no user/group set in httpd.conf. Instead, these values are #-1 for both. I've changed those to "my_name" and "admin" but that didn't help either.

All styled images paths are generated but no styled images can be written.

The errors I get in apache error log:

I've also installed a new Drupal 7 site next to this site and it works fine, styled images are displayed well.

I've also tried different PHP versions (MAMP PRO allows to easily change versions) but that didn't help either.

I'd appreciate any suggestion to solve this problem.

  • are you sure the folder structure exists locally, exactly as it does on the server? – Geoff May 3 '15 at 13:38
  • It does, yes. I've deleted styles but it gets regenerated anyway. – webmaniac May 3 '15 at 14:20
  • Is your temp folder configured correctly? – Maarten De Block May 3 '15 at 20:14
  • It is set to sites/all/temp. ls gives me 777 for the folder & its contents and "my_name" & "admin" for user, group. – webmaniac May 3 '15 at 20:19
  • What's in your server's error log and in Drupal watchdog? – Mołot May 4 '15 at 10:28

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.