djbello Posted May 17, 2012 Share Posted May 17, 2012 Bonjour, Lorsque je souhaite "Ajouter un produit" , l'éditeur de texte n'apparait plus ni les onglets, j'ai cette erreur là : Call to undefined method Category::getCategoryInformations() in /tabs/AdminProducts.php on line 2757 Savez-vous d'ou cela peut venir? ------------------------------------------------------------------------------------------------------------------------------------------------- Hi, When i want to "add a product", the text editor doesn't appear, i have this error : Call to undefined method Category::getCategoryInformations() in /tabs/AdminProducts.php on line 2757 Can i have any help? Thank you Link to comment Share on other sites More sharing options...
coeos.pro Posted May 18, 2012 Share Posted May 18, 2012 Salut, essaye d'ouvrir le fichier classes/Category.php et cherches la fonction getCategoryInformations et dit nous si tu la trouve ou pas. Link to comment Share on other sites More sharing options...
djbello Posted May 22, 2012 Author Share Posted May 22, 2012 Salut Coeos.pro, je suis allé faire un tour dans Category.php, je n'ai pas trouvé la fonction getCategoryInformations! Doit elle etre à un emplacement (ligne) précis? Merci Link to comment Share on other sites More sharing options...
coeos.pro Posted May 22, 2012 Share Posted May 22, 2012 tout à la fin du fichier ligne 1053 pour la version 1.4.7 : /** * * @param Array $ids_category * @param int $id_lang * @return Array */ public static function getCategoryInformations($ids_category, $id_lang = null) { if ($id_lang === null) { global $cookie; $id_lang = $cookie->id_lang; } if (!is_array($ids_category) || !sizeof($ids_category)) return; $categories = array(); $results = Db::getInstance(_PS_USE_SQL_SLAVE_)->ExecuteS(' SELECT c.`id_category`, cl.`name`, cl.`link_rewrite`, cl.`id_lang` FROM `'._DB_PREFIX_.'category` c LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (c.`id_category` = cl.`id_category`) WHERE cl.`id_lang` = '.(int)$id_lang.' AND c.`id_category` IN ('.implode(',', array_map('intval', $ids_category)).') '); foreach($results as $category) $categories[$category['id_category']] = $category; return $categories; } Retransfert le fichier complet via FTP Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now