Title: [Plugin: Price Table] Receiving foreach () error
Last modified: August 20, 2016

---

# [Plugin: Price Table] Receiving foreach () error

 *  [Charla](https://wordpress.org/support/users/webgirl/)
 * (@webgirl)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-price-table-receiving-foreach-error/)
 * Warning: Invalid argument supplied for foreach() in /plugins/pricetable/pricetable.
   phtml on line 12
 * [http://wordpress.org/extend/plugins/pricetable/](http://wordpress.org/extend/plugins/pricetable/)

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

 *  Thread Starter [Charla](https://wordpress.org/support/users/webgirl/)
 * (@webgirl)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-price-table-receiving-foreach-error/#post-2423260)
 * Fixed myself. Changed line 12 from
 *     ```
       foreach($column['features'] as $j => $feature) :
   
       to
       foreach ( (array)$column['features'] as $j => $feature) :
       ```
   
 *  Plugin Author [Greg – SiteOrigin](https://wordpress.org/support/users/gpriday/)
 * (@gpriday)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-price-table-receiving-foreach-error/#post-2423604)
 * Your way of fixing this issue is much neater than mine. I’ll push the update 
   now. Thanks!
 *  [mrplan5](https://wordpress.org/support/users/mrplan5/)
 * (@mrplan5)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-price-table-receiving-foreach-error/#post-2423652)
 * I just migrated over a site from one URL to another. No issues except with your
   plugin. here is the foreach() error. I tried using the above fix but it will 
   only fix the “warning” and not the “fatal error:”
 * Warning: Invalid argument supplied for **foreach()** in /plugins/pricetable/pricetable.
   php on line 214
 * Fatal error: Cannot use string offset as an array in /plugins/pricetable/pricetable.
   php on line 222

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

The topic ‘[Plugin: Price Table] Receiving foreach () error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pricetable.svg)
 * [Price Table](https://wordpress.org/plugins/pricetable/)
 * [Support Threads](https://wordpress.org/support/plugin/pricetable/)
 * [Active Topics](https://wordpress.org/support/plugin/pricetable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pricetable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pricetable/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [mrplan5](https://wordpress.org/support/users/mrplan5/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-price-table-receiving-foreach-error/#post-2423652)
 * Status: not resolved