Please make sure to update to WPML 4.3.5 and check our list of Known Issues before reporting

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

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

Last updated by leandroP-2 1 month, 1 week ago.

Assigned support staff: Bruno.

Author Posts
October 24, 2019 at 11:15 pm

leandroP-2

I am trying to: generate .mo files after updating to the latest version.

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

I expected to see: I guess a page telling me the mo files were successfully generated?

Instead, I got: the error in the image I'm attaching.

October 24, 2019 at 11:17 pm #4823549

leandroP-2

Also, my website emailed me this error during the update:

Detalles del error
==================
Se produjo un error del tipo E_ERROR en la línea 51 del archivo
/home/leandrop/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-term-clauses.php.
Mensaje de error: Uncaught Error: Call to undefined method
WPML_Debug_BackTrace::are_functions_in_call_stack() in
/home/leandrop/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-term-clauses.php:51
Stack trace:
#0 /home/leandrop/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(2534):
WPML_Term_Clauses->filter(Array, Array, Array)
#1 /home/leandrop/public_html/wp-includes/class-wp-hook.php(286):
SitePress->terms_clauses(Array, Array, Array)
#2 /home/leandrop/public_html/wp-includes/plugin.php(208):
WP_Hook->apply_filters(Array, Array)
#3 /home/leandrop/public_html/wp-includes/class-wp-term-query.php(654):
apply_filters('terms_clauses', Array, Array, Array)
#4 /home/leandrop/public_html/wp-includes/class-wp-term-query.php(288):
WP_Term_Query->get_terms()
#5 /home/leandrop/public_html/wp-includes/taxonomy.php(1178):
WP_Term_Query->query(Array)
#6 /home/leandrop/public_html/wp-includes/taxonomy.php(1692):
get_terms(Array, Array)
#7 /home/leandrop/public_html/
October 25, 2019 at 7:18 am #4824239

George Botsev
Supporter

Languages: English (English )

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

Please check if you have set the constant ICL_DONT_LOAD_LANGUAGES_JS
as shown here: https://wpml.org/errata/using-the-constant-icl_dont_load_languages_js-can-lead-to-issues-in-wpml-4-3-with-initial-scan-of-mo-files/
and un-set it.

October 25, 2019 at 5:57 pm #4829251

leandroP-2

I don't have that set anywhere. I actually don't know where to put that.

October 25, 2019 at 9:19 pm #4830091

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for contacting us. This code is defined within your theme in the wp-content/themes/fluxus/inc/plugin-support.php file on line 12.

I've commented on this line and now it was possible to scan the .mo files. You can now click WPML > Theme and plugins localization and scan the new mo files. I will attach a picture for you to see.

After you finish scanning the desired plugins, you can go back to the plugins-support.php file and uncomment the line:

// define( 'ICL_DONT_LOAD_LANGUAGES_JS', true );

to (without the //)

define( 'ICL_DONT_LOAD_LANGUAGES_JS', true );

Please, let me know if I can help with any other questions you may have about it. I'll be happy to help.

Thank you.

October 26, 2019 at 3:16 am #4830483

leandroP-2

That worked perfectly, thank you!

A quick question. I can see the table "_icl_strings" is still pretty big. Now that the strings are being used from the .mo files, is there a way to delete unnecessary strings from the database?

October 28, 2019 at 5:03 pm #4842015

Bruno
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Glad to hear that it now works. You can follow the steps below to clear the string tables:

- Backup your site/database (this is really important)
- Click on the WPML > Support > Troubleshooting
- Scroll down and look at the "Clean up"
- At the end of this block, click on the "Cleanup and optimization completed!"

This will clear the string tables. Also, note that strings are expected in these tables. That is, these tables should not always be empty.

Thank you.

October 28, 2019 at 8:03 pm #4842823

leandroP-2

My issue is resolved now. Thank you!