Who Sees Ads Errors

I get the following errors on my site with the plugin Who Sees Ads for WPMU that I downloaded from here:

Warning: Invalid argument supplied for foreach() in /home/blogg/public_html/wp-content/mu-plugins/wp_ozh_whoseesads.php on line 461

Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/blogg/public_html/wp-content/mu-plugins/wp_ozh_whoseesads.php on line 855

Warning: Invalid argument supplied for foreach() in /home/blogg/public_html/wp-content/mu-plugins/wp_ozh_whoseesads.php on line 855

I only get the errors on one site. All other sites work fine.

Anyone have an idea why this happens? Could it be caused by some adcode that the plugin doesn’t really handle that well?

  • Mats
    • WPMU DEV Initiate

    Thanks Andrew for your reply. I haven’t removed any context myself, but they are not there anymore so something has happened. It was after I tried to make it work together with WP Super Cache something went wrong.

    To make the ad selection work on a cached page I needed to have a JavaScript execute the Who Sees Ads function. In Who Sees Ads I entered an iframe zone invocation code from my OpenX-installation.

    I could only make the iframe invocation work by adding backslashes in front of quotes. After that it seemed to work fine so I put it out on my production site and left it there. It wasn’t until early morning the next day I saw all the errors and all contexts was gone.

    Anyone has had the same experience or have an idea of what could have gotten wrong?