Skip Navigation

[Resolved] views-en_US.mo not found

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

Problem:
The plugin "Debug Objects" produces errorrs related to Views MO files:
https://toolset.com/forums/topic/views-en_us-mo-not-found/#post-588747
https://toolset.com/forums/topic/views-en_us-mo-not-found/#post-588749

Solution:
See https://toolset.com/forums/topic/views-en_us-mo-not-found/#post-1371931, where we detail why we cannot resolve this compatibility issue.

This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Puntorosso 5 years, 1 month ago.

Assisted by: Beda.

Author
Posts
#588747

Hi,

while debugging my site I have discovered that toolset is calling a language file that in my install doesn't exist.

Domain: wpv-views
File: /home/xxxxxxxx/public_html/web/main/wp-content/plugins/types/vendor/toolset/toolset-common/languages/views-en_US.mo (Not found!)
Called in: /home/xxxxxxxx/public_html/web/main/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.localization.class.php line 57 via Function load_textdomain

It's a bug or do I have to create one?

Thanks

Best

#588749

... found also a second one

Domain: wpcf
File: /home/xxxxxxxx/public_html/web/main/wp-content/plugins/types/vendor/toolset/types/embedded/locale/types-en_US.mo (Not found!)
Called in: /home/xxxxxxxx/public_html/web/main/wp-content/plugins/types/vendor/toolset/toolset-common/inc/toolset.localization.class.php line 57 via Function load_textdomain

#588784

I do not receive those errors.

These files ain't included because not needed, the Plugin is in English already.

How did you replicate this PHP error?
I use USA English in my WordPress, but I do not see that error.

Can you provide me steps, or a site's copy?
https://toolset.com/faq/provide-supporters-copy-site/

#588789
Window_and_Debug_Objects_Settings_‹_Puntorosso_—_WordPress.png
Window_and_Edit_Page_‹_Puntorosso_—_WordPress.png

Hi,

I get this error running the plugin "Debug Objects"

https://wordpress.org/plugins/debug-objects/

and activating the checking of "Translation" in the plugin's setting page.

The site is multilingual, translated with WPML and quiet big to copy with Duplicator.
Otherwise I will have to strip down a lot of stuff.

Could you please check it before under your environment?

Thanks

Best

#589473

I confirm the issue using that Plugin.
But, there is no issue in the Toolset Plugin, the Plugin is English already, hence why would we need to provide another translation for it?

I will consult this with the Developers, eventually we must exclude certain language locales.

Thank you for this report.

#589479

Hi,

I agree with you, we won't need a translation for it.
Still it would be a "cleaner" code if the call wouldn't be executed at all, when english is set as default.

Please keep me updated once you consulted the developers.

Thanks

Best

#1371931
image1572279772186.png

We apologize the delay here, however there will be nothing we can do to fix this in Toolset, as the plugins simply seems to manage the check for the file wrongly and instead of moving on when it can't be found.
As you see in the screenshot a similar error is produced even for the Plugin itself 🙂

Our developer analyzed this and I would like to share also his findings here:
Views, Types, and all other plugins listed there (on the screenshot) register their localization properly.
What WordPress does is try to load a MO file for every registered language.
It fails to read the MO file for the en_US locale. At this point, the native WordPress translation functions fail to load this locale and move on; somehow, this plugin will not stop there and will produce an error.
The Developers mentioned, the plugin should be checking whether the file it tries to load does exist.

#1371951

Hi,
ok, noted.

Thanks for informing me.

Best