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.

Nessun supporter è disponibile a lavorare oggi sul forum Italian. Sentitevi liberi di creare ticket e li gestiremo il prima possibile quando saremo online. Grazie per la comprensione.

This topic contains 7 risposte, has 2 voci.

Last updated by Bobby 4 giorni, 5 ore fa.

Assigned support staff: Bobby.

Autore Post
November 5, 2019 at 6:44 pm

giuseppeC-42

Actually I'm experiencing a wierd bug with your WPML plugin.

When I try to translate a Page in any language nothing happens when I hit "Save" button

No page has been created and I keep getting 404 error

Please help me as quickly as possibile

November 6, 2019 at 6:26 am #4894959

Bobby
Supporter

Languages: Inglese (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi There,

Thank you for the access details!

I was not able to reproduce the issue with the homepage as I was able to successfully add a translation for both English and German without any 404 errors and the page shows when I visit it in the front end.

However, there was an issue that was causing an error 500 on your site due to redirect.

Your .htaccess file was rewriting the base with the language folder causing these redirects.
To resolve it I followed the steps in our Errata documentation and added the following code in your theme's functions.php file on line 281.

add_filter('mod_rewrite_rules', 'fix_rewritebase');
function fix_rewritebase($rules){
    $home_root = parse_url(home_url());
    if ( isset( $home_root['path'] ) ) {
        $home_root = trailingslashit($home_root['path']);
    } else {
        $home_root = '/';
    }
 
    $wpml_root = parse_url(get_option('home'));
    if ( isset( $wpml_root['path'] ) ) {
        $wpml_root = trailingslashit($wpml_root['path']);
    } else {
        $wpml_root = '/';
    }
 
    $rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules);
    $rules = str_replace("RewriteRule . $home_root", "RewriteRule . $wpml_root", $rules);
 
    return $rules;
}

Errata:
https://wpml.org/errata/htaccess-is-rewritten-with-language-folder/

November 6, 2019 at 11:35 am #4897719

giuseppeC-42

Ok .
Can you please tell me the exact steps you made to accomplish that?
I tried multiple times but with no success

November 6, 2019 at 6:15 pm #4900865

Bobby
Supporter

Languages: Inglese (English )

Timezone: America/Los_Angeles (GMT-08:00)

I went to Pages->Clicked on Homepage's "+" icon -> Used the WPML Translation Editor(side to side) and copied over the default language into the translation just to add a quick translation and saved it to 100%.

Afterwards, it was saved as expected.

I did, however, go into your .htaccess file and removed the rewritten entries before adding the solution explained in the errata documentation.

This could have been a cause of the issue as well.

Unless the 404 page only happens with a specific page, are you still experiencing it?

November 9, 2019 at 1:53 pm #4918271

giuseppeC-42

Please check it out

Spanish version is not working at all

Your plugin seems bugged, please explain the exact steps to get it work

November 12, 2019 at 7:26 am #4929235

giuseppeC-42

Actually I am getting this as result for Spanish Language

What is going on? Please help quickly, I need to fix it asap

November 12, 2019 at 5:56 pm #4933943

Bobby
Supporter

Languages: Inglese (English )

Timezone: America/Los_Angeles (GMT-08:00)

I am reviewing this and will update you shortly.

November 12, 2019 at 6:19 pm #4934125

Bobby
Supporter

Languages: Inglese (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hello,

The custom field estore_page_specific_layout was set to "Don't translate" which caused the layout to not copy to the translation.

To resolve the issue:

1. I set the custom field to "Copy"
2. Made a small update to the default language
3. Resaved the Spanish translation

Let me know your results, please.

NOTE: How are you currently adding your menu? Are you using a 3rd party plugin? I have noticed that it does not show in the translations as expected.