in_array() expects parameter 2 to be array, expautospropositions.php on line 50

More
5 months 4 weeks ago - 5 months 4 weeks ago #33953 by Grusha
Grusha created the topic: in_array() expects parameter 2 to be array, expautospropositions.php on line 50

Warning: in_array() expects parameter 2 to be array, string given in your_site\plugins\system\expautospropositions\expautospropositions.php on line 50

If you have this warning error, then you can:
1)Go to Admin Area -> Extensions -> Plugins -> EXP Autos Pro - Module Positions
Open this plugin and for field "Components" select min 1 component.


OR/AND

2)Go to file your_site\plugins\system\expautospropositions\expautospropositions.php on line 50
Search this code
if (in_array($getinptoption,$poscom)) {
Change to
if (is_array($poscom) && in_array($getinptoption,$poscom)) {
Attachments:
Last Edit: 5 months 4 weeks ago by Grusha.
Sorry for my English.

Please Log in or Create an account to join the conversation.