Skip to content Skip to sidebar

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

Problem:
The client was trying to translate their calendar from The Events Calendar plugin, but encountered an issue where hyperlinks were not working correctly. Specifically, when clicking on ajax links like "Next Events" on the calendar page, the URL was duplicating the slugs, resulting in an incorrect URL format.

Solution:
Please check this errata page and apply the mentioned workaround. (https://wpml.org/errata/the-events-calendar-incorrect-link-format-with-custom-slug-translations/)

If you're experiencing a similar issue, we recommend trying the steps above. However, the solution might be outdated or not applicable to your case. We highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us.

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

Last updated by Osama Mersal 1 year, 4 months ago.

Assisted by: Osama Mersal.

Author Posts
March 20, 2024 at 8:01 pm #15433615

priorityM

I am trying to: Translate our calendar from The Events Calendar, but the hyperlinks are not working as intended. We used this snippet which seemed to work (https://wpml.org/errata/the-events-calendar-incorrect-link-format-with-custom-slug-translations/), but now the slugs are duplicating themselves when clicking on the ajax links on the calendar page (EX: Clicking on "Next Events" changes the URL to hidden link).

Link to a page where the issue can be seen: hidden link

I expected to see: hidden link

Instead, I got: hidden link

March 20, 2024 at 9:09 pm #15433839

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Please log in to this sandbox site and install the "The Events Calendar" plugin. (hidden link)

After that, please try to replicate the issue. If it is replicable, please let me know how to reproduce it to consult our compatibility team.

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

March 25, 2024 at 5:21 pm #15448499
priorityM

Hello, Osama.

We managed to resolve the issue. Now, we are having a new issue after translating the entire site. We use the Elementor plugin, which is shown to be compatible with WPML. Our popups are not working on this page of our site in Spanish: hidden link

The popups are triggered via Elementor's link functionality, but they are not translating properly. I do see that the popups are now duplicated (one in English, one in Spanish) in the backend, but it looks like the trigger is not functioning properly. To test this, click on the image of a person, as that is the trigger for the popup.

The Language switcher is at the bottom right of the screen.

New threads created by Osama Mersal and linked to this one are listed below:

https://wpml.org/forums/topic/popups-are-not-translating-properly/

screencapture-bettertogetherus-org-website-admin-edit-php-2024-03-25-13_20_13.png
March 25, 2024 at 5:29 pm #15448552
priorityM

We also have the automatic translation enabled (Pay as you go), but it looks like some things were partially translated: hidden link

How would we know if the whole site was translated properly? Can we rerun the translator? If so, will we be charged for rerunning? We already used 500k plus credits to translate the entire site and don't want to get charged twice for the same thing.

March 25, 2024 at 5:30 pm #15448553

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

We try to keep one issue per ticket in our forum. Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster.
Therefore, I've split the other issues and created new tickets with this issue.

1- https://wpml.org/forums/topic/popups-are-not-translating-properly/
2- https://wpml.org/forums/topic/we-enabled-the-automatic-translation-pay-as-you-go-some-things-were-partially-translated/

Best regards,
Osama