Warning: in_array() expects parameter 2 to be array,

Phoca Cart - complex e-commerce extension
DAVISCopperfield
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 10 Apr 2017, 10:52

Warning: in_array() expects parameter 2 to be array,

Post by DAVISCopperfield »

Warning: in_array() expects parameter 2 to be array, string given in /data/opravyod/html/administrator/components/com_phocacart/libraries/phocacart/statistics/hits.php on line 28

Verze

3.0.0 RC5

Joomla 3,6,5

Hello, may I ask what causes an error message on the frontpage - installed on a clean jomlu 3.6.5 and final clean installation phocacart.

Thank you David
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: in_array() expects parameter 2 to be array,

Post by Jan »

Hi, open this file:

EDIT
FROM:

Code: Select all

<field name="additional_hits" default="" type="radio" class="btn-group btn-group-yesno" label="COM_PHOCACART_FIELD_ADDITIONAL_HITS_LABEL" description="COM_PHOCACART_FIELD_ADDITIONAL_HITS_DESC" multiple="true" >
	<option value="1">COM_PHOCACART_PRODUCT_VIEW</option>
	<option value="2">COM_PHOCACART_SEARCH_TERM</option>
</field>
TO:

Code: Select all

<field name="additional_hits" default="" type="list" label="COM_PHOCACART_FIELD_ADDITIONAL_HITS_LABEL" description="COM_PHOCACART_FIELD_ADDITIONAL_HITS_DESC" multiple="true" >
	<option value="1">COM_PHOCACART_PRODUCT_VIEW</option>
	<option value="2">COM_PHOCACART_SEARCH_TERM</option>
</field>
and save, save the Options again and it should be Ok now.

Please let me know if it works, if yes, I will set it in next version.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply