DanielSMIG Posted February 24, 2021 Share Posted February 24, 2021 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 More sharing options...
Razi Posted February 24, 2021 Share Posted February 24, 2021 Kindly enable the debug mode from Backoffice Advanced Parameters - > Performance Tabs after this its show the detail of error. Thanks Link to comment Share on other sites More sharing options...
DanielSMIG Posted February 24, 2021 Author Share Posted February 24, 2021 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 More sharing options...
Razi Posted February 24, 2021 Share Posted February 24, 2021 (edited) Kindly disable the overrides and try again. Or rename the override [override/controllers/front/ProductController.php] file and try again is error still there. Thanks Edited February 24, 2021 by Razi (see edit history) Link to comment Share on other sites More sharing options...
DanielSMIG Posted February 24, 2021 Author Share Posted February 24, 2021 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 More sharing options...
Razi Posted February 24, 2021 Share Posted February 24, 2021 Now kindly disable the debug mode and try Link to comment Share on other sites More sharing options...
DanielSMIG Posted February 24, 2021 Author Share Posted February 24, 2021 Hello, The first link don't get 500 error now, but it still redirects. Second link has the same issue. Link to comment Share on other sites More sharing options...
joseantgv Posted February 25, 2021 Share Posted February 25, 2021 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 More sharing options...
DanielSMIG Posted February 26, 2021 Author Share Posted February 26, 2021 (edited) @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 February 26, 2021 by DanielSMIG Added more information (see edit history) Link to comment Share on other sites More sharing options...
DanielSMIG Posted February 26, 2021 Author Share Posted February 26, 2021 Hi again! Just announcing that the issue has been solved! We configured the SEO in the categories that we been having issues with. Don't know why it worked, but it did. If somesone coul'd explain to me why it worked, I woul'd be happy. 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