It's been so long since I've worked on a site that used Imager instead of imgix that a problem with the way we set our imagerSystemPath config slipped under the radar.
On certain versions of OS X and with certain servers, our current method of setting this to $_SERVER['DOCUMENT_ROOT'] . '/imager/' won't work, and instead we should be setting it to a hard-coded path (e.g. /Users/user/path/formation/public/imager/) and setting it in .env.
This requires updating the following files:
/craft/config/imager.php needs to pull in the .env just like the other Craft configs do ($env = require(dirname(dirname(__FILE__)).'/../.env.php');) , and set imagerSystemPath to $env['IMAGER_SYSTEM_PATH']
env.sample.php (and .env) need to have a IMAGER_SYSTEM_PATH line added. (ideally this line is only added if the project is using the imager plugin)
It's been so long since I've worked on a site that used Imager instead of imgix that a problem with the way we set our
imagerSystemPath
config slipped under the radar.On certain versions of OS X and with certain servers, our current method of setting this to
$_SERVER['DOCUMENT_ROOT'] . '/imager/'
won't work, and instead we should be setting it to a hard-coded path (e.g./Users/user/path/formation/public/imager/
) and setting it in.env
.This requires updating the following files:
/craft/config/imager.php
needs to pull in the.env
just like the other Craft configs do ($env = require(dirname(dirname(__FILE__)).'/../.env.php');
) , and setimagerSystemPath
to$env['IMAGER_SYSTEM_PATH']
env.sample.php
(and.env
) need to have aIMAGER_SYSTEM_PATH
line added. (ideally this line is only added if the project is using the imager plugin)