Title: WP125 upgrade problem
Last modified: August 19, 2016

---

# WP125 upgrade problem

 *  [coolbeansdude51](https://wordpress.org/support/users/coolbeansdude51/)
 * (@coolbeansdude51)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/)
 * I upgraded my WP125 plugin to 1.3.0 and I get these errors when the ads are displayed.
   You can view the problem at [http://startupstudent.com](http://startupstudent.com)
 * Not a huge deal … just wondering if anyone knows anything about this.
 *     ```
       Warning: Missing argument 1 for wp125_write_ads(), called in /home/coolbean/public_html/startup/wp-content/plugins/wp125/wp125.php on line 58 and defined in /home/coolbean/public_html/startup/wp-content/plugins/wp125/wp125.php on line 106
   
       Warning: Invalid argument supplied for foreach() in /home/coolbean/public_html/startup/wp-content/plugins/wp125/wp125.php on line 121
       ```
   

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/wp125-upgrade-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp125-upgrade-problem/page/2/?output_format=md)

 *  [bcotten](https://wordpress.org/support/users/bcotten/)
 * (@bcotten)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990482)
 * same problem for me. example: [http://www.highcountrymomsquad.com](http://www.highcountrymomsquad.com)
 * I bet it’s a typo mistake or something like that.
 *  [redwallhp](https://wordpress.org/support/users/redwallhp/)
 * (@redwallhp)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990485)
 * I will look into it.
 *  [redwallhp](https://wordpress.org/support/users/redwallhp/)
 * (@redwallhp)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990490)
 * I just tagged release 1.3.1. It should be available in 15 minutes or so.
 * Not quite a typo, but close enough. Forgot to account for the possibility that
   the wp125_write_ads() functions probably wouldn’t have a new optional argument
   passed to it 99% of the time… 🙂
 *  Thread Starter [coolbeansdude51](https://wordpress.org/support/users/coolbeansdude51/)
 * (@coolbeansdude51)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990581)
 * Still an issue.
 * `Warning: Invalid argument supplied for foreach() in /home/coolbean/public_html/
   startup/wp-content/plugins/wp125/wp125.php on line 121`
 * Check out my site [here](http://startupstudent.com)
 *  [redwallhp](https://wordpress.org/support/users/redwallhp/)
 * (@redwallhp)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990630)
 * Well, I’m flying blind here. I can’t reproduce the error myself, so I made some
   educated guesses and committed a 1.3.2 release that will *hopefully* fix it.
 *  [bcotten](https://wordpress.org/support/users/bcotten/)
 * (@bcotten)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990640)
 * This solved it for me. Thanks for the fast support.
 *  [edyrio](https://wordpress.org/support/users/edyrio/)
 * (@edyrio)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990663)
 * I up-grade and use 1.3.2 version of wp125, and the same problem Warning: Invalid
   argument supplied for foreach() in …/wp125/wp125.php on line 122.
 * Any idea?
 *  Thread Starter [coolbeansdude51](https://wordpress.org/support/users/coolbeansdude51/)
 * (@coolbeansdude51)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990667)
 * I just upgraded to 1.3.2
 * Everything is working great on my end!
 * Thanks for the awesome support and fast support!
 *  [ckohrman](https://wordpress.org/support/users/ckohrman/)
 * (@ckohrman)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990716)
 * I’m also using 1.3.2 and getting an error:
 * …/wp125/wp125.php on line 122
 * Using WordPress 2.7.1
 *  [redwallhp](https://wordpress.org/support/users/redwallhp/)
 * (@redwallhp)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990721)
 * [@edyrio](https://wordpress.org/support/users/edyrio/) and [@ckohrman](https://wordpress.org/support/users/ckohrman/):
   Try deleting the plugin directory and re-uploading the files.
 *  [ckohrman](https://wordpress.org/support/users/ckohrman/)
 * (@ckohrman)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990728)
 * I tried deleting and re-uploading the plugin, and I get this error:
 * Warning: Invalid argument supplied for foreach() in /../wp-content/plugins/wp125/
   wp125.php on line 145
 * PS- you and your plugin are awesome, thanks!
 *  [redwallhp](https://wordpress.org/support/users/redwallhp/)
 * (@redwallhp)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990732)
 * Well, I’ll look into it… It’s strange though that some people get the error, 
   and others don’t. Unfortunately, I’m the latter group.
 * My guess is some PHP configurations respond differently to some part of the plugin
   source.
 * What version of PHP are you running?
 *  [ckohrman](https://wordpress.org/support/users/ckohrman/)
 * (@ckohrman)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990737)
 * I’m running PHP 5.2.8
 *  [redwallhp](https://wordpress.org/support/users/redwallhp/)
 * (@redwallhp)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990743)
 * Hmm. My test box is running 5.2.5. We both have 5.2.x, so I don’t think the version
   itself is the problem…
 *  [redwallhp](https://wordpress.org/support/users/redwallhp/)
 * (@redwallhp)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/#post-990745)
 * Wait…how many *active* ads do you have right now? Do you not have any? Because
   that might be the source of the problem. If you add one, does the error go away?

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/wp125-upgrade-problem/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wp125-upgrade-problem/page/2/?output_format=md)

The topic ‘WP125 upgrade problem’ is closed to new replies.

## Tags

 * [upgrade problem](https://wordpress.org/support/topic-tag/upgrade-problem/)

 * 23 replies
 * 5 participants
 * Last reply from: [edyrio](https://wordpress.org/support/users/edyrio/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/wp125-upgrade-problem/page/2/#post-990766)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
