I'm supporting a magento web site. The problem is that product view urls e.g. [link] http://localhost/magento/catalog/product/view/id/23 always return 404.
The category view url e.g. [link] http://localhost/magento/catalog/category/view/id/4 is working fine.
Should I investigate something in code? or in database?
Thanks
1) Try re-indexing data:-
2) Edit the product and see if the following settings are done:-
3) Refresh the Cache (System -> Cache Management)
I had a similar problem after having the "reports" tables in database emptied of their data.
I found a solution on this page, which worked for me: Magento - 404 error in public product page
The SQL that person provided, fixed the problem in my case:
INSERT INTO report_event_types(event_type_id,event_name,customer_login) VALUES
(1, 'catalog_product_view', 1), (2, 'sendfriend_product', 1), (3, 'catalog_product_compare_add_product', 1), (4, 'checkout_cart_add_product', 1), (5, 'wishlist_add_product', 1), (6, 'wishlist_share', 1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With