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: https://localhost/domain.com
Site URL: https://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: https://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
- The topic ‘Warning: in_array() expects parameter (errorr)’ is closed to new replies.