Jump to content

Root category must be an integer value


Recommended Posts

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 value
at 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. }

 

Was kann ich hier machen?

Link to comment
Share on other sites

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

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

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...