Warning: Invalid argument supplied for foreach() ERROR

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Apr 14, 2013 6:19 am
Reply with quote
Report this post
Hi

I get this errors n top of articles if I open them through the Latest articles and Popular articles modules, that are Joomla standard modules

Warning: Invalid argument supplied for foreach() in /home/u/u5912973/www/templates/gk_bikestore/html/com_content/article/default.php on line 25

If I remove the code
Code: Select all
foreach($attribs as $key => $value) {

    if($value != null) {

       $params->set($key, $value);

    }

}


It disapear, but there must be a more correct way to solve it. I already updated to the last template version 3.7

Regards/Steve
User avatar
Junior Boarder

Konrad M
Mon Apr 15, 2013 8:48 am
Reply with quote
Report this post
User avatar


cron