Bambam58 Posted August 10, 2018 Share Posted August 10, 2018 Hello i am having a problem that i cant fix. When i go to sitemap on my website i get an 500 error. In the degug mode the next message apears [PrestaShopException] Invalid category varsat line 374 in file classes/Link.php 369. if (is_array($category) && isset($category['id_category'])) { 370. $category = new Category($category, $idLang); 371. } elseif ((int) $category) { 372. $category = new Category((int) $category, $idLang); 373. } else { 374. throw new PrestaShopException('Invalid category vars'); 375. } 376. } 377. return $category; 378. } 379. LinkCore->getCategoryObject - [line 427 - classes/Link.php] - [2 Arguments] LinkCore->getCategoryLink - [line 315 - classes/Category.php] - [2 Arguments] CategoryCore->recurseLiteCategTree - [line 298 - classes/Category.php] - [5 Arguments] CategoryCore->recurseLiteCategTree - [line 58 - controllers/front/SitemapController.php] - [5 Arguments] SitemapControllerCore->getCategoriesLinks - [line 47 - controllers/front/SitemapController.php] SitemapControllerCore->initContent - [line 253 - classes/controller/Controller.php] ControllerCore->run - [line 428 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] How can i fix this? Anyone an idee? My website is https://www.lapalma-kralen.nl Link to comment Share on other sites More sharing options...
Elavweb Posted May 27, 2020 Share Posted May 27, 2020 Hello, did you solve the issue? 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