Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error_log being produced with convert errors #124

Open
badbadmonkey opened this issue Jul 11, 2018 · 1 comment
Open

error_log being produced with convert errors #124

badbadmonkey opened this issue Jul 11, 2018 · 1 comment

Comments

@badbadmonkey
Copy link

I'm getting dozens of these kinds of errors being appended to the PHP error_log in the phpThumb directory. They're all consistent to line 484 phpThumb.functions.php , but the strange thing is I cannot see how to replicate them - i.e. all the images in question appear to always be generated, and some of these convert commands clearly don't relate to images at all.

[10-Jul-2018 03:37:48 America/Chicago] PHP Warning:  shell_exec(): Unable to execute 'convert -help 2>&1' in /home3/peters/public_html/include/phpthumb/phpthumb.functions.php on line 484
[10-Jul-2018 03:37:48 America/Chicago] PHP Warning:  shell_exec(): Unable to execute 'convert logo: -resize 1x '/home3/peters/public_html/include/phpthumb/cache/pThumbMpvDm1' 2>&1 2>&1' in /home3/peters/public_html/include/phpthumb/phpthumb.functions.php on line 484
[10-Jul-2018 13:23:26 America/Chicago] PHP Warning:  shell_exec(): Unable to execute 'convert -help 2>&1' in /home3/peters/public_html/include/phpthumb/phpthumb.functions.php on line 484
[10-Jul-2018 13:23:26 America/Chicago] PHP Warning:  shell_exec(): Unable to execute 'convert logo: -resize 1x '/home3/peters/public_html/include/phpthumb/cache/pThumbqOttZ1' 2>&1 2>&1' in /home3/peters/public_html/include/phpthumb/phpthumb.functions.php on line 484
[10-Jul-2018 13:23:26 America/Chicago] PHP Warning:  shell_exec(): Unable to execute 'convert '/home3/peters/public_html/photos/patagonia/090726-1-ushuaia.jpg[0]' -background '#FFFFFF' -resize '1080x' -sampling-factor 1x1 jpeg:'/home3/peters/public_html/include/phpthumb/cache/pThumbqOttZ1' 2>&1 2>&1' in /home3/peters/public_html/include/phpthumb/phpthumb.functions.php on line 484

Any idea if this is a clue to something I'm doing wrong, or is there a bug?

@badbadmonkey
Copy link
Author

badbadmonkey commented Nov 5, 2019

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 stderr to stdout
@ line 465 above is being logged in HTML encoding... 2>&1 , is this unexpected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant