Fatal error exporting when MPL-Publisher plugin also active
-
Hi when I try to export a document using Aspose.words and have MPL-Publisher active, there seems to be a conflict, because I get this fatal error:
PHP Fatal error: Uncaught Error: Call to undefined method GuzzleHttp\Utils::chooseHandler() in /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/guzzle/src/functions.php:61 Stack trace: #0 /home/wordprin/printmy.blog/wp-content/plugins/mpl-publisher/vendor/guzzlehttp/guzzle/src/HandlerStack.php(42): GuzzleHttp\choose_handler() #1 /home/wordprin/printmy.blog/wp-content/plugins/mpl-publisher/vendor/guzzlehttp/guzzle/src/Client.php(65): GuzzleHttp\HandlerStack::create() #2 /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(74): GuzzleHttp\Client->__construct() #3 /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/src/AsposeWords/Util.php(27): Aspose\Words\WordsApi->__construct('875775BC-8A52-4...', '69f869e481bfde1...', 'https://api.asp...') #4 /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/src/AsposeWords/ExportEngine.php(87): AsposeWords\Util::getWordsApi() #5 /home/wordpri in /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/guzzle/src/functions.php on line 61 [26-Aug-2022 17:39:42 UTC] PHP Fatal error: Uncaught Error: Call to undefined method GuzzleHttp\Utils::chooseHandler() in /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/guzzle/src/functions.php:61 Stack trace: #0 /home/wordprin/printmy.blog/wp-content/plugins/mpl-publisher/vendor/guzzlehttp/guzzle/src/HandlerStack.php(42): GuzzleHttp\choose_handler() #1 /home/wordprin/printmy.blog/wp-content/plugins/mpl-publisher/vendor/guzzlehttp/guzzle/src/Client.php(65): GuzzleHttp\HandlerStack::create() #2 /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(74): GuzzleHttp\Client->__construct() #3 /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/src/AsposeWords/Util.php(27): Aspose\Words\WordsApi->__construct('875775BC-8A52-4...', '69f869e481bfde1...', 'https://api.asp...') #4 /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/src/AsposeWords/ExportEngine.php(87): AsposeWords\Util::getWordsApi() #5 /home/wordpri in /home/wordprin/printmy.blog/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/guzzle/src/functions.php on line 61
If I deactivate MPL-Publisher, Aspose.words works fine.
I think the error is coming up because both plugins use the Guzzle PHP library, but different versions of it.
One solution could be for either plugin to instead use the WordPress HTTP library (e.g., functions like
wp_remote_get
).The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal error exporting when MPL-Publisher plugin also active’ is closed to new replies.