Background of the issue:
I am trying to report two issues with WPML. The first issue is that the Translation Memory (TM) is not applying saved translations in the Advanced Translation Editor (ATE) for new pages. The second issue is a critical error on the WPML Support page, which prevents me from accessing the debug report. I have confirmed that the site is running on PHP 8.3, and the error persists even when all other plugins are deactivated and the site is switched to a default WordPress theme. The critical error is not being logged in the debug.log file or the cPanel server logs. Link to a page where the issue can be seen: hidden link.
Symptoms:
The Translation Memory is not suggesting or inserting saved translations automatically in the ATE. There is a critical error on the WPML Support page, preventing access to the debug report. The error message is: 'There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.'
Questions:
Why is the Translation Memory not applying saved translations in the ATE?
How can I resolve the critical error on the WPML Support page to access the debug report?
Let's deal with the critical error first, which I suspect could be the reason for other issue(s).
Please try the following:
Take a full backup of your site and database before proceeding. It is highly advised to try these on a dev or staging site first, so your live site isn't compromised.
1) Enable debugging in your site. See https://wpml.org/documentation/support/debugging-wpml/ for details. Once enabled, this will log the errors in the debug.log file which you can upload somewhere (i.e. hidden link) and share the download link for investigation.
2) Deactivate all plugins except WPML and String Translation.
3) Switch to a standard theme like 2024 or 2021.
4) Check for the issue if it still happens.
5) This should also enable you to access the WPML -> Support page. So you can grab the debug information to understand your setup. See https://wpml.org/faq/provide-debug-information-faster-support/ for more information. I've enabled the debug information section for your next reply.
6) Then start activating plugins one by one while keep checking for the issue. This way you 'll be able to pinpoint a conflict when & where it starts creating the problem.
7) If after activating all plugins you see that it still works fine, then switch to your theme and see if that's causing it.
Please let me know your findings and I'll try my best to help you further on the matter.
This is the error message from wordpress critical error email.
I have also create a ticket in my hosting provider. Pending feedback from the hosting provider.
Error Details
=============
An error of type E_ERROR was caused in line 38 of the file /home3/penangin/public_html/test2.penangindustrial.com/wp-content/plugins/sitepress-multilingual-cms/classes/support/class-wpml-support-info.php. Error message: Uncaught Error: Call to undefined function ini_get_all() in /home3/penangin/public_html/test2.penangindustrial.com/wp-content/plugins/sitepress-multilingual-cms/classes/support/class-wpml-support-info.php:38
Stack trace:
#0 /home3/penangin/public_html/test2.penangindustrial.com/wp-content/plugins/sitepress-multilingual-cms/classes/support/class-wpml-support-info.php(34): WPML_Support_Info->get_original_ini_get('memory_limit')
#1 /home3/penangin/public_html/test2.penangindustrial.com/wp-content/plugins/sitepress-multilingual-cms/classes/troubleshoot/class-wpml-debug-information.php(67): WPML_Support_Info->get_php_memory_limit()
#2 /home3/penangin/public_html/test2.penangindustrial.com/wp-content/plugins/sitepress-multilingual-cms/classes/troubleshoot/class-wpml-debug-information.php(30): WPML_Debug_Information->get_core_info()
#3 /home3/penangin/public_html/test2.penangindustrial.com/wp-content/plugins/sitepress-multilingual-cms/menu/debug-information.php(5): WPML_Debug_Information->run()
#4 /home3/penangin/public_html/test2.penangindustrial.com/wp-admin/admin.php(294): include('/home3/penangin...')
#5 {main}
thrown
- Deactivate all plugins except WPML and String Translation.
- Switch to a standard theme like 2024 or 2021.
- Check for the issue if it still happens.
The topic ‘[Closed] Translation Memory Not Working & Critical Error on Support Page’ is closed to new replies.