Title: PHP 8 Errors
Last modified: October 16, 2024

---

# PHP 8 Errors

 *  Resolved [mattf10](https://wordpress.org/support/users/mattf10/)
 * (@mattf10)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-8-errors-14/)
 * Your plugin is flooding my logs with the same error message:
 * `PHP Warning: Attempt to read property "post_type" on null in /wp-content/plugins/
   give/src/DonationForms/Actions/PrintFormMetaTags.php on line 18"`
 * This can easily be fixed by adding an isset check for post_type on line 17, like
   so:
 * `isset($post->post_type) &&`
 * So the entire if block becomes:
 * `if ( isset($post->post_type) &&
   $post->post_type === 'give_forms'&& Utils::isV3Form(
   $post->ID)) {
 * It will take very little time to make this change, and make your plugin even 
   better.
 * Thanks

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

 *  Plugin Support [Robin Joshua Del Mundo](https://wordpress.org/support/users/robindelmundo/)
 * (@robindelmundo)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-8-errors-14/#post-18118254)
 * Hi [@mattf10](https://wordpress.org/support/users/mattf10/) ,
 * I greatly appreciate you suggesting this fix!
 * The contributions of our users are significant, and while we make every effort
   to perfect the plugin, certain aspects, such as this one, may still slip through
   the cracks.
 * We’ve also already integrated this solution into the code, as you can see here—
   [https://github.com/impress-org/givewp/blob/develop/src/DonationForms/Actions/PrintFormMetaTags.php#L18](https://github.com/impress-org/givewp/blob/develop/src/DonationForms/Actions/PrintFormMetaTags.php#L18).
 * Should you have more concerns regarding this, please reply to this conversation
   and I can jump back in to assist.
 * Thank you for using and improving GiveWP!
 * Have a wonderful day!
 *  Plugin Support [Robin Joshua Del Mundo](https://wordpress.org/support/users/robindelmundo/)
 * (@robindelmundo)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/php-8-errors-14/#post-18123181)
 * Hi [@mattf10](https://wordpress.org/support/users/mattf10/) ,
 * It’s been a while since we’ve heard back. I’m marking this as resolved for now,
   but if you still have questions, you can send them along right here, and I’ll
   be happy to hop back in.
 * Have a great day!

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

The topic ‘PHP 8 Errors’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Robin Joshua Del Mundo](https://wordpress.org/support/users/robindelmundo/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/php-8-errors-14/#post-18123181)
 * Status: resolved