Hi all,

I am testing skins using the latest XAMPP which runs PHP 7.2.1.
When trying to edit a page, I get the error

Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\pmwiki-2.2.106\scripts\forms.php on line 109

This refers to

##  convert any positional arguments to named arguments
  $posnames = @$InputTags[$type][':args'];
  if (!$posnames) $posnames = array('name', 'value');
  while (count($posnames) > 0 && count(@$args['']) > 0) {
    $n = array_shift($posnames);
    if (!isset($args[$n])) $args[$n] = array_shift($args['']);
  }

specifically the line
  if (!$posnames) $posnames = array('name', 'value');

Is there any fix that is compatible with older PHP versions?


moni k.

_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to