Skip Navigation

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 year, 7 months ago.

Assigned support staff: Bruno.

Author Posts
October 24, 2019 at 11:15 pm


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


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
Mensaje de error: Uncaught Error: Call to undefined method
WPML_Debug_BackTrace::are_functions_in_call_stack() in
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):
#5 /home/leandrop/public_html/wp-includes/taxonomy.php(1178):
#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

Languages: English (English )

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

Please check if you have set the constant ICL_DONT_LOAD_LANGUAGES_JS
as shown here:
and un-set it.

October 25, 2019 at 5:57 pm #4829251


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

October 25, 2019 at 9:19 pm #4830091


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


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


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


My issue is resolved now. Thank you!