badbadmonkey
badbadmonkey
I'm still having this issue with megabytes of errorlog being accrued. It's always line 484 @ phpthumb.functions.php and I notice that the line `$command .= ' 2>&1'; // force redirect...
My hack above just implements what I think appropriate for my particular site. I wouldn't advocate it for all. I'm just throwing the idea here to try to put it...
Also (when debugging enabled) `Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /.../phpthumb/phpthumb.class.php on line 1803`
Yes they're correct ``` 1803 > $IMuseExplicitImageOutputDimensions = preg_match('#image dimensions are zero#i', $IMresult_test); 1990 > $nh = ((round($nh) != 0) ? round($nh) : ''); ```
More testing, have realized this error(s) occurs randomly and isn't related to debugging. It nevertheless generates the image, I have a script to retry after 1 s and it always...
What I can discern is it seems to be connected to to generation of a debug msg, but not a successful image output. I just put phpThumb in debug mode...
When debug is disabled, this is what happens. My test script is doing one phpThumb at a time with a short delay in between, so as to not overload server....