[resolved] Undefined property: WP_Query::$_p2p_capture (3 posts)

  1. hullen
    Posted 3 years ago #

    This notice error is showing on my site. I know, its a php notice, but would like develop with error_reporting() enabled.

    PHP Notice: Undefined property: WP_Query::$_p2p_capture in /public/wp-content/plugins/p2p-wpml/synchronizer.php on line 81

    I'm using P2P Plugin version 1.4.2 and P2P WPML 1.2


    Hullen Gonzales


  2. Carsten Bach
    Posted 3 years ago #

    I'm also bit hacked off theese notices and think it would be no harm to check the existence of related property.

    Maybe one of the plugin authors could change line 81 to something like this:
    if (isset($wp_query->_p2p_capture) || property_exists($wp_query, '_p2p_capture')) {

    Would be nice to get this small fix into the next version.

    Update: After I found the plugin-repo on GitHub I opened an Issue.

  3. lencinhaus
    Plugin Author

    Posted 3 years ago #

    Hi Carsten, thanks for your contribution! Your patch has been integrated in version 1.2.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • p2p-wpml
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic