Resolved
Resolved in: 3.7.0
Overview of the issue
Some problems might be experienced when the WPML plugin’s folder is installed in a custom location and a symlink pointing to it from the usual wp-content/plugins folder is used.
Workaround
This issue will be fixed in WPML 3.7.0. Meanwhile, use the following patch as a workaround.
Step 1.
Go to the ../plugins/sitepress-multilingual-cms folder and edit the sitepress.php on line 24.
Replace the whole following block:
Original Code
define( 'ICL_PLUGIN_PATH', dirname( __FILE__ ) ); define( 'ICL_PLUGIN_FILE', basename( __FILE__ ) ); define( 'ICL_PLUGIN_FULL_PATH', basename( ICL_PLUGIN_PATH ) . '/' . ICL_PLUGIN_FILE ); define( 'ICL_PLUGIN_FOLDER', basename( ICL_PLUGIN_PATH ) );
With:
Replacement Code
define( 'ICL_PLUGIN_FULL_PATH', plugin_basename( __FILE__ ) ); define( 'ICL_PLUGIN_FOLDER', dirname( ICL_PLUGIN_FULL_PATH ) ); define( 'ICL_PLUGIN_PATH', WP_PLUGIN_DIR . '/' . ICL_PLUGIN_FOLDER ); define( 'ICL_PLUGIN_FILE', basename( ICL_PLUGIN_FULL_PATH ) );
Step 2.
Go to the ../plugins/sitepress-multilingual-cms/menu folder and edit the languages.php on line 5.
Replace the following line:
if(!is_plugin_active(basename(dirname(dirname(__FILE__))) . "/sitepress.php")){
With:
if ( ! is_plugin_active( ICL_PLUGIN_FULL_PATH ) ) {
Where can I create a topic???
Hello @sergioA-23,
I think you already found it => https://wpml.org/errata/yoast-seo-wrong-2nd-language-category-urls-xml-sitemap/#comment-1612043.
You can open a ticket at this address: https://wpml.org/forums/forum/english-support/. Scroll down to the bottom (below the latest topics) and follow the instructions.
Thanks,
Pierre
I bought your program because I need tp translate my Italian real estate web site in English and in French. I have already the pages done in Italian, but I do not understand how to use your program to translate.
You sent me many Zip. Do I need to download all of them to my computer?
I am looking forward to hearing from you and receive your help.
chiara marras
Hello @Chiara,
I think you have some troubles to install WPML. So I strongly recommend you to read this page https://wpml.org/faq/install-wpml/ first. If you still need some help, please open a ticket on our support forum.
Thanks,
Pierre
Hi, Home posts have disappeared since I have installed WPML, is there any solution ?
Hello @mickaelM-6,
Your issue is probably not related to this errata. Could you please open a ticket on the support forum with your debug information? You will get a dedicated assistance.
Thanks,
Pierre