WordPress.org

Forums

Share Buttons by AddToAny
[resolved] Warnings on Debug Mode (4 posts)

  1. Juergen Schulze
    Member
    Posted 2 years ago #

    Notice: Trying to get property of non-object in C:\temp\UniServer\www\xxx\wp-content\plugins\add-to-any\add-to-any.php on line 67

    Notice: Trying to get property of non-object in C:\temp\UniServer\www\xxx\wp-content\plugins\add-to-any\add-to-any.php on line 69

    http://wordpress.org/plugins/add-to-any/

  2. micropat
    Member
    Plugin Author

    Posted 2 years ago #

    Seems related to $post->ID. Have you tried temporarily disabling all other plugins and switching to the default theme?

    If so, what PHP version are you using?

  3. Juergen Schulze
    Member
    Posted 2 years ago #

    Looks like this happens when I manuall add the plugin to a archive page.
    It does not show up when add to a single post template.
    Maybe because there simply is no defined $post->id
    Anyways, you should catch this warning with isset()

  4. micropat
    Member
    Plugin Author

    Posted 2 years ago #

    Fixed in the 1.1.5 release. Thanks, Juergen!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Share Buttons by AddToAny
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.