WordPress.org

Ready to get started?Download WordPress

Forums

Pardot
[resolved] PHP Notices on 404 Pages (3 posts)

  1. jonmcpartland
    Member
    Posted 9 months ago #

    On 404 pages, where there is no global $post object, PHP throws Notices of type "Trying to get property of non-object". This is due to the use of get_the_id() on line 53 of includes/pardot-template-tags.php.
    This isn't a major issue, since errors should be suppressed in production environments, but an existence check should still be made, rather than an assumption.

    Cheers

    https://wordpress.org/plugins/pardot/

  2. Cliff Seal
    Member
    Plugin Author

    Posted 9 months ago #

    Thanks, Jon! Good thinking. That'll get rolled into a next minor release.

  3. Cliff Seal
    Member
    Plugin Author

    Posted 3 months ago #

    This is done in version 1.4, which is being tested and will ship soon. Thanks for reporting!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.