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)