• Resolved Delonn

    (@delonnkoh)


    Hi,

    I saw this on my hosting PHP error log:–

    PHP Warning: putenv() has been disabled for security reasons in /var/web/site/public_html/wp-content/plugins/amazon-s3-and-cloudfront/classes/providers/aws-provider.php on line 171

    The whole log is stuffed with it as it happened every 1-2mins

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor ianmjones

    (@ianmjones)

    That’s unfortunate.

    Try this in your theme’s functions.php file or somewhere else that you like to have custom filter handlers defined (for example, you could install our Tweaks plugin and add the following line inside the __construct() function).

    add_filter( 'as3cf_disable_aws_csm', '__return_false' );

    Thread Starter Delonn

    (@delonnkoh)

    Thanks for the solution, It works!

    Does it matter if I disable it like that? What does this do actually?

    Plugin Contributor ianmjones

    (@ianmjones)

    Don’t worry about it.

    We had to put in the “disable AWS CSM” thing to stop the AWS SDK from automatically trying to look for some default config files in the filesystem in a place that is often restricted by shared hosting. It will not alter the way WP Offload Media works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to resolve putenv() error?’ is closed to new replies.