• Hi,
    I just tried your plugin, but when I try to activate after entering the S3 credentials, I see this message on screen “Please check your credentials” and this message in the php error log:

    PHP Fatal error:  Uncaught Error: Call to undefined function GuzzleHttp\_idn_uri_convert() in /var/www/test/public/content/plugins/advanced-media-manager/vendor/guzzlehttp/guzzle/src/Client.php:220
    Stack trace:
    #0 /var/www/test/public/content/plugins/advanced-media-manager/vendor/guzzlehttp/guzzle/src/Client.php(113): GuzzleHttp\Client->buildUri(Object(GuzzleHttp\Psr7\Uri), Array)
    #1 /var/www/test/public/content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/Handler/GuzzleV6/GuzzleHandler.php(43): GuzzleHttp\Client->sendAsync(Object(GuzzleHttp\Psr7\Request), Array)
    #2 /var/www/test/public/content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/WrappedHttpHandler.php(87): Aws\Handler\GuzzleV6\GuzzleHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array)
    #3 /var/www/test/public/content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/ClientSideMonitoring/AbstractMonitoringMiddleware.php(126): Aws\WrappedHttpHandler->__invoke(Object(Aws\Command), Object(Guzzl in /var/www/test/public/content/plugins/advanced-media-manager/vendor/guzzlehttp/guzzle/src/Client.php on line 220
    

    I’m also using composer and also use guzzlehttp/guzzle. Your version was older (6.5.2) than mine (6.5.5), if I downgrade, then it works. I was just looking on packagist and both versions have security advisories and should be upgraded to 6.5.8.

    There are many other plugins out there that also use composer, so you may want to namespace your vendor packages using something like php-scoper or imposter-plugin (which was created specifically to avoid this issue).

  • The topic ‘Can’t activate, PHP Fatal error’ is closed to new replies.