druckshop Posted April 18, 2016 Share Posted April 18, 2016 Hallo, ich habe bei Strato den Presta Shop installiert und auch auf das neuste update aktualisiert. Aber wenn ich auf Artikel im Backoffice gehe kommt folgende Fehlermeldung: [PrestaShopException]Root category must be an integer valueat line 212 in file classes/helper/HelperTreeCategories.php 207. }208.209. public function setRootCategory($value)210. {211. if (!Validate::isInt($value)) {212. throw new PrestaShopException('Root category must be an integer value');213. }214.215. $this->_root_category = $value;216. return $this;217. } HelperTreeCategoriesCore->setRootCategory - [line 2504 - controllers/admin/AdminProductsController.php] - [1 Arguments] AdminProductsControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 58 - admin/index.php] Was kann ich hier machen? Link to comment Share on other sites More sharing options...
druckshop Posted April 20, 2016 Author Share Posted April 20, 2016 Kann denn hier keiner Helfen? Link to comment Share on other sites More sharing options...
eleazar Posted April 20, 2016 Share Posted April 20, 2016 Irgendwie scheint dir beim Upgrade die Start-Kategorie abhanden gekommen zu sein. Darauf deutet jedenfalls die Fehlermeldung hin. Es kann auch sein, dass die Start-Kategorie zwar eine ID, aber keinen Namen hat. Auch dann erscheint die Fehlermeldung. Unterstützt denn Strato PS 1.6.1.5? Aktuell bieten die doch noch 1.6.1.4 an. Link to comment Share on other sites More sharing options...
eleazar Posted April 20, 2016 Share Posted April 20, 2016 Du kannst aber mal versuchen, PrestaShop auszutricksen, und zwar mit folgendem Override, das du unter dem Namen CategoryController.php in den Ordner /override/controllers/front/ per FTP hochlädst, und zwar mit folgendem Dateiinhalt: <?phpclass CategoryController extends CategoryControllerCore{ public function canonicalRedirection($canonicalURL = '') { if (Tools::getValue('live_edit')) return ; if (!Validate::isLoadedObject($this->category) || !$this->category->inShop() || !$this->category->isAssociatedToShop() || $this->category->id == Configuration::get('PS_ROOT_CATEGORY')) { $this->redirect_after = '404'; $this->redirect(); } if (!Tools::getValue('noredirect') && Validate::isLoadedObject($this->category)) FrontController::canonicalRedirection($this->context->link->getCategoryLink($this->category)); [spam-filter] 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