Fatal Error Conflicts Caused by Unscoped Namespace of Included Libraries
-
Your plugin is causing fatal errors as a result of not scoping the namespace of libraries it includes.
For example, I’m using the latest version of WP Offload Media (2.4.2). Your plugin causes it to crash with a fatal error:
[28-Aug-2020 22:46:40 UTC] PHP Fatal error: Uncaught Error: Class ‘DeliciousBrains\WP_Offload_Media\Aws3\Symfony\Polyfill\Intl\Idn\Idn’ not found in /public_html/wp-content/plugins/amazon-s3-and-cloudfront-pro/vendor/Aws3/Symfony/Polyfill/IntlIdn/bootstrap.php:146The Delicious Brains tech support team behind the WP Offload Media plugin has investigated this thoroughly and recommended disabling your plugin until it can be fixed to work alongside other plugins that may also include libraries. This can be easily done by scoping your included libraries like they do: https://deliciousbrains.com/php-scoper-namespace-composer-depencies/
- The topic ‘Fatal Error Conflicts Caused by Unscoped Namespace of Included Libraries’ is closed to new replies.