Home Forums WC Vendors Pro Support PHP Notices and Warnings related to WCV Shipping class

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #27098
    David R
    Participant

    PHP Warning: Illegal string offset ‘international_disable’ in /home/*****/public_html/*****/***/wp-content/plugins/wc-vendors-pro/admin/class-wcvendors-pro-shipping.php on line 365
    PHP Notice: Uninitialized string offset: 0 in /home/*****/public_html/*****/***/wp-content/plugins/wc-vendors-pro/admin/class-wcvendors-pro-shipping.php on line 365
    PHP Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /home/*****/public_html/*****/***/wp-includes/functions.php on line 3792

    These three lines keep showing up in my debug log, even after disabling all plugins, save for the obvious ones and the Social Marketplace ones.

    #27099
    David R
    Participant

    They still show after switching to the Storefront theme and disabling the Social Marketplace plugins.

    #27102
    David R
    Participant

    The first two lines, the ones immediately related to WCV, show up only from activity on the Cart and Checkout pages, and they show up even with buddypress deactivated.

    So, those errors are showing up in the log with Storefront as the active theme and only WCV, WCV Pro, and WooCommerce enabled.

    Everything is up-to-date.

    #27107
    Jawad
    Participant

    Hi there,

    Just posting here to get a notification of the problem once there’s a reply. Since the last update it has fixed showing rates in the Shipping tab, but I am also getting these error messages on cart & checkout pages.

    Many Thanks,
    Jawad

    #27108
    David R
    Participant

    I’m a PHP novice, but I think there ought to be an isset on that line. Just a guess.

    if ( 'yes' == $product_rates['international_disable'] || 'yes' == $store_rates['international_disable'] ) {

    #27112
    David R
    Participant

    THIS IS NOT AN OFFICIAL SOLUTION

    Replacing the first section of code below with the second block of code seems to resolve the issue of the first two debug lines quoted in the original post.

    if ( 'yes' == $product_rates['international_disable'] || 'yes' ==  $store_rates['international_disable'] ) { 
    	return $shipping_rate = false;
    }
    
    if ( isset($product_rates['international_disable']) && 'yes' == $product_rates['international_disable'] ) { 
    	return $shipping_rate = false;
    } elseif ( isset($store_rates['international_disable']) && 'yes' ==  $store_rates['international_disable'] ) {
    	return $shipping_rate = false;
    }
    #27213
    Jawad
    Participant

    Hello,

    @ben / @digitalchild have you had a chance to look into this?

    Many Thanks,
    Jawad

    #27260
    WC Vendors Support
    Participant

    We’re fast, but not that fast. 😉 We’ll push out an update with the fixes once ready.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.