• Resolved mattf10

    (@mattf10)


    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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.