comprarfacil Posted December 12, 2012 Share Posted December 12, 2012 Hola. he instalado un módulo que viene por defecto con el theme leo_sportshoes que se llama lofmanufcturescroll y me da el siguiente error: Warning: Invalid argument supplied for foreach() in /usr/home/AhA4Ga6qfAws/comprarfacil.com/web/modules/lofmanufacturerscroll/lofmanufacturerscroll.php on line 303 en esa línea justo tengo lo siguiente: $manufacturers = array(); foreach($id_manufacturers as $id_manufacturer){ $manufacturer = new Manufacturer($id_manufacturer,$cookie->id_lang); if(Validate::isLoadedObject($manufacturer)){ $manufacturers[$id_manufacturer]['link'] = $link->getManufacturerLink($id_manufacturer,$manufacturer->link_rewrite,$cookie->id_lang); $image_type = Configuration::get( $this->param_prefix.'_image_type' ); $id_images = (!file_exists(_PS_MANU_IMG_DIR_.'/'.$id_manufacturer.'-'.$image_type.'.jpg')) ? Language::getIsoById((int)$cookie->id_lang).'-default' : $id_manufacturer; $manufacturers[$id_manufacturer]['linkIMG'] = _THEME_MANU_DIR_.$id_images.'-'.$image_type.'.jpg'; $manufacturers[$id_manufacturer]['id_manufacturer'] = $id_manufacturer; $manufacturers[$id_manufacturer]['name'] = $manufacturer->name; agradecería una ayuda porque me sale el warning en la parte de arriba de la web. Gracias Link to comment Share on other sites More sharing options...
Recommended Posts