Skip Navigation

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

Problem:
When adding a product to the basket in the front end, I receive the message 'That page can’t be found.'

Solution:

It is a known issue with Jetpack, check the errata page for a workaround and the latest status:

https://wpml.org/errata/jetpack-trying-to-add-a-product-to-cart-in-2nd-language-while-not-logged-in-goes-to-a-404-page/

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.

Tagged: 

This topic contains 7 replies, has 3 voices.

Last updated by fritsN 1 year, 12 months ago.

Assisted by: Dražen Duvnjak.

Author Posts
November 29, 2022 at 2:59 pm #12555917

fritsN

when adding a product to the basket in the front end, I receive the message 'That page can’t be found.' That is happening when the language is German. If I use the standard language Dutch I do not have this issue

November 30, 2022 at 8:14 am #12560253

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for your patience.

Please make a backup before proceeding.

1) Can you please check if the issue happens when only WPML plugins and WooCommerce are activated, and all other plugins are disabled?

2) Please change your theme to the WP default theme and check if the issue happens.

Let me know how it goes, thanks.
Drazen

November 30, 2022 at 8:22 am #12560283
hubertP

I'm writing here because this is the first topic created, sorry for this topic.
WPML SUPPORT , Drazen why haven't my two tickets been touched since the day before yesterday? and do you reply to others?

New threads created by Dražen Duvnjak and linked to this one are listed below:

https://wpml.org/forums/topic/split-why-havent-my-two-tickets-been-touched/

Screenshot_4.png
November 30, 2022 at 9:39 am #12561253

fritsN

With another theme I also get an error. When I do the same for the Dutch version, no error

error_with_other_theme.JPG
November 30, 2022 at 10:16 am #12561607

fritsN

When I disable Jetpack the error is gone. What to do?

November 30, 2022 at 10:19 am #12561621

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back and taking the time to test.

Yes, seems this is already a known issue and will be fixed in the next version of WPML.

In the meantime you can us next workaround:

- Go to:wp-content/plugins/wpml-string-translation/classes/slug-translation/RewriteRules/Hooks.php in \WPML\ST\SlugTranslation\Hooks\Hooks::filter

change:

if ( ! $this->cache ) {
    $this->cache = $this->factory->create()->rewrite_rules_filter( $value );
}

to:

//      if ( ! $this->cache ) {
            $this->cache = $this->factory->create()->rewrite_rules_filter( $value );
//      }

Let me know how it goes, regards.
Drazen

November 30, 2022 at 10:44 am #12561839

fritsN

Thanks Drazen,

I changed the php script and activated Jetpack again. The issue is gone..... 🙂