This thread is resolved. Here is a description of the problem and solution.

Problem:

Solution: The cause of the problem is \WWLC_User_Account::registration_page_redirect_logged_in_user in wp-content/plugins/woocommerce-wholesale-lead-capture/includes/class-wwlc-user-account.php
There this code is responsible:

$registration_page = url_to_postid( wwlc_get_url_of_page_option( 'wwlc_general_registration_page' ) );

Mainly is the code for url_to_postid() function that we filter on lately
As a workaround change the code to:

public function registration_page_redirect_logged_in_user() {
 
            global $post;
 
            if ( ! is_user_logged_in() )
                return;
if (! is_admin()) {
    $registration_page = url_to_postid( wwlc_get_url_of_page_option( 'wwlc_general_registration_page' ) );
    $my_account_page   = get_option( 'woocommerce_myaccount_page_id' );
 
    if ( $registration_page && $my_account_page && is_object( $post ) && $registration_page === $post->ID && $registration_page != $my_account_page ) {
 
        wp_redirect( get_permalink( $my_account_page ), 302 );
        exit;
 
    }
}
 
        }

Relevant Documentation:

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.

Please make sure to update to WPML to the latest and check our list of Known Issues before reporting

Tagged: 

This topic contains 21 replies, has 2 voices.

Last updated by Carlos Rojas 4 months, 1 week ago.

Assigned support staff: Carlos Rojas.

Author Posts
September 2, 2019 at 12:09 pm

hiteshH

Hi,

I am using plugin wholesale suit lead capture plugin Premium version, But after activating the plugin but some of the admin string in WP Dashboard don't show in the English Language.

My default language is in Portuguese and I have set my admin language as English, but unfortunately, after activating wholesale lead plugin my admin dashboard in page, product section, if I switch my language to Portuguese all my strings are shown in Portuguese where its supposed to show in English.

Please find the screenshot
hidden link

Please, Help me fix this issue.

Regards
Hitesh

September 2, 2019 at 12:23 pm #4496839

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting WPML support.

I would like to ask you to follow this steps:
- Edit your profile page -> Make sure that the 'Set admin language as editing language.' options is deactivated -> Save the changes.

If the issue persists then:-
- Make a full backup of the site.
- Update all outdated plugins and themes.
- Flush any cache memory that might exists.
- Go to WPML -> Support -> Trobleshooting link -> Apply the troubleshooting steps highlighted in the attached image.

Could you tell me the result of the steps above?

Kind regards,
Carlos

September 2, 2019 at 2:07 pm #4497583

hiteshH

Hi,

I did all the steps mentioned above on my staging site, but unable to fix the issue.

Could you please allow me to share my staging credentials, so you could access to my staging site and have a look.

Regards
Hitesh

September 2, 2019 at 2:30 pm #4497659

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi Hitesh,
Thank you for your feedback.

I have set your next answer private so you can provide the access credentials to the staging site in a secure way.

Thanks in advance.
Regards,
Carlos

September 2, 2019 at 3:42 pm
September 3, 2019 at 7:07 am #4501593

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi Hitesh,
Thank you very much for the information provided.

I tried to log into the site but there is a popup asking for credentials. Could you edit your previous message and add those credentials?

Also, I kindly ask you to create a new ticket describing the 500 error and the steps to reproduce it. Once the new ticket is created you can assign it to me or share the link here so I can manually take it.

Best regards,
Carlos

September 3, 2019 at 9:11 am #4502439

hiteshH

Hi,

I have provided the credentials.

Could you please check from your side, sometimes it asks 2-3 times to enter credentials.

Regards
Hitesh

September 3, 2019 at 11:07 am #4503815

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi Hitesh,
Thank you very much for the information provided.

I deactivated all plugins in the staging site and site except WPML plugins, Woocommerce and Woocommerce Multilingual plugin and the issue disappeared. I would like to ask you to activate the plugins one by one until you see that the issue re-appears.

Could you tell me the result of the steps above?

Regards,
Carlos

September 3, 2019 at 11:43 am #4504033

hiteshH

Hi,

The issue is coming from wholesale suite Lead Capture Plugin.

https://wpml.org/plugin/woocommerce-wholesale-lead-capture-2/

Regards
Hitesh

September 3, 2019 at 11:57 am #4504135

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi there,

Thank you very much for your feedback. I'm consulting our specialists about this issue. I will get back to you as soon as I have an answer.

Regards,
Carlos

September 3, 2019 at 12:23 pm #4504383

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi Hitesh,
Thank you very much for your feedback.

Just to make sure the issue is happening between WPML and the plugin (in order to isolate the cause of the issue) I have create a test site with a fresh new WordPress install and WPML plugins installed and setup.

I would like to ask you to setup Woocommerce and Woocoommerce Multilingual if necessary and install the plugin to see if the issue re-appears. You can log in the site by using this link: hidden link

Could you tell me if the issue persists?

Regards,
Carlos

September 3, 2019 at 12:51 pm #4504543

hiteshH

Hi,

I have successfully installed the plugins, Could you please check from your side now.

And still, the issue persists.

Regards
Hitesh

September 3, 2019 at 2:09 pm #4505187

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi Hitesh,

The issue disappeared in the test site. please login using this credentials:
- user: demos
- pass: demos

Could you take a look a the test site and confirm that the issue is solved?

Regards,
Carlos

September 3, 2019 at 2:15 pm #4505199

hiteshH

HI,

I have checked from my side, but I still can see the issue.

Please find the screenshot.

hidden link

Regards
Hitesh

September 3, 2019 at 7:12 pm #4507053

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi Hitesh,

Yes, I can see the issue again. Thank you for sharing the screenshot.

I will consult our specialists about this issue and I will get back to you as soon as I have an answer.

Regards,
Carlos