Skip to content Skip to sidebar

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

Problem:
If you're experiencing an issue where your translated page is not found on the frontend, it might be due to the Events Manager plugin handling the

publish_future_post

action incorrectly. This occurs when the event's title (

post_title

) is empty, causing the system to generate a blank slug and fail.
Solution:
We recommend contacting the plugin developers at https://wp-events-plugin.com to review and address this issue. As a temporary workaround, you can comment out the problematic action in the plugin's code by modifying

/wp-content/plugins/events-manager/classes/em-event-post.php

as follows:

add_action('publish_future_post', array('EM_Event_Post', 'publish_future_post'), 10, 1);

Alternatively, adjust the code to:

$is_post_type = Archetypes::is_repeating( $post_type ) ? Archetypes::get_repeating_archetype( $post_type ) : NULL;

This change helps prevent assigning an invalid post type when the event lacks a title.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/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 for further assistance.

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 10 replies, has 0 voices.

Last updated by tsvetanT 2 days, 2 hours ago.

Assisted by: Bruno Kos.

Author Posts
October 9, 2025 at 6:05 am

tsvetanT

Background of the issue:
I am using WPML on my site hidden link to manage translations with the WordPress editor. I have set up translations for pages, such as hidden link which should have a translated version at hidden link.

Symptoms:
The translated page at hidden link is not found.

Questions:
Why is the translated page not found on the frontend?

October 9, 2025 at 11:18 am #17470841

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

I’m checking this with our second-tier team and will keep you updated.

October 9, 2025 at 1:24 pm #17471539

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

We’ve identified the cause of the issue with the link pointing to /cs/ instead of /cs/denni-rezim.
It appears that the post with ID 9155 was missing a slug (also called post_name) in the WordPress database — this is the value WordPress uses to generate the page URL.

Normally, the slug is automatically created when a post is published, but in this case it was blank — which likely caused WordPress to redirect incorrectly. Once the missing slug was added, the URL started working properly.

To check and fix this on your end:

1. Open Adminer (or phpMyAdmin) and go to your WordPress database.
2. Open the wp_posts table.
3. Find the affected post (e.g., by filtering ID = 9155).
4. Look for the column named post_name — if it’s empty, enter the correct slug (e.g. denni-rezim).
5. Save the change.
6. (Optional but recommended) Go to Settings → Permalinks in WordPress and click Save Changes to refresh permalink rules.

If you find other posts missing their post_name, you can fix them the same way.

We haven’t seen this happen under normal conditions, so it may have resulted from database corruption or an earlier translation/synchronization issue. If it occurs again when creating new posts, please let us know — we’ll escalate it as a potential bug.

October 13, 2025 at 12:01 pm #17479465

tsvetanT

Thanks this is working.

However this issue appears on 4 websites
hidden link
hidden link
hidden link
hidden link
for some pages.

I will do the db edits for those websites.

October 13, 2025 at 1:07 pm #17479733

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Thanks for confirming! It’s good to hear the fix worked. Since you see the same issue on those other sites, applying the same database update should resolve it as well.

October 14, 2025 at 10:22 am #17483030

tsvetanT

Yes, the fix works for all websites, but it is not easy to implement needing to edit the database.
So I noticed if I edit the main language with Elementor and save, then the translated pages becomes missing (the slug is deleted).
WPML-> Settings -> Translated documents options->Page URL -> Translate (this will include the slug in the translation and not create it automatically from the title)

October 14, 2025 at 11:46 am #17483489

tsvetanT

I can confirm that editing the page, makes the translation page disappear (the slug is somehow deleted) and i have to go again in the database and make changes - this is not a working solution.

October 15, 2025 at 6:36 am #17485705

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Does it happen for hidden link as well? So, if you modify something in the original, does the slug get deleted at that point? Or do you have to open the translation in the translation editor and save it before the slug is wiped?

October 15, 2025 at 9:32 am #17486205

tsvetanT

Hello, when I edit the page, the translation slug gets wiped

October 16, 2025 at 6:27 am #17488810

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Let me check this further, I will get back to you after debugging the case!

October 17, 2025 at 6:57 am #17492901

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

It seems the issue happens because the event’s title (`post_title`) is empty when WordPress tries to generate the event slug. Since the title is missing, the system creates a blank slug, which causes the process to fail.

Our 2nd-tier team identified that this behavior originates from the Events Manager plugin, specifically from how it handles the `publish_future_post` action.

We recommend reaching out to the plugin developers at hidden link to have them review and confirm this issue, and ideally, apply a proper fix in their code. Otherwise, any manual code change you make will be overwritten when the plugin is updated.

As a temporary workaround, you can comment out the following line in `/wp-content/plugins/events-manager/classes/em-event-post.php` to prevent the problematic action from triggering:

add_action('publish_future_post', array('EM_Event_Post', 'publish_future_post'), 10, 1);

If modifying that line is not possible, a more targeted workaround would be to adjust the following code:

$is_post_type = Archetypes::is_repeating( $post_type ) ? Archetypes::get_repeating_archetype( $post_type ) : $post_type;

to:

$is_post_type = Archetypes::is_repeating( $post_type ) ? Archetypes::get_repeating_archetype( $post_type ) : NULL;

This ensures the function doesn’t assign an invalid post type when the event is missing a title.

October 22, 2025 at 1:34 pm #17508446

tsvetanT

This is working. I've contacted wp-events-plugin.com support. Thanks!