mkinternet Posted July 15, 2022 Share Posted July 15, 2022 (edited) Hello. I upgraded PS from 1.6.1.23 to 1.7.8.6. When i try to add new category in backoffice i got error "Invalid category vars" - switching theme to classic didn't help - i have no overrides - i can edit category in classes/Link.php (line 405) if (isset($category['id_category'])) { $category = new Category($category['id_category'], $idLang); } elseif ((int) $category) { $category = new Category((int) $category, $idLang); } else { throw new PrestaShopException('Invalid category vars'); } } return $category; } LinkCore->getCategoryObject(0, 1) in classes/Link.php (line 467) LinkCore->getCategoryLink(0, '{friendly-url}') in src/Adapter/Shop/Url/CategoryProvider.php (line 60) CategoryProvider->getUrl(0, '{friendly-url}') in src/PrestaShopBundle/Controller/Admin/Sell/Catalog/CategoryController.php (line 194) CategoryController->createAction(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151) HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68) HttpKernel->handle(object(Request), 1, false) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200) Edited July 15, 2022 by mkinternet (see edit history) Link to comment Share on other sites More sharing options...
mkinternet Posted July 15, 2022 Author Share Posted July 15, 2022 I found the solution. URL rewrite for category was {id}-{rewrite}{meta_keywords} i changed it to default {id}-{rewrite} https://github.com/PrestaShop/PrestaShop/issues/25871 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