WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. hullen
    Member
    Posted 1 year 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

    Thks.

    Hullen Gonzales

    http://wordpress.org/extend/plugins/p2p-wpml/

  2. Carsten Bach
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic