Title: PHP 8.1 issue
Last modified: March 24, 2023

---

# PHP 8.1 issue

 *  Resolved [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-1-issue-2/)
 * 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` and `wp_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()
 *     ```wp-block-code
       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.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * (@blog2socialsupport)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-1-issue-2/#post-16592309)
 * Hello,
 * Thanks for reaching out.
 * Let me get that checked with our technical experts and I will get back to you
   as soon as we have new information regarding your request.
 * Please let me know if you have further questions in the meantime.
 *  [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * (@blog2socialsupport)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-1-issue-2/#post-16598739)
 * Hello,
 * Thanks for your patience.
 * Due to requirements and security reasons of WordPress, we are not allowed to 
   set up our own curl connections in officially listed plugins and therefore have
   to use the official WordPress function “_wp\_remote\_x_“.
 * But rest assured, your mentioned behavior regarding PHP 8.1. is already known
   and will probably be fixed tomorrow in WordPress version 6.2.
   [https://core.trac.wordpress.org/ticket/57738](https://core.trac.wordpress.org/ticket/57738)
 * Please let me know if you have further questions.
 *  Thread Starter [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-1-issue-2/#post-16599212)
 * Awesome, thank you!
 *  [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * (@blog2socialsupport)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-1-issue-2/#post-16601684)
 * Hello,
 * Thanks for your feedback.
 * Please let me know if you have any other questions.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP 8.1 issue’ is closed to new replies.

 * ![](https://ps.w.org/blog2social/assets/icon-256x256.png?rev=3076476)
 * [Blog2Social: Social Media Auto Post & Scheduler](https://wordpress.org/plugins/blog2social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blog2social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blog2social/)
 * [Active Topics](https://wordpress.org/support/plugin/blog2social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blog2social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blog2social/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-1-issue-2/#post-16601684)
 * Status: resolved