WordPress.org

Forums

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

  1. jonmcpartland
    Member
    Posted 1 year 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 1 year ago #

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

  3. Cliff Seal
    Member
    Plugin Author

    Posted 9 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pardot
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.