Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’m having exactly the same problem…

    furi3r

    (@furi3r)

    @priyankajagtap did u check my message? if you send me the fix, i eventually can test it.

    furi3r

    (@furi3r)

    Hello, same here (also using wpengine) but im not sure how that relates.. maybe related to UPME?

    I debugged and found the issue:
    In the plugin constructor you call to the following hook:
    add_action( 'wp_login', array( &$this, 'wcal_remove_action_hook' ), 1 );

    The debug trace is:

    [Wed Apr 03 08:46:02.852279 2019] [php7:error] [pid 3543] [client 95.169.224.46:37418] PHP Fatal error: 
     Uncaught Error: Using $this when not in object context in 
     /nas/content/live/xxx/wp-content/plugins/woocommerce-abandoned-cart/woocommerce-ac.php:210\nStack trace:\n#0 
     [internal function]: woocommerce_abandon_cart_lite::wcal_remove_action_hook('xx.xx...')\n#1 
     /nas/content/live/xxx/wp-includes/class-wp-hook.php(288): call_user_func_array(Array, Array)\n#2 
     /nas/content/live/xxx/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)\n#3 
     /nas/content/live/xxx/wp-includes/plugin.php(465): WP_Hook->do_action(Array)\n#4 
     /nas/content/live/xxx/wp-includes/user.php(114): do_action('wp_login', 'xx.xx...', Object(WP_User))\n#5 
     /nas/content/live/xxx/wp-content/plugins/upme/classes/class-upme-login.php(359): wp_signon(Array, true)\n#6 
     /nas/content/live/xxx/wp-content/plugins/upme/classes/class-upme-login.php(100): UPME_Login->signon()\n#7 
     /nas/content/live/xxx/wp-content/plugins/upme/classes/class-upme-login.php(40): UPME_Login in 
     /nas/content/live/xxx/wp-content/plugins/woocommerce-abandoned-cart/woocommerce-ac.php on line 210, referer: https://xxxxx.es/login/?redirect_to=https://xxxxx.es/wp-admin/
    Thread Starter furi3r

    (@furi3r)

    Closing

    Thread Starter furi3r

    (@furi3r)

    You were right Lopo, my bad, that custom post type had integrated a duplicate option i was messing up with your plugin.
    Please close the ticket and sorry for the inconveniences.

    Thread Starter furi3r

    (@furi3r)

    Hello Lopo

    I think I’m missing something,
    I went directly to the plugin and created the hook and still not working there.
    Then I went to
    duplicate_post_copy_post_meta_info
    And commented out
    //add_post_meta($new_id, $meta_key, duplicate_post_wp_slash($meta_value));
    That I believe is where the meta data is added to the clone, and still is cloning the metadata…

    Is there the metadata cloned somewhere else? Or I’m just becoming crazy, this is magic 😀

    Thread Starter furi3r

    (@furi3r)

    Hello @lopo
    Yes, indeed it is duplicating all metadata associated with the custom post (including custom fields and taxonomy information)

    I added the filter on functions.php (also on my custom plugin) but with no success:

    add_action('dp_duplicate_post', 'test_clone', 90, 2);
    add_action('dp_duplicate_page', 'test_clone', 90, 2);
    
    function test_clone($new_post_id, $old_post_object)
    {
    	add_post_meta($new_post_id, 'test_duplication', 1);
    	wp_mail( 'xxx', 'duplicate', 'duplication od' . $new_post_id);
    }

    NEither I get the email, neither test_duplication is added as metadata.
    I tested different priorities to but same result.

    Any idea?

Viewing 7 replies - 1 through 7 (of 7 total)