WordPress.org

Forums

WooCommerce - Table Rates
[resolved] Get this error after adding product (4 posts)

  1. DorisB
    Member
    Posted 1 year ago #

    Great plugin. I keeping getting the following error at the top of the checkout page after adding a product.

    Warning: in_array() expects parameter 2 to be array, string given in /home/******/public_html/*****.com/wp-content/plugins/woocommerce-table-rates/tablerates.php on line 185

    http://wordpress.org/plugins/woocommerce-table-rates/

  2. rpletcher
    Member
    Plugin Author

    Posted 1 year ago #

    The issue that you are having should be resolved. Let me know if you continue to have issues, if you do contact me directly so I can review what is happening on your site.

  3. hejeva2
    Member
    Posted 1 year ago #

    I just installed woocommerce 2.0.14 and this plugin. Did some basic configuration and get this same error when I am on cart page.
    "Warning: in_array() expects parameter 2 to be array, string given in C:\wamp\www\wordpress-3.6\wp-content\plugins\woocommerce-table-rates\tablerates.php on line 189" I was setting up the cart to only sell within US.

  4. rpletcher
    Member
    Plugin Author

    Posted 1 year ago #

    Currently I am working on a fix for this issue. It appears that there were two issues and I only resolved one. If you are getting this issue you will need to setup the Local Countries field to the country that you are in. You will do this even if you are not shipping to an international address it does require that there is a local country.

    You can follow this issue at my support page at the following address.
    https://ryanpletcher.com/support/topic/warning-in_array-expects-parameter-2-to-be-array

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - Table Rates
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic