psliwa / image-optimizer

Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
MIT License
909 stars 141 forks source link

ErrorException in Command.php line 38: Undefined variable: outputLines #57

Closed congloi closed 5 years ago

congloi commented 6 years ago

I used this package few month ago, all was going ok. but today, get error

ErrorException in Command.php line 38: Undefined variable: outputLines

line 38 is: exec($command, $outputLines, $result);

help me check, I don't know why, I don't edit or do anything in my server.

my version is 1.1, using pngquant to optimized

tomopongrac commented 6 years ago

I know that you write that you dont change anything on your server but check in your php.ini file do you have exec function disabled (exec function must be enabled).

psliwa commented 5 years ago

From 1.2.2 version I made clear error message when exec function is disabled.