Title: Samecat
Last modified: August 18, 2016

---

# Samecat

 *  [wasnotwas](https://wordpress.org/support/users/wasnotwas/)
 * (@wasnotwas)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/samecat/)
 * 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)

 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/samecat/#post-76346)
 * 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](https://wordpress.org/support/users/wasnotwas/)
 * (@wasnotwas)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/samecat/#post-76366)
 * Thanks works like a dream now.

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

The topic ‘Samecat’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [wasnotwas](https://wordpress.org/support/users/wasnotwas/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/samecat/#post-76366)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
