• Hi
    have just installed Samecat plugin and get the following error:
    Call to undefined function: array_fill() . . .
    Can anyone help me out please.
    James

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    Thread Starter wasnotwas

    (@wasnotwas)

    Thanks works like a dream now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Samecat’ is closed to new replies.