Title: Issue when upgrading to php8
Last modified: September 9, 2022

---

# Issue when upgrading to php8

 *  Resolved [Le Renard Pourpre](https://wordpress.org/support/users/swanzack/)
 * (@swanzack)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/)
 * Hello, i’m a USP user trying the plugin for now, i have an issue when i set my
   PHP version to 8.0+ i got this message to my posts pages :
 * > Warning: Attempt to read property “ID” on int in /home/clients/c2122e1746cad9168816bfddd6bc4000/
   > web/cerises-staging/wp-content/plugins/user-submitted-posts/user-submitted-
   > posts.php on line 650
 * I need to downgrade my php version to stop having this message 🙁
    Do you think
   there is any way to fix this issue ?
 * Thank you;

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

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-15995771)
 * I’m not seeing that warning on PHP 8. Can you let me know the steps to replicate
   the issue on default WordPress install? That way I can take a look and try to
   resolve asap. Thank you
 *  Thread Starter [Le Renard Pourpre](https://wordpress.org/support/users/swanzack/)
 * (@swanzack)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-16001617)
 * Hello, i think it’s due to a conflit with my theme (ASTRA wich is one of the 
   most use) because when i switch to the default theme i don’t have this issue 
   anymore with php 8.0. If you have any idea how to fix it i’ll be happy 😉 Thank
   you !
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-16002697)
 * Not sure, but if the issue is with Astra or whatever, best advice would be to
   copy the related error messages from your site’s error log, and then ask the 
   Astra team for help in resolving. They will best be able to help with issues 
   regarding their own products. Or if you have any further questions about USP,
   feel free to post them here anytime. Thank you 🙂
 *  Thread Starter [Le Renard Pourpre](https://wordpress.org/support/users/swanzack/)
 * (@swanzack)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-16124840)
 * Hello,
 * Here astra’s answer :
 * > The Astra theme and the Astra Pro plugin are not the sources of the issues;
   > rather, the mistakes originate from third-party plugins. Astra is completely
   > ready for versions of PHP 8 and above.
 * So maybe there is something to do with USP to prevent this error with php8 ?
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-16125078)
 * > So maybe there is something to do with USP to prevent this error with php8 ?
 * No, the plugin is developed/tested on PHP 8, and there are zero errors of any
   kind on default WordPress. I will keep an eye out though, and/or if you (or anyone)
   can provide steps to repeat the issue, I will be glad to investigate and try 
   to resolve asap.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-16158090)
 * Hi [@swanzack](https://wordpress.org/support/users/swanzack/), just wanted to
   follow up with this. It’s been awhile with no reply, so I hope the issue is resolved?
   Or if there is anything I can do to help, please let me know. Thank you.
 *  Thread Starter [Le Renard Pourpre](https://wordpress.org/support/users/swanzack/)
 * (@swanzack)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-16158452)
 * hello,
    thank you for asking, no unfortunately both theme and plugin dev are 
   passing the buck.
 * My website is blocked to php7 i’ll try to move it to an other server, but i have
   to wait a little bit before to do that…
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-16158467)
 * Okay understood. Let me know if anything I can do to help.
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-16180156)
 * Hey, it’s been awhile with no reply, so I’m gonna go ahead and mark this thread
   as resolved to keep the forum organized. Feel free to post again anytime with
   new questions, feedback, etc. Thank you.

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

The topic ‘Issue when upgrading to php8’ is closed to new replies.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/issue-when-upgrading-to-php8/#post-16180156)
 * Status: resolved