v1.6-v1.7 [Help Please] Module SEO Pro All-In-One. URL cleaner, redirects, sitemaps... 1.8.3

Marc

Active member
XNullUser
Joined
Feb 27, 2021
Messages
438
Reaction score
31
Points
28
NullCash
29
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
 

d-shilko

Well-known member
Pro
Master
Diamond
Elite
Joined
Jun 10, 2021
Messages
2,496
Reaction score
1,435
Points
113
NullCash
5,914
1. You should clarify the details, version of your PS, PHP.....

I found this, try following
If the Cross-selling module is deactivated, you must disable the "Show cross-selling" option in the BlockCart module!
 

Marc

Active member
XNullUser
Joined
Feb 27, 2021
Messages
438
Reaction score
31
Points
28
NullCash
29
Thank you so much for your reply! I still remember you helped me so much a long time ago :)

My Prestashop version is 1.6.1.24, and the PHP version is 7.2.

And yes, the default cross-selling module is disabled because I'm using another cross-selling module.

However, I solved the problem before seeing your reply by doing the steps below-

1. uninstalled the 1.8.3 version, and reset the URLs to default in the back office Preferences => SEO & URLs.
2. Installed the old version 1.7.6
3. And then updated the 1.7.6 version by uploading the 1.8.3 files from the back office.

Now everything is working fine except the canonical URL option, it does not add the canonical tags to the URLs, but that's not an issue because I'm using another module to add the canonical tags.

I'm not able to edit the title of this post to [Solved].

Kind Regards
 
Top