Tagged: 404, 404 not found, enfold, product pages, woocommerce, wpml, Yoast
-
AuthorPosts
-
April 25, 2017 at 9:29 pm #783115
Hi all,
I’m posting this in the hope to help many others who would spend LOT OF TIME in search for a solution.
I guess I’m another one who faced these product pages 404 issue after installing/updating WPML.
I’ve seen a lot of them all over, here and in WPML forums, with several different resolutions. I tried testing a lot of them. Came to the conclusion that the solution for over half of the users is very SIMPLE.
What’s the environment:
I have Kriesi’s Enfold theme, WooCommerce, WPML (with Media, Multilingual CMS, String Translation, Translation Management and WooCommerce Multilingual plugins) and Yoast all last versions. I have Portuguese as the default language and English/Spanish as translations. I don’t have any other major plugin, only a few specific ones. I have 512M memory_limit and 30s max_execution_time in php.ini.What I’m facing:
In my base language (Portuguese) everything seems fine, but product pages (only) are returning 404 in any translation. I’ve seen many people having similar problem in product category pages. Similar solution might work, it’s worth the test.What I’ve tried:
Reapplying Permanent Links (without changing – HERE’S MY MISTAKE), rescanning WooCommerce pluginfor strings (in WPML – Theme and Plugin Localization), re-added translation for all slugs. Still 404 for products. I tried disabling and re-activating WPML, not successful. I tried disabling Yoast, nothing. I tried so many other things that I can’t even remember.
WHAT IS THE SOLUTION?
On reapplying the product permanent links, if you use CUSTOM BASE, change it to DEFAULT. Translate it (there’s a translate button right below, so no big deal). Test the product page, they are going to work fine. Now get back there and change it again to CUSTOM BASE to whatever you want (make sure it isn’t your chosen word that is breaking the system) and translate it. As simple as that…I hope I could save few hours for someone!
- This topic was modified 7 years, 7 months ago by rmf339.
April 25, 2017 at 10:51 pm #783163Hi Rodrigo!
We do appreciate coming back and replying with all that.
Please feel free to let us know if there is anything else we can do for youCheers!
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.