• I get the error repeated here multiple times already.

    something went wrong. we could not make a connection with the server.

    While trying to make any imports. I checked the error log in /wp-admin and this is the error being generated and probably the cause of the issue:

    [30-Jun-2017 18:00:27 UTC] product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action('wp_ajax_woocsv_export'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, Allaerd\Export\ajaxExport->start, Allaerd\Export\ajaxExport->exportProduct, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.

    I found this relevant link but I do not know how to go about fixing the problem which might be that:

    The product_type property is deprecated. Use get_type() to get internal type.
    
    So you need to change this: $product->product_type; to this: $product->get_type();
  • The topic ‘Cannot connect to server, likely due to this error message’ is closed to new replies.