Jump to content

Edit History

Lambu

Lambu

Hello,

Since I bought and installed a new theme, I have the ERROR 500 on my website home page (all the other pages such as articles and even my back office works).

My error code says: 

Invalid category vars
at line 388 in file classes/Link.php

383. if (is_array($category) && isset($category['id_category'])) {
384. $category = new Category($category, $idLang);
385. } elseif ((int) $category) {
386. $category = new Category((int) $category, $idLang);
387. } else {
388. throw new PrestaShopException('Invalid category vars');
389. }
390. }
391.
392. return $category;
393. }

 

Does anyone knows what to do in this case?

Lambu

Lambu

Hello,

Since I bought and installed an new theme, I have the ERROR 500 on my website home page (all the other pages such as articles and even my back office works).

My error code says: 

Invalid category vars
at line 388 in file classes/Link.php

383. if (is_array($category) && isset($category['id_category'])) {
384. $category = new Category($category, $idLang);
385. } elseif ((int) $category) {
386. $category = new Category((int) $category, $idLang);
387. } else {
388. throw new PrestaShopException('Invalid category vars');
389. }
390. }
391.
392. return $category;
393. }

 

Does anyone knows what to do in this case?

×
×
  • Create New...