Hi
have just installed Samecat plugin and get the following error:
Call to undefined function: array_fill() . . .
Can anyone help me out please.
James
Hi
have just installed Samecat plugin and get the following error:
Call to undefined function: array_fill() . . .
Can anyone help me out please.
James
You must have a PHP before 4.2.0, which is pretty rare at this point. As a temporary workaround, add this to the top of the samecat PHP file (>after< the <?PHP line at the top...):
if (!function_exists('array_fill'))
{
function array_fill($start, $count, $fill)
{
$result = array();
for ($i=$start; $i<=$start+$count; $i++)
$result[$i] = $fill;
return($result);
}
}
A future version of CG-Samecat in the CG-PowerPack will have the workaround in place.
-d
Thanks works like a dream now.
This topic has been closed to new replies.