Skip Navigation

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.

This topic contains 17 replies, has 3 voices.

Last updated by Ester 7 years, 8 months ago.

Author Posts
October 15, 2012 at 9:53 am #79825

Ester

Hello!

I am using WPML and Woocommerce (latest versions) and I am having a strange problem at the moment.

I have a multilingual ecommerce website running under hidden link and hidden link. I have translated all pages and products, so far so good.

Just now I wanted to edit something in a translated file and when I try to access a translation, I get kicked out of wordpress.... I get the login screen again. When I log in again and try to access a translation it happens again.

Does anyone have a solution for this problem?

Ester

October 15, 2012 at 10:03 am #79829

Ester

Don't know if it has anything to do with it, but last night I added this piece of code:

add_filter('admin_url', 'convert_admin_url');

function convert_admin_url($url) {

global $sitepress;

return $sitepress->convert_url($url);

}

(found it at http://wpml.org/forums/topic/woocommerce-ajax-issue/)

My checkout page was not working properly (kept om loading endlessly) and with this code it is functioning fine now. But maybe it caused a different problem....

October 15, 2012 at 12:08 pm #79859

Anonymous

Dear Ester,
please filter site_url instead of admin_url

October 15, 2012 at 12:18 pm #79868

Ester

Hi Brooks,

What do I have to do exactly?

Replace admin_url by site_url everywhere in that piece of code?

That would make:

add_filter('site_url', 'convert_site_url');

function convert_site_url($url) {

global $sitepress;

return $sitepress->convert_url($url);

}

Would that be correct?

Gr. Ester

October 15, 2012 at 2:57 pm #79915

Anonymous

Thats correct

October 18, 2012 at 11:47 am #80510

Ester

Hi Brooks,

The problem keeps coming back. What else can I do to fix it?

Ester

October 18, 2012 at 1:38 pm #80552

Anonymous

I’ll send you a private email right now asking you for some private information that will help me debug this issue for you. Please check your email in a couple of minutes, and if you don’t get it, let me know so I can send it again.
Thanks.

October 19, 2012 at 3:27 pm #80758

simone

Good morning,
i have the same problem, after changing the functions.php with the code above, the checkout page never stop to load when i change the language of the page.
I think there is some kind of problem in the admin_ajax.php or something like that.

i'm using jigoshop instead of woocommerce

thanks

October 22, 2012 at 10:38 am #80986

Ester

Hi Brooks,

Did find anything out in my wordpress? I still get kicked out occasionally when accessing translations.

Regards,

Ester

October 22, 2012 at 12:53 pm #81034

Anonymous

Ester, I received the ftp details but not the admin access

October 22, 2012 at 4:48 pm #81095

Ester

I emailed you the login details again.

Ester

October 23, 2012 at 7:41 am #81182

Ester

Hi Brooks,

Last night i reinstalled wordpress, and again when I add this piece of code:

add_filter('site_url', 'convert_site_url');

function convert_site_url($url) {

global $sitepress;

return $sitepress->convert_url($url);

}

I keep getting kicked out of the back-end. I need this code however, otherwise my checkout page keeps loading endlessly end it is impossible for customers to place an order.

Could you help me to find a solution for this?

Ester

October 24, 2012 at 6:30 am #81385

Anonymous

I logged into the back end,
-Clicked on the pencil icons of translations and wasn't automatically logged out.
Are there particular steps I should follow to see this?

October 24, 2012 at 12:41 pm #81500

Ester

Hi Brooks,

It happens when I log in on the back end. Use the language switcher there and change the it to another language. If I change the language back again, i am kicked out and have to log in again. This problem appears in various browsers...

Try changing the language a couple of times, and you will see what I mean.

Regards,
Ester

October 24, 2012 at 1:55 pm #81536

Anonymous

I see where the problem comes from, wpml is modifying the admin url,
I have made a modification. please test now and see if the original problem exists.
Let me know if its fine.