I just upgraded a Server to PHP 5.3 and that seemed to have broken phx:mo:
Error: strlen() expects parameter 1 to be string, array given
Error type/ Nr.: Warning - 2
File: /www/intranet-businessparc.ch/assets/plugins/phx/phx.parser.class.inc.php
Line: 209
Line 209 source: $grps = (strlen($modifier_value) > 0 ) ? explode(",",$modifier_value[$i]) :array();
I think PHP 5.3 is stricter with types. $modifier_value seems to be an array that is passed to strlen.
I changed line 209 in phx.parser.class.inc.php from:
$grps = (strlen($modifier_value) > 0 ) ? explode(",",$modifier_value[$i]) :array();
to:
$grps = (strlen($modifier_value[$i]) > 0 ) ? explode(",",$modifier_value[$i]) :array();
Now everything seems to be working again.
Could anyone please confirm, that this is actually the right fix to the problem?
Thanks,
Sascha