Title: PHP Warnings (PHP 8.1)
Last modified: May 11, 2022

---

# PHP Warnings (PHP 8.1)

 *  Resolved [Joe](https://wordpress.org/support/users/joewa1980/)
 * (@joewa1980)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-1/)
 * Hi guys. Just a quick heads up for you on the current PHP Warnings in our error
   log from RCP using PHP 8.1. These are easily fixed but it’d be better to have
   them patched in a release if possible, thanks!
 * `[09-May-2022 03:46:50 UTC] PHP Warning: Attempt to read property "ID" on null
   in /mywebsite.com/wp-content/plugins/restrict-content-pro/includes/content-filters.
   php on line 24`
    `[09-May-2022 03:46:50 UTC] PHP Warning: Attempt to read property"
   ID" on null in /mywebsite.com/wp-content/plugins/restrict-content-pro/includes/
   content-filters.php on line 132` `[10-May-2022 22:16:19 UTC] PHP Warning: Undefined
   array key "item_name" in /mywebsite.com/wp-content/plugins/restrict-content-pro/
   includes/gateways/class-rcp-payment-gateway-paypal.php on line 363` `[10-May-
   2022 22:16:19 UTC] PHP Warning: Undefined array key "item_number" in /mywebsite.
   com/wp-content/plugins/restrict-content-pro/includes/gateways/class-rcp-payment-
   gateway-paypal.php on line 363`

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

 *  Plugin Contributor [highprrrr](https://wordpress.org/support/users/highprrrr/)
 * (@highprrrr)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-1/#post-15636983)
 * Thanks [@joewa1980](https://wordpress.org/support/users/joewa1980/) !!
 * Our plugin definitely does not support PHP 8.0 yet (I don’t believe that WordPress
   even supports it yet) but we are actively looking for 8.0 related bugs so we 
   can be ready for 8.0 as soon as possible.
 * People like you reporting this stuff is a huge help! I’ll get this sent over 
   to the developer.
 * Thanks again!
    -James
 *  Plugin Contributor [highprrrr](https://wordpress.org/support/users/highprrrr/)
 * (@highprrrr)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-1/#post-15636987)
 * One quick question, are these showing up in your logs as soon as the page is 
   loaded or are you doing anything on the front/back end to trigger them?
 *  Thread Starter [Joe](https://wordpress.org/support/users/joewa1980/)
 * (@joewa1980)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-1/#post-15636989)
 * We have a busy production site with 750 members in and out all day so it’s difficult
   to pinpoint.
 * We’ve had great success with PHP 8.1 fortunately and have only found PHP warnings
   of future depreciations rather than any groundbreaking errors or issues.
 * If anything else comes to light I’ll give you a shout.
 *  Plugin Contributor [highprrrr](https://wordpress.org/support/users/highprrrr/)
 * (@highprrrr)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-1/#post-15637235)
 * Awesome, thanks again!
 *  Thread Starter [Joe](https://wordpress.org/support/users/joewa1980/)
 * (@joewa1980)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-1/#post-15640598)
 * And this one…
 * `[12-May-2022 10:59:52 UTC] PHP Warning: Attempt to read property "ID" on null
   in /mywebsite.com/wp-content/plugins/restrict-content-pro/includes/admin/admin-
   actions.php on line 50`

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

The topic ‘PHP Warnings (PHP 8.1)’ is closed to new replies.

 * ![](https://ps.w.org/restrict-content/assets/icon.svg?rev=3529325)
 * [Membership Plugin - Kadence Memberships](https://wordpress.org/plugins/restrict-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-content/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-content/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Joe](https://wordpress.org/support/users/joewa1980/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/php-warnings-php-8-1/#post-15640598)
 * Status: resolved