WPIntell

Source evidence

exec()

CW Image Optimizer · support · 2014-11-19T10:58:00+00:00

complaintsentiment
highseverity
1.0relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 29 rows with source links

20.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
bohemiandiesel unresolved
One a User has written: I’m getting the following error message after installing the plugin CW Image Optimizer requires exec(). Your system administrator has disabled this function. Warning: exec() has been disabled for security reasons in /home/xyz/public_html/wp-content/plugins/cw-image-optimizer/cw-image-optimizer.php on line 67 http://wordpress.org/extend/plugins/cw-image-optimizer/ ——— So what is the solution for? How can I enable exec()? Regards, Andy https://wordpress.org/plugins/cw-image-optimizer/ I found a typo on Centos. ini_get(‘disable_functions’) returns a csv list without spaces. So line 83 in cw-image-optimizer.php works when I implode without the extra space in the delimiter field. You may want to add some kind of array check. $disabled = explode(',', ini_get('disable_functions')); @bohemiandiesel , if you have system access, check your php.ini for disable_functions = exec,blah,blah,blah Then you’d have to remove the ‘exec’ and restart apache. If you are on a shared host, you should check with your hosting provider. To: Plugin Author, have you considered using shell_exec() on systems that disable exec?

Comments

3 shown
leventuresllc 2014-11-24T21:07:00+00:00

I found a typo on Centos. ini_get(‘disable_functions’) returns a csv list without spaces. So line 83 in cw-image-optimizer.php works when I implode without the extra space in the delimiter field. You may want to add some kind of array check. $disabled = explode(',', ini_get('disable_functions'));

leventuresllc 2014-11-24T21:15:00+00:00

@bohemiandiesel , if you have system access, check your php.ini for disable_functions = exec,blah,blah,blah Then you’d have to remove the ‘exec’ and restart apache. If you are on a shared host, you should check with your hosting provider.

leventuresllc 2014-11-24T21:16:00+00:00

To: Plugin Author, have you considered using shell_exec() on systems that disable exec?