This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Exception
This topic contains 1 reply, has 2 voices.
Last updated by Mihai Apetrei 1 year, 5 months ago.
Assisted by: Mihai Apetrei.
Author | Posts |
---|---|
August 9, 2023 at 4:37 pm #14177555 | |
shaneY |
Hey there! I wanted to update the solution to the issue with Pantheon's environment and not being able to register the live site keys for WPML (my previous ticket that is closed). This is needed in wp-config to register all keys: if(!defined('OTGS_INSTALLER_SITE_KEY_WPML')){ defined('OTGS_INSTALLER_SITE_KEY_WPML', $site_key_wpml); Below was the original solution but the code above actually gets the keys set appropriately. You can close this ticket as well, I just wanted to provide a better solution in case others have the same issue. They do have instructions: hidden link However those instructions only work if you DON'T register WPML on the development site before pushing the plugin to the live site. The correct process would be to install WPML on the dev site, then push it to live. After that create WPML keys for both dev and live. Then activate the plugin on both sites, that would allow you to enter the appropriate keys. If you install and register WPML on the dev site, make your translation then clone to live (just pushing code changes doesn't include the database). You do have to use the define( 'OTGS_INSTALLER_SITE_KEY_WPML', '' ); for the live site in wp-config. Unfortunately, because of the way Pantheon is setup that means you can only make translations on the live site. If you want to create translations on the dev site then you'd need to modify wp-config again for the dev key. One other item: Since Pantheon is using alias URLs I had to first go to create a key for the actual site URL (example.pantheon.io) and modify wp-config. Then modify wp-config again with the live URL key (example.com). Then in the error message in the WP dashboard go through the steps confirming that the new URL is example.com. Finally going to example.com and also confirming there that that URL was the correct one. Again all these steps are only if you don't follow the correct install/register process for Pantheon's environment (which isn't really intuitive and they don't mention possible issues like these). Hopefully this makes sense and might possibly help others. |
August 9, 2023 at 9:55 pm #14178591 | |
Mihai Apetrei Supporter
Languages: English (English ) Timezone: Europe/Bucharest (GMT+02:00) |
Hi there. That's so nice of you to share all of this information with us and the people that will find this valuable information online. Thank you for taking the time to do this. 🙂 Mihai Apetrei |