I did some digging.
@ everyone who sees the “Error, no Ad ID set! Check your syntax!” error.
Look if your location where the advert is expected has the Ad ID configured. This means widgets mainly i think. The *only* way I can find to reproduce this error is if the Ad ID is indeed missing. This is ofcourse an unintentional event but not something AdRotate does by itself.
@ Everyone seeing the ” error: Warning: in_array() expects parameter 2 to be array, null given in [removed]/public_html/wp-content/plugins/adrotate/adrotate-functions.php on line 186″ error.
This error shouldn’t been showing if there is a working ad for the location. However, i found that if all ads are expired for that location you can see the error in some cases.
The fix will be in the next version. For those who do not want to wait for that.
Add this line to adrotate-functions.php on line 107 (and exactly there):
$current = array();
So it’s directly below:
$prefix = $wpdb->prefix;
Looking like this:
$prefix = $wpdb->prefix;
$current = array();
This will prevent the error from showing.