Jump to content

Random Product Redirects (Issue)


DanielSMIG

Recommended Posts

Hello,

We have found a unauthorized redirection on randomly products, and we don't know why. 

This link i a Mug, but it leads to 500 Server error:

https://supermarioshoppen.com/muggar/3668-super-mario-mugg-5050574248853.html

This link i a Men's T-shirt, but it leads to a Womens Top:

https://supermarioshoppen.com/t-shirts/236-552-super-mario-yoshi-t-shirt.html#/2-storlek-m

We can not see any wrong with the products in admin. WE also restored Friendly URL. Is it something deeper?

Link to comment
Share on other sites

Link 1: 

[PrestaShopException]

Egenskap Product->price är tom.
at line 1003 in file classes/ObjectModel.php

998. } 999. 1000. $message = $this->validateField($field, $this->$field); 1001. if ($message !== true) { 1002. if ($die) { 1003. throw new PrestaShopException($message); 1004. } 1005. 1006. return $error_return ? $message : false; 1007. } 1008. }

ObjectModelCore->validateFields - [line 292 - classes/ObjectModel.php]

ObjectModelCore->getFields - [line 737 - classes/ObjectModel.php]

ObjectModelCore->update - [line 630 - classes/Product.php] - [1 Arguments]

ProductCore->update - [line 55 - override/controllers/front/ProductController.php]

ProductController->init - [line 273 - classes/controller/Controller.php]

ControllerCore->run - [line 515 - classes/Dispatcher.php]

DispatcherCore->dispatch - [line 28 - index.php]

 

Link2:

[Debug] This page has moved
Please use the following URL instead: https://supermarioshoppen.com/toppar-linnen/94-pokemon-i-choose-you-topp.html

Link to comment
Share on other sites

Yes, the error is still there.

I also get these errors in admin:
Warning: scandir(/home/supermar/public_html/override/classes/): failed to open dir: No such file or directory in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: scandir(): (errno 2): No such file or directory in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: Invalid argument supplied for foreach() in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: scandir(/home/supermar/public_html/override/controllers/): failed to open dir: No such file or directory in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: scandir(): (errno 2): No such file or directory in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: Invalid argument supplied for foreach() in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Link to comment
Share on other sites

En 24/2/2021 a las 12:34 PM, DanielSMIG dijo:

Yes, the error is still there.

I also get these errors in admin:
Warning: scandir(/home/supermar/public_html/override/classes/): failed to open dir: No such file or directory in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: scandir(): (errno 2): No such file or directory in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: Invalid argument supplied for foreach() in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: scandir(/home/supermar/public_html/override/controllers/): failed to open dir: No such file or directory in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: scandir(): (errno 2): No such file or directory in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Warning: Invalid argument supplied for foreach() in /home/supermar/public_html/classes/PrestaShopAutoload.php on line 282

Have you removed folder /override/classes/?

Link to comment
Share on other sites

@joseantgv No, these error only appeared when I renamed the override folder. It disappeared when I restored the folder name.

I found the issue! It is something with the default category. When I change the default category to another, the product appear as normal (without redirecting).

The question is now, why does it happen? How do I solve the issue?

The categories does not have the same ID.

Edited by DanielSMIG
Added more information (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...