Skip to content Skip to sidebar

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

Problem:
If you're experiencing text disappearance on category pages in the translated version of your website while using the Gloria Theme with WPML, it might be due to a compatibility issue. This problem occurs specifically when the theme uses an outdated version of jQuery UI.
Solution:
First, ensure that your theme and all plugins are updated to the latest versions. If the issue persists, you can try the following steps:
1. Open the theme's functions.php file and locate the wp_enqueue_script() function call for 'ui-core-js'.
2. Replace the src attribute with the latest CDN source URL for jQuery UI 1.14.0. Here is an example of how you can modify it:

if (!function_exists('gloria_post_admin_scripts_and_styles')) {
    function gloria_post_admin_scripts_and_styles($hook) {
        if ($hook == 'post.php' || $hook == 'post-new.php') {
            ...
            wp_enqueue_script('ui-core-js', 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.14.0/jquery-ui.min.js', '', true);
            ...
        }
    }
}

Additionally, installing the "Enable jQuery Migrate Helper" plugin from the WordPress Team might resolve the issue.

If these steps do not resolve your problem, or if the solution seems outdated or irrelevant 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 issue persists, please open a new support ticket.

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

Last updated by Andreas W. 1 year, 4 months ago.

Assisted by: Andreas W..

Author Posts
September 26, 2024 at 12:02 am #16222672

centro-brasileiro-de-estudos-d

Background of the issue:
I have a post-based website at hidden link. I am translating content from Spanish to Portuguese using WPML. I haven't yet translated all posts.

Symptoms:
In the translated version, the text disappears on category pages, although images display correctly. This issue occurs when viewing posts on category pages like 'capitulos' or 'biblioteca' in Portuguese.

Questions:
Why does the text disappear on category pages in the translated version?
How can I ensure that text appears correctly on category pages after translation?

September 26, 2024 at 4:05 am #16222953

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hi,

It seems that the minimum requirements are not met on the server:
https://wpml.org/en/home/minimum-requirements/

Could you please increase the WordPress memory limit (WP Memory Limit) to at least 256 MB? WPML requires at least 128M.

Your current values ​​are:

PHP Memory Limit 600M

WP Memory Limit 40M

You need to connect to your website's server and open the wp-config.php file in a text editor. The file is located in the WordPress root directory.

Add this code to the wp-config.php file to increase WordPress memory:

define ('WP_MEMORY_LIMIT', '256M');

Add this just before this comment:

// That's all, stop editing! Happy blogging.

The current values ​​can be viewed under WPML > Support > WordPress.

These settings can be restricted directly by your hosting provider. Therefore, I recommend contacting them and asking them to change them directly if the changes are not applied immediately.

Now, please reivse if the issue persists and let me know if further assistance is needed.

Best regards
Andreas

September 30, 2024 at 4:11 pm #16237221

centro-brasileiro-de-estudos-d

I adjusted the settings, but had no changes. I'M using the Gloria Theme by BKNinja, purchased at Theme forest

September 30, 2024 at 7:18 pm #16237487

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose. This step would only be required if the issue is replicable on such a staging site.

If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again.

If you are unable to provide such a copy of the site for testing, please let me know on this ticket.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

October 2, 2024 at 4:33 am #16243276

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

This appears to be a compatibility issue between the Gloria Theme and WPML Multilingual CMS.

I can offer to provide a WPML test site on which you can install the latest version of the Gloria Theme and its plugins in the latest available versions, so that we try to recreate the issue and take further steps.

Would you be able to cooperate on this matter?

October 2, 2024 at 3:06 pm #16246445

centro-brasileiro-de-estudos-d

Sure. I'm also in contact with the creators of the Gloria Theme. They too asked me to grant them access to my admin area, but I'm still waiting for theis feedback.

October 2, 2024 at 3:53 pm #16246651

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Let us try to recreate the issue on the following test site:
hidden link

Please install the Gloria Theme and its plugins in the latest available version.

After that, leave me a comment here.

Take note that, the theme has not been updated since 2023:
hidden link

October 4, 2024 at 4:45 pm #16255438

centro-brasileiro-de-estudos-d

Hi, Andreas

I installed the theme and plugins in the sanbox. Please take notice that there are auxiliary plugins that are avaiable only through the theme's dashbord, after the theme's activation and I didn't have access:

BK Shortcode Plugin
Gloria admin panel
Gloria extension
Sidebar Generator
Taxonomy meta
And the sample content

Thanx

October 4, 2024 at 4:56 pm #16255466

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

No problem, I can already confirm the issue testing only with the theme.

As soon I have investigated this further, I will be in contact with you again.

October 4, 2024 at 6:19 pm #16255567

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The issue is that the theme has not received an update since 2023 and is using an outdated version of jQuery UI.

Inside the theme's functions.php file at line 284, replace the src attribute of the wp_enqueue_script() function that call 'ui-core-js' using the latest CDN source URLs for jQuery UI 1.14.0:

Example:

if ( ! function_exists( 'gloria_post_admin_scripts_and_styles' ) ) {
    function gloria_post_admin_scripts_and_styles($hook) {        
    	if( $hook == 'post.php' || $hook == 'post-new.php' ) {
            wp_enqueue_script( 'bootstrap-admin-js', get_template_directory_uri().'/framework/bootstrap-admin/bootstrap.js', array(), '', true );
            wp_enqueue_style( 'bootstrap-admin-css', get_template_directory_uri().'/framework/bootstrap-admin/bootstrap.css', array(), '' );
            if(is_ssl()) {
                wp_enqueue_style( 'jquery-core-css', '<em><u>hidden link</u></em>', array(), '' );
                wp_enqueue_script( 'ui-core-js', '<em><u>hidden link</u></em>', '', true );
            }else {
                wp_enqueue_style( 'jquery-core-css', '<em><u>hidden link</u></em>', array(), '' );
                wp_enqueue_script( 'ui-core-js', '<em><u>hidden link</u></em>', '', true );
            }
            wp_register_script( 'gloria-post-review-admin',  get_template_directory_uri() . '/js/post-review-admin.js', array(), '', true);
            wp_enqueue_script( 'gloria-post-review-admin' ); // enqueue it
   		} 
...

This solves the issue on my test. I suggest you inform the theme author about this issue.

CDN Source URLs:
hidden link

October 4, 2024 at 7:55 pm #16255820

centro-brasileiro-de-estudos-d

I informed the theme guys.
Is it enough to place the above code in the functions file of my child theme?

An would you please write down everything I have to place in it? I know very little of code.

October 5, 2024 at 2:37 am #16255990

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I have installed the "Enable jQuery Migrate Helper" plugin from the WordPress Team on your site. This also seems to solve this issue.