Title: Warning: in_array() expects parameter (errorr)
Last modified: April 15, 2017

---

# Warning: in_array() expects parameter (errorr)

 *  [waleskam](https://wordpress.org/support/users/waleskam/)
 * (@waleskam)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-errorr/)
 * Hello,
 * I’m using Jigoshop Version 2.0.10.2, I have created a product sample, after entering
   the product and “purchase” (it’s in local enviroment) on the top of the page 
   I get:
 * `Warning: in_array() expects parameter 2 to be array, null given in C:\AppServ\
   www\domain.com\wp-content\plugins\jigoshop-ecommerce\src\Jigoshop\Shipping\AdvancedFlatRate.
   php on line 89`
 * I have google, read over and over several documents with no information or is
   information regarding something else or others advising to just hide the error.
 * when I open the sourcecode for the “AdvancedFlatRate.php” in wordpad i get to
   this code:
 *     ```
               return $this->settings['enabled'] && ($this->settings['available_for'] === 'all' || in_array($customer->getShippingAddress()->getCountry(),
                           $this->settins['countries']));
       ```
   
 * the line 89 is $this->settings[‘countries’])); everything before is on line 88
 * this is the report:
 * ### WordPress Environment ###
 * Home URL: [http://localhost/domain.com](http://localhost/domain.com)
    Site URL:
   [http://localhost/domain.com](http://localhost/domain.com) Jigoshop Version: 
   2.0.10.2 Jigoshop Database Version: Log Directory Writable: Yes WP Version: 4.7.3
   WP Multisite: No WP Memory Limit: 40 MB WP Debug Mode: No Language: es_GT
 * ### Server Environment ###
 * Server Info: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/5.6.26
    PHP Version: 5.6.26
   PHP Post Max Size: 200 MB PHP Time Limit: 200 MB PHP Max Input Vars: 1000 SUHOSIN
   Installed: No eAccelerator: No APC: No OpCache: No Short Open Tag: No Allow URL
   fopen: Yes Session: Yes Cookie Path: / Save Path: C:/Users/xxxxx/AppData/Local/
   Temp Use Cookies: Yes Use Only Cookies: Yes Max Upload Size: 200 MB Default Timezone:
   UTC fsockopen/cURL: Yes SoapClient: No Remote Post: Yes Remote Get: Yes
 * ### Server Locale ###
 * Decimal Point: .
    Thousands Separator: No Monetary Decimal Point: No Monetary
   Thousands Separator: No
 * ### Active Plugins (10) ###
 * Cherry Bgslider Plugin: by Cherry Team. – 1.0
    Cherry Lazy Load Boxes Plugin:
   by Cherry Team. – 1.1 Cherry Parallax Plugin: by Cherry Team. – 1.1.0 Cherry 
   Plugin: by Cherry Team. – 1.2.7 Contact Form 7: by Takayuki Miyoshi – 4.7 Duplicator:
   by Snap Creek – 1.2.4 Insert Headers and Footers: by WPBeginner – 1.4.2 Jigoshop
   eCommerce: by Jigoshop – 2.0.10.2 Jigoshop Product Add-ons: by Jigoshop Ltd –
   2.0 MotoPress Content Editor: by MotoPress – 2.0.3
 * ### Settings ###
 * Force SSL: No
    Shipping Enabled: Yes Shipping Enabled: GTQ(Q) Currency Position:
   Q 0.00 Thousand Separator: , Decimal Separator: . Number of Decimals: 2
 * ### Jigoshop Pages ###
 * Shop Base: #2234
    Cart: #2235 Checkout: #2236 Thank You: #2237 My account: #2238
   Terms: No
 * ### Theme ###
 * Name: theme54860 (food delivery)
    Version: 3.1.2 Author URL: [http://info.template-help.com/help/](http://info.template-help.com/help/)
   Child Theme: Yes Parent Theme Name: cherry Parent Theme Version: 3.1.5 Parent
   Theme Author URL: //info.template-help.com/help/
 * ### Templates ###
 * No Overrides:
 * Can someone please help me? I’m not a developer, just a learner, thank you in
   advance

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

 *  Thread Starter [waleskam](https://wordpress.org/support/users/waleskam/)
 * (@waleskam)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-errorr/#post-9032382)
 * I would like to add te code screenshot [https://snag.gy/hEVTjK.jpg](https://snag.gy/hEVTjK.jpg)
 *  Plugin Author [Jigoshop Support – Marcin](https://wordpress.org/support/users/azrielnefezen/)
 * (@azrielnefezen)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-errorr/#post-9043843)
 * Could you contact me at [support@jigoshop.com](https://wordpress.org/support/topic/warning-in_array-expects-parameter-errorr/support@jigoshop.com?output_format=md)?
   I’ve spotted something strange in the code you sent me 😉

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

The topic ‘Warning: in_array() expects parameter (errorr)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jigoshop_655549.svg)
 * [Jigoshop](https://wordpress.org/plugins/jigoshop/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jigoshop/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jigoshop/)
 * [Active Topics](https://wordpress.org/support/plugin/jigoshop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jigoshop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jigoshop/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jigoshop Support – Marcin](https://wordpress.org/support/users/azrielnefezen/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/warning-in_array-expects-parameter-errorr/#post-9043843)
 * Status: not resolved