Title: [Plugin: AdRotate] Function Error
Last modified: August 19, 2016

---

# [Plugin: AdRotate] Function Error

 *  [esteban307](https://wordpress.org/support/users/esteban307/)
 * (@esteban307)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-adrotate-function-error/)
 * AdRotate is a banner management plugin for WordPress. After x amount of exposures,
   it is not supposed to display an Ad. I created 1 ad to test it out. It worked
   initially, but now I get the following error on my front page:
 * Warning: array_rand() [function.array-rand]: Second argument has to be between
   1 and the number of elements in the array in /home/content/34/6458134/html/wp-
   content/plugins/adrotate/adrotate-functions.php on line 50
 * Any ideas? I have set the banner to expire after 1000 exposures.
 * TIA

The topic ‘[Plugin: AdRotate] Function Error’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [esteban307](https://wordpress.org/support/users/esteban307/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-adrotate-function-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
