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 18 replies, has 3 voices.

Last updated by David 5 months, 2 weeks ago.

Assigned support staff: David.

Author Posts
February 7, 2019 at 4:57 pm #3171576

sams-14

Hello,

The my account links, orders, account, address, etc stopped working after latest updates.

When you click my account, ALL tabs have /my-account/ url, and all are missing the /orders/ or /address/ etc. urls

February 8, 2019 at 10:47 am #3174568

sams-14

Update:

Its for every Woocommerce page, including password and logout

February 8, 2019 at 12:23 pm #3175002

sams-14

Furthermore:

Installing latest string translation produces following error, and the whole website stops working:

2019-02-08T12:12:41+00:00 CRITICAL Uncaught Error: Call to undefined function icl_get_string_id() in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-enpoints-support.php:107
Stack trace:
#0 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-enpoints-support.php(90): WPML_Endpoints_Support->register_endpoint_string('order-pay', 'order-pay')
#1 /var/www/html/wp-includes/class-wp-hook.php(286): WPML_Endpoints_Support->get_endpoint_translation('order-pay', 'order-pay', 'tr')
#2 /var/www/html/wp-includes/plugin.php(203): WP_Hook->apply_filters('order-pay', Array)
#3 /var/www/html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-endpoints.php(194): apply_filters('wpml_get_endpoi...', 'order-pay', 'order-pay', 'tr')
#4 /var/www/html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-endpoints.php(183): WCML_Endpoints->get_endpoint_translation('order-pay', 'tr')
#5 /var/www/html/wp-includes/class-wp-hook.php(286): WCML_Endpoints->add_wc_endpoints_tra in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/class-wpml-enpoints-support.php on line 107

ps: there also seems to be typo in the class name: class-wpml-enpoints-support.php

February 8, 2019 at 12:40 pm #3175062

sams-14

Disabling the sitepress-multilingual-cms, the woocommerce endpoints do work.

Setup is with latest updates to woocommerce and wordpress

February 8, 2019 at 12:47 pm #3175116

sams-14

So, in summary:

Update to recent versions:

WPML Multilingual CMS 4.2.0
WPML String Translation 2.10.0

The website will NOT work at all, with the error listed above

Downgrade String Translation to 2.9.2 website WILL work, but the endpoints will not work.

This could be related to:

/**
* @param string $key
* @param string $endpoint
*/
public function register_endpoint_string( $key, $endpoint ) {

$string = icl_get_string_id( $endpoint, self::STRING_CONTEXT, $key );

if ( ! $string ) {
icl_register_string( self::STRING_CONTEXT, $key, $endpoint );
}
}

If you disable WPML Multilingual CMS, the endpoints WILL work

February 8, 2019 at 5:45 pm #3176470

David
Supporter

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

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

The function icl_get_string_id is part of the WPML String Translation plugin.

Is it correctly enabled and up to date?
Do you want to share access details so I can take a look?

I have marked your next reply as private.

February 8, 2019 at 10:02 pm #3177192

sams-14

Hello David,

Thanks for your response, but that is only part of the issue.

As mentioned, if you install Translation 2.9 or any previous version, that error goes away. Just wanted to mention that issue.

The main issue is with the WPML ALL WooCommerce endpoints are now broken; I see several other members are also reporting similar issues:

https://wpml.org/forums/topic/links-in-my-account-are-not-working-in-subdomains/
https://wpml.org/forums/topic/woocommerce-endpoints-all-refer-to-my-space/

You should be able to replicate the issue easily.

If you disable WPML all endpoints start to work again. With WPML enabled, NONE of the endpoints will work, ALL will show /my-account as the link rather than showing

/my-account/edit-account
/my-account/orders
/my-account/logout

etc.

from one of the topics above:

hidden link

Please let me know if you need anything.

February 11, 2019 at 4:43 pm #3184408

David
Supporter

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

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

I have setup a fresh installation and I don't see any problems.

Here take a look yourself, feel free to play around:
hidden link

Can you replicate the issue there?

February 12, 2019 at 8:56 am #3187363

sams-14

Hello David,

Making a copy of the site so it would be easy to go through the issue.

Should be up in about few hours.

February 12, 2019 at 9:18 am #3187433

sams-14

Please see:

hidden link

Its replicated.

The issue is mentioned here:

https://wpml.org/forums/topic/woocommerce-endpoints-all-refer-to-my-space/#post-3186703

Regards

February 12, 2019 at 6:20 pm #3190345

David
Supporter

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

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

I see now, setting the pages to translatable solves the issue (see screenshot).

The issue was already reported to our developers but hasn't been fixed yet.

You will get notified here when there is progress.

March 6, 2019 at 8:33 pm #3281230

sams-14

Hello David,

Is this bug fix now or still in progress?

Regards

March 6, 2019 at 8:44 pm #3281232

David
Supporter

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

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

It is still in progress.
I will ask for an update here and let you know.

March 29, 2019 at 2:00 am #3486345

joaoO-4

Hello. Any information on this problem? I have the same issue and it's causing my client some problems.

All the links of the My Account page are redirecting to /my-account.
I can manually go to /my-account/orders but the "Orders" menu link is /my-account/

Any ETA on the resolution of this issue?

Thanks

Best regards

March 29, 2019 at 11:01 am #3490501

David
Supporter

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

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

I just raised the priority and asked for feedback.
I will let you know as soon as we have something.