PHP警告:为foreach()提供的参数无效-门式插件

PHP警告:为foreach()提供的参数无效-门式插件,php,wordpress,foreach,Php,Wordpress,Foreach,我几天前收到了这个错误日志 PHP Warning: Invalid argument supplied for foreach() in /home/karatm/public_html/wp-content/plugins/gantry/bugfixes.php on line 52<br> PHP Warning: Invalid argument supplied for foreach() in /home/karatm/public_html/wp-content/p

我几天前收到了这个错误日志

PHP Warning:  Invalid argument supplied for foreach() in /home/karatm/public_html/wp-content/plugins/gantry/bugfixes.php on line 52<br>
PHP Warning:  Invalid argument supplied for foreach() in /home/karatm/public_html/wp-content/plugins/gantry/bugfixes.php on line 52<br>
PHP Warning:  Invalid argument supplied for foreach() in /home/karatm/public_html/wp-content/plugins/gantry/bugfixes.php on line 102<br>
这是bugfixes.php的第102行:

foreach($sidebar_contents as $sidebar_contents_id => &$sidebar_widget_instance)
foreach ($override_sidebar as $position => &$sbw_instances)
这个错误意味着什么,我如何修复它

(如果有人能帮助我,我可以将完整的.php文件发送给他)

感谢foreach($position=>和$sbw\u实例覆盖侧栏) 尝试删除& 试试这个
foreach($position=>$sbw\u实例覆盖侧栏)

我想说侧栏中没有任何内容,这就是原因。这可能只是插件开发人员编写的错误代码。具有讽刺意味的是,
bugfixes.php
中的bug。我想知道该会话是否至少应该正确处理该案例(例如,检查$sidebar_内容是否实际上是一个数组?)