Skip to content Skip to sidebar

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

Problem:
You are encountering an issue with WPML's Advanced Translation Editor showing the error "Unable to retrieve job details" when trying to translate custom JetEngine posts.

Root Cause:
The problem has been traced to a conflict with the FluentCRM Custom Email Sender plugin. This plugin is not fully compatible with WPML. It forcefully enqueues scripts and applies filters across the admin interface, which interferes with WPML's functionality.

Recommended Solution:
To resolve this, we suggest modifying the plugin so that it only runs its code when inside FluentCRM screens. In the file located at:

fluentcrm-inside-edge-email/app/Hooks/Handlers/CustomEmailHandler.php

Replace the

init()

method with the following code:

public function init() {
    if (!function_exists('get_current_screen')) {
        return;
    }

    $screen = get_current_screen();
    if (!$screen || strpos($screen->id, 'fluentcrm') === false) {
        return;
    }

    add_filter('safe_style_css', [$this, 'allowedCss'], 10, 1);
    add_filter('wp_kses_allowed_html', [$this, 'allowedCssRules'], 10, 3);
}

You should apply a similar conditional check in the

init()

method inside this file as well:

fluentcrm-inside-edge-email/app/Hooks/Handlers/AdminMenuHandler.php

Next Steps:
Since this plugin is not officially tested or supported by WPML, we strongly advise reaching out to the plugin developers and sharing this solution with them as a potential fix.

For better compatibility, you might also consider alternative plugins that are confirmed to work well with WPML.

Important Note:
Please keep in mind that this fix might no longer be relevant if the plugin has been updated since. Check the WPML Known Issues page at https://wpml.org/known-issues/ to confirm whether a permanent fix is available. Also, ensure that all your themes and plugins are up to date.

If the issue continues after applying the workaround and updating all components, you can open a support ticket at https://wpml.org/forums/forum/english-support/ 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 22 replies, has 0 voices.

Last updated by Kor 3 weeks, 4 days ago.

Assisted by: Kor.

Author Posts
June 30, 2025 at 9:44 am #17182729

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. Our 2nd Tier Support is still checking on this and I'll come back to you once I've feedback.

June 30, 2025 at 9:44 am #17182731

samaraL

I am now getting this error on my production site

Screenshot 2025-06-30 at 11.44.24.png
June 30, 2025 at 9:46 am #17182748

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. We are having issues with our translation server capacity and this will be fixed soon. I apologize for the delay.

July 3, 2025 at 7:09 am #17195484

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

We’ve reviewed the issue and found that the FluentCRM Custom Email Sender plugin you're using isn’t fully compatible with WPML. It appears to be quite aggressive with how it enqueues scripts and applies filters, which can interfere with other components.

Since this FluentCRM Custom Email Sender plugin is not officially compatible and we’re not familiar with its internal structure, we’ve only spent minimal time investigating it. That said, here’s a suggestion that may help resolve the issue, based on a proposed workaround from ChatGPT:

Suggested Fix

File: fluentcrm-inside-edge-email/app/Hooks/Handlers/CustomEmailHandler.php

Replace:

public function init() {
    add_filter( 'safe_style_css', [ $this, 'allowedCss' ], 10, 1 );
    add_filter( 'wp_kses_allowed_html', [ $this, 'allowedCssRules' ], 10, 3 );
}

With:

public function init() {
    if (!function_exists('get_current_screen')) {
        return;
    }

    $screen = get_current_screen();
    if (!$screen || strpos($screen->id, 'fluentcrm') === false) {
        return;
    }

    add_filter( 'safe_style_css', [ $this, 'allowedCss' ], 10, 1 );
    add_filter( 'wp_kses_allowed_html', [ $this, 'allowedCssRules' ], 10, 3 );
}

Also, apply a similar logic to this file:

File: fluentcrm-inside-edge-email/app/Hooks/Handlers/AdminMenuHandler.php

public function register() {
    add_action('fluentcrm_loading_app', function () {

With:

public function register() {
    add_action('fluentcrm_loading_app', function () {
        if (!function_exists('get_current_screen')) {
            return;
        }

        $screen = get_current_screen();
        if (!$screen || strpos($screen->id, 'fluentcrm') === false) {
            return;
        }

Important Notes

-This plugin is not officially supported or tested on our end.

-We strongly recommend reaching out to the plugin author and sharing this suggestion as a potential fix.

-If you're looking for a more stable integration, we suggest exploring alternative plugins.

July 7, 2025 at 10:30 am #17207773

samaraL

Ok, I understand. It's just odd, as WPML works perfectly on other sites where I have the same plugin installed.

Thank you very much for your assistance.

July 7, 2025 at 10:42 am #17207859

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Alright then, please mark this ticket as resolved.

July 7, 2025 at 6:54 pm #17210974

samaraL

Will - also please ensure all copies of the site from you and your team have been deleted.

July 8, 2025 at 1:02 am #17211492

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Will do and thanks.