Title: Error with PHP Upgrade
Last modified: May 17, 2024

---

# Error with PHP Upgrade

 *  Resolved [fkildoo](https://wordpress.org/support/users/fkildoo/)
 * (@fkildoo)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/)
 * After upgrading PHP from 7.4.33 to 8.3.7 I get an error at the top of the page:
 * Warning: Attempt to read property “ID” on null in 
   … /wp-content/plugins/content-
   control/inc/functions/rule-callbacks.php on line 88
 * Using:
   Plugin version 2.2.8WordPress version: 6.5.3
 * I have downgraded PHP to go back to normal.

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

 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/#post-17766494)
 * Hi [@fkildoo](https://wordpress.org/support/users/fkildoo/),
 * Sorry to hear you encountered an error after upgraded your PHP version.
 * Did you have existing restriction rules before you upgraded?
 * If yes, could you please try the following:
 * Export the rules first > then delete the rules > upgrade your PHP > and re-import
   your exported restriction rules.
 * You can also recreate your rules and then deleted the old ones that were created
   before you upgraded.
 * Let us know if that works!
 *  Thread Starter [fkildoo](https://wordpress.org/support/users/fkildoo/)
 * (@fkildoo)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/#post-17768283)
 * That did not work. I am getting the same error. I had 1 rule set up, so I did
   what you suggested. I exported then deleted the rule (permanently), upgraded 
   PHP, then reimported the rule. Same issue. I then deleted the rule (permanently),
   and then recreated the rule from scratch. The rule redirects 1 user role to a
   custom URL, from the home and search results page. I have reverted back to PHP
   7.
 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/#post-17769103)
 * Hi [@fkildoo](https://wordpress.org/support/users/fkildoo/),
 * Thanks for trying our suggestion.
 * Could you send us a screenshot of your restriction rules? We’ll try to reproduce
   it on our test site.
 * We appreciate your continued patience. 🙏
 *  Thread Starter [fkildoo](https://wordpress.org/support/users/fkildoo/)
 * (@fkildoo)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/#post-17770478)
 * Thank you. Here are the screenshots:
 * ![](https://i0.wp.com/demos.zekiah.com/_fkildoo/public/Screenshot%202024-05-20%
   20113704.png?ssl=1)
 * ![](https://i0.wp.com/demos.zekiah.com/_fkildoo/public/Screenshot%202024-05-20%
   20113722.png?ssl=1)
 * ![](https://i0.wp.com/demos.zekiah.com/_fkildoo/public/Screenshot%202024-05-20%
   20113734.png?ssl=1)
 *  Plugin Support [Kim L](https://wordpress.org/support/users/kimmyx/)
 * (@kimmyx)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/#post-17771880)
 * Hi [@fkildoo](https://wordpress.org/support/users/fkildoo/),
 * Thanks for the screenshots!
 * We were able to reproduce the warning when the restriction “Content is The Home
   Page” is added.
 * We’ve informed our developers about this so they can take a look.
 * We’ll let you know once we receive feedback.
 * Let us know if you have other questions in the meantime. 🙏
 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/#post-17774858)
 * [@fkildoo](https://wordpress.org/support/users/fkildoo/) – Please test v2.3.0.
   I believe it may solve this particular issue.
 *  Thread Starter [fkildoo](https://wordpress.org/support/users/fkildoo/)
 * (@fkildoo)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/#post-17776635)
 * Working well now with v2.3.0. Thanks Daniel!
 *  [Israel Martins](https://wordpress.org/support/users/israelmartins/)
 * (@israelmartins)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/#post-17819688)
 * Hi [@fkildoo](https://wordpress.org/support/users/fkildoo/) ,
 * We’re glad that helped.
 * Please don’t hesitate to [reach out](https://wordpress.org/support/plugin/content-control/#new-topic-0)
   if you need more assistance.

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

The topic ‘Error with PHP Upgrade’ is closed to new replies.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

## Tags

 * [callbacks](https://wordpress.org/support/topic-tag/callbacks/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 9 replies
 * 4 participants
 * Last reply from: [Israel Martins](https://wordpress.org/support/users/israelmartins/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/error-with-php-upgrade-2/#post-17819688)
 * Status: resolved