Page 1 of 1
Warning: in_array() expects parameter 2 to be array,
Posted: 10 Apr 2017, 10:59
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
Re: Warning: in_array() expects parameter 2 to be array,
Posted: 10 Apr 2017, 12:10
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