WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Error happened on user login (2 posts)

  1. rasiel
    Member
    Posted 1 year ago #

    I use another plugin for user login called Nextend-facebook-connect, and when user login by using facebook there is a waring message show.

    Here is the message:
    Warning: Missing argument 2 for woocommerce_load_persistent_cart() in /home/urworks/webapps/mag_test/wp-content/plugins/woocommerce/woocommerce-core-functions.php on line 215

    I try to make some hotfix and it do work, but I'm not sure if it is okay.

    Ordinary code:

    215 function woocommerce_load_persistent_cart( $user_login , $user) {
     216     global $woocommerce;
     217

    Here is my code:

    215 function woocommerce_load_persistent_cart( $user_login ) {
     216     global $woocommerce;
     217     $user = get_user_by('login', $user_login);

    If there are any problem for this hotfix, please let me know. Thanks!

    http://wordpress.org/extend/plugins/woocommerce/

  2. shahidquadir
    Member
    Posted 1 year ago #

    Hi Rasiel!!!

    It also worked for me thanks you for that .. but not sure it can make any problem when we are login without facebook,,

    regards...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags