PHP 8.1 issue
-
We use PHP 8.1 on our pages and have problems with the error messages from WordPress. The main problem here is the
wp_remote_get
andwp_remote_post
.We were able to solve this in all other plugins (our own) by simply switching to cURL. Unfortunately, we still have the problem with Blog2Social.
Here we would find it super if Blog2Social would check whether PHP 8.1 is in use and then use cURL instead of
wp_remote_X
. This would make Blog2Social compatible with PHP 8.1.Full error:
Class: B2S_Api_Post::post()
Return type of Requests_Cookie_Jar::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
I have tested this on two live servers (using Query Monitor) and once locally using local. In all cases, I was able to find out via stack that it was due to Blog2Social and the use of
wp_remote_X
.Otherwise, there is nothing to report. We also use the Pro version and are satisfied so far. Thank you.
- The topic ‘PHP 8.1 issue’ is closed to new replies.