RESMUSHIT_QLTY is not defined
Closed this issue · 2 comments
mickaelperrin commented
Hi,
Jus to inform you, that the RESMUSHIT_QLTY
is not defined in your code.
and throws the following warning:
Warning: Use of undefined constant RESMUSHIT_QLTY - assumed 'RESMUSHIT_QLTY' (this will throw an Error in a future version of PHP)
It would be good to provide a default value:
if (!defined('RESMUSHIT_QLTY') {
define('RESMUSHIT_QLTY', 'XXXX');
}
Thanks
airplanenoise commented
another reason to do that is that depending on your server config and the size of your media library on initial smush, the error log file gets huge and that can lead to issues... like disk full and such, just went through that myself.
charlyie commented
Hi, your commit has been added to our last release 0.1.23 :)
Thanks for this help,
Cheers,
Charles