WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Price Table] Receiving foreach () error

[Plugin: Price Table] Receiving foreach () error

Viewing 3 replies - 1 through 3 (of 3 total)
  • Fixed myself. Changed line 12 from

    foreach($column['features'] as $j => $feature) :
    
    to
    foreach ( (array)$column['features'] as $j => $feature) :
    Plugin Author Greg Priday

    @gpriday

    Your way of fixing this issue is much neater than mine. I’ll push the update now. Thanks!

    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.