Hello friends!
I installed this module- https://www.nulledfrm.com/threads/m...ne-url-cleaner-redirects-sitemaps-1-8-3.56438
But it is giving 500 server error for old URLs, and when I enabled debug mode, I found this error-
[PrestaShopException]
Invalid product vars
at line 407 in file override/classes/Link.php
402. if (is_array($product) && isset($product['id_product'])) {
403. $product = new Product($product['id_product'], false, $id_lang, $id_shop);
404. } elseif ((int)$product) {
405. $product = new Product((int)$product, false, $id_lang, $id_shop);
406. } else {
407. throw new PrestaShopException('Invalid product vars');
408. }
409. }
410. $params = array();
411. $params['id'] = $product->id;
412. $params['rewrite'] = (!$alias) ? $product->getFieldByLang('link_rewrite') : $alias;
Can someone please help me to fix this problem?
Kind Regards
I installed this module- https://www.nulledfrm.com/threads/m...ne-url-cleaner-redirects-sitemaps-1-8-3.56438
But it is giving 500 server error for old URLs, and when I enabled debug mode, I found this error-
[PrestaShopException]
Invalid product vars
at line 407 in file override/classes/Link.php
402. if (is_array($product) && isset($product['id_product'])) {
403. $product = new Product($product['id_product'], false, $id_lang, $id_shop);
404. } elseif ((int)$product) {
405. $product = new Product((int)$product, false, $id_lang, $id_shop);
406. } else {
407. throw new PrestaShopException('Invalid product vars');
408. }
409. }
410. $params = array();
411. $params['id'] = $product->id;
412. $params['rewrite'] = (!$alias) ? $product->getFieldByLang('link_rewrite') : $alias;
Can someone please help me to fix this problem?
Kind Regards