Jump to content

Class 'Supplier' not found


Recommended Posts

Bonjour,

 

Après avoir transféré mon site en local vers le serveur, j'ai rencontré quelques difficultés que j'ai pu résoudre mais là je suis confrontée à une erreur que je n'arrive pas à solutionner.

Lorsque je veux aller dans mes catégories, une page blanche s'affiche. J'ai donc fait la manipulation afin d'avoir le rapport d'erreur, voila ce qui s'affiche : 

Fatal error: Class 'Supplier' not found in .../www/controllers/front/CategoryController.php on line 132 

C'est un fichier que je n'ai jamais manipulé et je ne sais pas à quoi correspond la class 'supplier'.

Voilà le bout de code qui semble poser problème.

$this->context->smarty->assign(array(
			'category' => $this->category,
			'description_short' => Tools::truncateString($this->category->description),
			'products' => (isset($this->cat_products) && $this->cat_products) ? $this->cat_products : null,
			'id_category' => (int)$this->category->id,
			'id_category_parent' => (int)$this->category->id_parent,
			'return_category_name' => Tools::safeOutput($this->category->name),
			'path' => Tools::getPath($this->category->id),
			'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
			'categorySize' => Image::getSize(ImageType::getFormatedName('category')),
			'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')),
			'thumbSceneSize' => Image::getSize(ImageType::getFormatedName('m_scene')),
			'homeSize' => Image::getSize(ImageType::getFormatedName('home')),
			'allow_oosp' => (int)Configuration::get('PS_ORDER_OUT_OF_STOCK'),
			'comparator_max_item' => (int)Configuration::get('PS_COMPARATOR_MAX_ITEM'),
			'suppliers' => Supplier::getSuppliers()
		));

Merci d'avance pour votre aide

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...