Title: error from the last update
Last modified: August 22, 2016

---

# error from the last update

 *  Resolved [alexbrj](https://wordpress.org/support/users/alexbrj/)
 * (@alexbrj)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/)
 * Hello,
 * Today, the All In One SEO Pack plugin was updated on my blog and now it shows
   an error message on each post permalink page:
 * “Warning: Invalid argument supplied for foreach() in /home/okpeople/www/wp-content/
   plugins/all-in-one-seo-pack/aioseop_class.php on line 3029”
 * An example: [http://www.okpeople.com.br/2015/01/7-tecnologias-vistas-primeiro-no-cinema/](http://www.okpeople.com.br/2015/01/7-tecnologias-vistas-primeiro-no-cinema/)
 * What’s the issue with this plugin, which always has worked very well, please?
 * [https://wordpress.org/plugins/all-in-one-seo-pack/](https://wordpress.org/plugins/all-in-one-seo-pack/)

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

 *  Thread Starter [alexbrj](https://wordpress.org/support/users/alexbrj/)
 * (@alexbrj)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709251)
 * this is the snippet of code where the error message is coming from:
 *     ```
       function clean_keyword_list( $keywords ) {
       		$small_keywords = array();
       		if ( !empty( $keywords ) )
       			foreach ( $keywords as $word ) {
       				$small_keywords[] = trim( $this->strtolower( $word ) );
       			}
       		return array_unique( $small_keywords );
       	}
       ```
   
 * Line 3029 is `foreach ( $keywords as $word ) {`
 * Can someone help me, please?
 *  Thread Starter [alexbrj](https://wordpress.org/support/users/alexbrj/)
 * (@alexbrj)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709276)
 * Uninstalled this plugin.
 *  [Peter Baylies](https://wordpress.org/support/users/pbaylies/)
 * (@pbaylies)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709334)
 * Hi Alex,
 * We’ll be releasing a patch for this, try using this patched function instead 
   and see if it fixes the issue:
 *     ```
       function clean_keyword_list( $keywords ) {
       		$small_keywords = array();
       		if ( !is_array( $keywords ) ) $keywords = $this->keyword_string_to_list( $keywords );
       		if ( !empty( $keywords ) )
       			foreach ( $keywords as $word ) {
       				$small_keywords[] = trim( $this->strtolower( $word ) );
       			}
       		return array_unique( $small_keywords );
       }
       ```
   
 *  [slivchak](https://wordpress.org/support/users/slivchak/)
 * (@slivchak)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709384)
 * Brilliant! It works! Thanks so much for the quick tun around.
    This plugin’s 
   pretty kick @$$ too!
 * Cheers,
    Rob
 *  [Arief Mardianto](https://wordpress.org/support/users/btxaja/)
 * (@btxaja)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709387)
 * This is my problem, I will try 🙂
 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709396)
 * Hi Arief,
 * Please let us know if it works or doesn’t work for you.
 *  [lagosleo](https://wordpress.org/support/users/lagosleo/)
 * (@lagosleo)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709416)
 * It works! Thanks
 *  [xlerate](https://wordpress.org/support/users/xlerate/)
 * (@xlerate)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709417)
 * Hi,
 * Is an update rolling out for this plugin?
    The last update broke something on
   my website “aioseop class.php on line 3029” Can I roll back the install?
 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709418)
 * The bug fix release for this will be out today.
 *  [xlerate](https://wordpress.org/support/users/xlerate/)
 * (@xlerate)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709419)
 * Awesome news [@wpsmort](https://wordpress.org/support/users/wpsmort/).
    Thank
   you.

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

The topic ‘error from the last update’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

## Tags

 * [foreach](https://wordpress.org/support/topic-tag/foreach/)
 * [invalid argument](https://wordpress.org/support/topic-tag/invalid-argument/)

 * 10 replies
 * 7 participants
 * Last reply from: [xlerate](https://wordpress.org/support/users/xlerate/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/error-from-the-last-update/#post-5709419)
 * Status: resolved