Topic: Invalid argument supplied for foreach() in /index.php on line 176

Hi!

I have today several errors like this in my apache2 error.log :
PHP Warning:  Invalid argument supplied for foreach() in /myboard/index.php on line 176 :

// There are new posts in this forum, but have we read all of them already?
176        foreach ($new_topics[$cur_forum['fid']] as $check_topic_id => $check_last_post)
            {
                if ((empty($tracked_topics['topics'][$check_topic_id]) || $tracked_topics['topics'][$check_topic_id] < $check_last_post) && (empty($tracked_topics['forums'][$cur_forum['fid']]) || $tracked_topics['forums'][$cur_forum['fid']] < $check_last_post))
                {
                    $forum_page['item_status']['new'] = 'new';
                    $forum_page['item_title']['status'] = '<small>'.sprintf($lang_index['Forum has new'], '<a href="'.forum_link($forum_url['search_new_results'], $cur_forum['fid']).'" title="'.$lang_index['New posts title'].'">'.$lang_index['Forum new posts'].'</a>').'</small>';

                    break;
                }
            }

Do you know the cause of this error?

Thank you!

Re: Invalid argument supplied for foreach() in /index.php on line 176

I think it extensions that not updated for PunBB 1.4. Maybe subforums.

Re: Invalid argument supplied for foreach() in /index.php on line 176

Thank you for your answer. I don't have subforums extension and I did not install extensions recently (except pun_pm notifier but this error appeared before).

Re: Invalid argument supplied for foreach() in /index.php on line 176

if you add:

define('FORUM_DISABLE_HOOKS', 1);

to your config.php, do you still get the error?