Forums

Samecat (3 posts)

  1. wasnotwas
    Member
    Posted 7 years ago #

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

  2. davidchait
    Member
    Posted 7 years ago #

    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

  3. wasnotwas
    Member
    Posted 7 years ago #

    Thanks works like a dream now.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.