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 8 replies, has 2 voices.

Last updated by Dražen Duvnjak 1 year, 3 months ago.

Assisted by: Dražen Duvnjak.

Author Posts
July 26, 2023 at 10:44 pm #14107065

witoldW

I am trying to: Activate WPML Multilingual CMS on my website.

Link to a page where the issue can be seen: sklepimpuls.pl (homepage)

I expected to see: After activating the plugin I expected all my original pages to automatically become their Polish translation and show on default URLs ie. sklepimpuls.pl as opposed to sklepimpuls.pl/pl or /en

Instead, I got: Right after activating the plugin, all my pages (default urls) return 404. Header and footer are still there, but the content is just an error message.

When I go into the list of pages in the admin dashboard, no pages show under the default polish translation. They do show up when I click All languages. The problem seems to be that WPML did not mark the original pages as Polish and is looking for polish versions, finding nothing and returning 404. Screenshot attached.

I already tried factory reset of WPML (it was installed and then uninstalled in 2021). I also tried disabling Rank Math, WP-Supercache and Autoptimize.

Is there a way to set language for the pages in the DB somehow? I can't edit pages in the default WP editor due to incompatibilities with the Divi theme.

Best Regards,
Jarek Wątroba

WPML error.JPG
July 27, 2023 at 6:22 am #14107805

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello Jarek,

please try next:

Please make a backup before proceeding.

1) Disable all plugins (must use also) leave active only main WPML plugin and switch to WP default theme. Go to WPML > Support > Troubleshooting > Reset, and reset it 2 times.
Try to configure WPML again and check if the issue happens.

2) Please go to WPML > Support > Troubleshooting > Clean up and click to run next:

- Clear the cache in WPML
- Remove ghost entries
- Fix element_type collation
- Set language information
- Fix post type assignment

Let me know how it goes.

Regards,
Drazen

July 27, 2023 at 11:27 pm #14114087

witoldW

A few interesting things happened. After resetting WPML twice, I started activating plugins one by one. The problem turned out to be: WooCommerce Multilingual & Multicurrency. Once I turn it on, it screws up the database and no amount of fixes from WPML > Support > Troubleshooting > Clean up can resolve this, only complete WPML double reset. Tested several times.

If nothing helps, can I use translated version of woocommerce without this plugin? How do I configure this in WPML?

The persistent issue seems to be the one from the screenshot I provided. The page list is not only empty for Polish, but for any other language (I tried changing page language). Pages only show up under All Languages, even though the count next to Polish (22) and English (1) is correct.

July 28, 2023 at 5:38 am #14114585

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello Jarek,

well it should all work fine, especially if you are checking in a minimal environment as suggested. WooCommerce Multilingual & Multicurrency is needed and should not cause any issues.

Please make a full backup of your site (files and database) and confirm it in your next reply.
If possible please provide access to the staging website, not production.

Please note, that I might need to do some debugging procedures like enable/disable plugins, switch themes, change the default language of the user account, and/or access your website database to debug the issue furtherly.

I will share with you any changes or steps done in this process. Please let me know if you do not agree with the above or if I do not have your permission for any.

I would need to access both your site's wp-admin and FTP account, if possible.

I have enabled the private username and password fields in your next reply.

I suggest you create a new user, set it as an administrator and then add those credentials in the private fields mentioned.

You can safely add your information into these fields.

Regadrs,
Drazen

July 31, 2023 at 6:49 am #14124261

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

I just checked the site, enabled and configured WPML and it seems it works fine. Image attached.

Please check, probably was related to your database limitation.

Regards,
Drazen

Screenshot_1.jpg
July 31, 2023 at 7:53 am #14124575

witoldW

Hi,

the problem happens when you activate WooCommerce Multilingual & Multicurrency.

July 31, 2023 at 8:33 am #14124815

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks for getting back, I see the issue now.

Since it is a production site, please take your time and provide a staging site, I would need to be able to disable all other plugins and switch themes to confirm the issue is not coming from some custom code / 3rd party plugin/child theme.

I have enabled private replies.

Thanks,
Drazen

July 31, 2023 at 3:34 pm #14128625

witoldW

I have created a staging site at hurt.sklepimpuls.pl
All your credentials should work, DB connection in wp-config.php.
FTP folder: wpn_HurtSklepImpuls

August 1, 2023 at 6:50 am #14130593

Dražen Duvnjak
Supporter

Languages: English (English )

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

Hello,

thanks.

I have checked and it seems the issue happens only when using your Child theme. I thought you had checked this as suggested in the first replies.

Anyway, you can check and confirm this on hidden link, and since the issue happens only with your child theme, and we do not support or debug custom solutions, I advise checking with a developer whoever created a child theme for you or hire WPML contractors for custom code help:

https://wpml.org/contractors/

Kind regards,
Drazen

Screenshot_1.jpg
August 5, 2023 at 4:21 pm #14158969

witoldW

It was indeed an issue in my child theme which manipulated SQL queries that should be, at first glance, not tied to WPML in any way, but were conflicting anyway. Got it fixed now.