Last night I noticed a Fatal error on my website, when I checked the debug log I saw the following:
PHP Fatal error: ?Declaration of GuzzleHttp6\Psr7\Uri::getScheme() must be compatible with Psr\Http\Message\UriInterface::getScheme(): string in /home/website/webapps/website/wp-content/plugins/afterpay-payment-gateway-for-woocommerce/vendor-static/guzzlehttp/psr7/src/Uri.php on line 423
As far as I can see this is coming from your plugin.
Could you look in into this? And are Guzzle and PSR packages up-to-date within the plugin?
]]>Can you please update guzzle to latest version? It is causing errors with AWS PHP SDK.
]]>our website relies heavily on a plugin, that addes the Flickr account as a media source, in the new post, add media section. It shows us the photo’s, sorted by albums, and can select them as if the were in the regular media library.
However, this plugin is abandoned and hasn’t seen an update in five years. When updating to PHP 8.2, the loading icon keeps spinning and the photo’s no longer show up. This plugin works with addons, so we have an additional plugin that connects to flickr, so the issue might be in both.
However we are trying to tackle this ourselves, and found we are getting many deprecation errors in the logs.
Is there anybody here that can help us in the right direction, or knows of a trustworthy developper to fork the plugin and bring it into 2024 please?
Deprecated: Creation of dynamic property WPRemoteMediaExt\WPCore\hooks\ThemeScript::$isHooked is deprecated in /wp-content/plugins/remote-medias-lite/vendor/loumray/wpcore/src/WPfeature.php on line 188
Deprecated: Creation of dynamic property WPRemoteMediaExt\WPCore\hooks\AdminScript::$isHooked is deprecated in /wp-content/plugins/remote-medias-lite/vendor/loumray/wpcore/src/WPfeature.php on line 188
Deprecated: Return type of WPRemoteMediaExt\Guzzle\Common\Collection::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/src/Guzzle/Common/Collection.php on line 294
Deprecated: Return type of WPRemoteMediaExt\Guzzle\Common\Collection::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/src/Guzzle/Common/Collection.php on line 299
Deprecated: Return type of WPRemoteMediaExt\Guzzle\Common\Collection::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/src/Guzzle/Common/Collection.php on line 304
Deprecated: Return type of WPRemoteMediaExt\Guzzle\Common\Collection::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/src/Guzzle/Common/Collection.php on line 309
Deprecated: Return type of WPRemoteMediaExt\Guzzle\Common\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/src/Guzzle/Common/Collection.php on line 50
Deprecated: Return type of WPRemoteMediaExt\Guzzle\Common\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/src/Guzzle/Common/Collection.php on line 45
Deprecated: WPRemoteMediaExt\Guzzle\Service\Description\ServiceDescription implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /wp-content/plugins/remote-medias-lite/vendor/guzzle/guzzle/src/Guzzle/Service/Description/ServiceDescription.php on line 11
Thank
Rey
“Error thrown
Call to undefined method GuzzleHttp\Utils::chooseHandler()”
Can you help me with this specific problem? Besides that we are very happy with your plugin. Thanks in advance!
I’m using Guzzle for my WP Rest application.
"guzzlehttp/guzzle": "^7.5"
I can do the GET requests without any problems but when it comes to POST request I’m getting a
401 Unauthorized
response: {“code”:”rest_cannot_create”,”message”:”Sorry, you are not allowed to create posts as this user.”,”data”:{“status”:401}}
However, when I’m doing the POST request using Postman I can make POST request without any problems
$response = $client->request('POST', '/wp-json/wp/v2/our-cruises/', [
'json' => [
'title' => 'This is a new test post from REST API',
'content' => 'This is a content from REST API'
]
]);
$body = $response->getBody();
$arr_body = json_decode($body);
print_r($arr_body);
]]>Can you please update the GuzzleHttp dependency package to the latest version i.e 7.4.5 since it breaks the other plugins which are using the same package with the latest version as most of the methods have been deprecated.
Thanks
]]>A wordpress error window is pointing to “Mailjet Subscription Widget”.
I guess I’m not the only one running into this issue. Any hint how to fix is very much welcome
Here is the complete error report which was automaticly sended by wordpress. Does anyone knows what to do with this infos, what can be done concretely to solve the problem?:
=========
WordPress-Version 6.0.1
Aktuelles Plugin: Mailjet for WordPress (Version 5.2.20)
PHP-Version 8.0.20
Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 61 der Datei /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-content/plugins/mailjet-for-wordpress/vendor/guzzlehttp/guzzle/src/functions.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined method GuzzleHttp\Utils::chooseHandler() in /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-content/plugins/mailjet-for-wordpress/vendor/guzzlehttp/guzzle/src/functions.php:61
Stack trace:
#0 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-content/plugins/backwpup/vendor/guzzlehttp/guzzle/src/HandlerStack.php(42): GuzzleHttp\choose_handler()
#1 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-content/plugins/backwpup/vendor/guzzlehttp/guzzle/src/Client.php(65): GuzzleHttp\HandlerStack::create()
#2 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-content/plugins/mailjet-for-wordpress/vendor/mailjet/mailjet-apiv3-php/src/Mailjet/Request.php(98): GuzzleHttp\Client->__construct(Array)
#3 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-content/plugins/mailjet-for-wordpress/vendor/mailjet/mailjet-apiv3-php/src/Mailjet/Client.php(313): Mailjet\Request->__construct(Array, 'GET', 'https://api.mai...', Array, NULL, 'application/jso...', Array)
#4 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-content/plugins/mailjet-for-wordpress/vendor/mailjet/mailjet-apiv3-php/src/Mailjet/Client.php(111): Mailjet\Client->_call('GET', 'contactmetadata', '', Array)
#5 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-content/plugins/mailjet-for-wordpress/src/includes/MailjetApi.php(364): Mailjet\Client->get(Array, Array)
#6 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-content/plugins/mailjet-for-wordpress/src/widget/WP_Mailjet_Subscribe_Widget.php(928): MailjetPlugin\Includes\MailjetApi::isValidAPICredentials()
#7 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-includes/class-wp-widget.php(534): MailjetPlugin\Widget\WP_Mailjet_Subscribe_Widget->form(Array)
#8 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-admin/includes/widgets.php(274): WP_Widget->form_callback(Array)
#9 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-includes/class-wp-customize-widgets.php(1127): wp_widget_control(Array, Array)
#10 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-includes/class-wp-customize-widgets.php(1075): WP_Customize_Widgets->get_widget_control(Array)
#11 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-includes/class-wp-customize-widgets.php(713): WP_Customize_Widgets->get_available_widgets()
#12 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-includes/class-wp-hook.php(307): WP_Customize_Widgets->enqueue_scripts('')
#13 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#14 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#15 /mnt/web411/b2/81/51760081/htdocs/kukuk-test/wp-admin/customize.php(123): do_action('customize_contr...')
#16 {main}
thrown
===============
]]>