VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: RonaldB on February 05, 2021, 21:52:34 PM

Title: The each() function is deprecated.
Post by: RonaldB on February 05, 2021, 21:52:34 PM
Good evening, I get the following message with the categories:

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /data/www/speelgoedbaas.com/www/templates/theon/html/com_virtuemart/category/default.php on line 190

Line 190 shows the following :

while(list($key, $val) = each($styleSheets)){
                  echo "<li class='".$val["class"]."'><a href='".JURI::base(true)."/templates/". $getTemplateName ."/productsview.php?SETSTYLE=".$key."' title='".$val["title"]."'>".$val["text"]."</a></li>";

               }
               ?>
               </ul>

I do not know what to do. There are several topics on this forum, but I don't know which one is the solution.
Title: Re: The each() function is deprecated.
Post by: PRO on February 05, 2021, 21:58:33 PM
its in your template

https://www.virtuemarttemplates.net/virtuemart-templates/theon-shop-virtuemart-template.html