Hello,

In general, we're mounting s3 for our Drupal files folder. So the layout is something like:

/var/files (s3fs mount)
/var/www/sites/default/files (symbolic link to /var/files)

Everything is working well, except we found an error in mimemail where php memory is exhausted regardless of what it's set to. The fix for me was to simply append the $base_url.base_path() to it. Not sure if this bug applies to all mounts or just s3fs, I think the better place to report a bug is either in s3fs or in php's file_get_contents. In the meantime, this patch solves the problem. Though I'm not sure it's the best way to solve it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Ashraf Amayreh’s picture

FileSize
814 bytes

Seems ini_get returns a boolean. Quick fix...

TR’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

D6 is not supported any more, and this issue is not relevant to D7. Specifically, Mime Mail does not use file_get_contents() in D7, it uses drupal_add_css(). If there is still an issue with loading CSS files from an S3 file system then that would be an issue that needs to be addressed in Drupal core, not here.