Skip to content Skip to sidebar

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

Problem:
The client is experiencing a critical error on their website when using WPML for the first time. The error prevents the display of a page as a complete translation.
Solution:
1. Ensure that the current theme is up to date. If the developer is still working on it, they need to debug the theme to resolve the error.
2. Update the WPML plugin and its add-ons to the latest version, 4.7.1, to benefit from the latest bug fixes and improvements. You can check for the latest released versions under "My Account -> Downloads" on the WPML site. Instructions for updating can be found here: http://wpml.org/faq/install-wpml/.
3. If updates are not visible, go to Plugins → Add New Plugin → Commercial tab and click "Check for updates".
4. Remember to back up your database before proceeding.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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 problems persist, 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.

Tagged: 

This topic contains 4 replies, has 1 voice.

Last updated by Andrey 1 year, 2 months ago.

Assisted by: Andrey.

Author Posts
March 5, 2025 at 10:53 pm #16780711

justinD-20

Background of the issue:
We have a developer creating a site ( hidden link ). We are loading content and trying to use WPML for the first time. On the Translator's tab of the Translation management screen, we see the message: "There has been a critical error on this website. Please check your site admin email inbox for instructions"

They shared the following error with us from the logs:
{
"installName": "tamuforestserv",
"environment": "PROD",
"type": "error",
"date": "2025-03-03T18:04:39.000Z",
"severity": "notice",
"client": "146.86.188.61:0",
"message": "KILLED QUERY (20363 characters long generated in /nas/content/live/tamuforestserv/wp-content/plugins/wpml-media-translation/classes/class-wpml-media-attachment-by-url-query.php:90): SELECT p.ID AS post_id, p.guid, t.language_code FROM wp_posts p JOIN wp_icl_translations t ON t.element_id = p.ID WHERE t.element_type='post_attachment' AND t.language_code='en' AND p.guid IN ('https://tamuforestserv.wpenginepowered.com/wp-content/uploads/2025/01/texas-statewide-pulp-would-price.jpg','https://tamuforestserv.wpenginepowered.com/wp-content/uploads/2025/01/texas-statewide-saw-log-price.jpg','mailto:Pooja.Chhetri@tfs.tamu.edu','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2024/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2024/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2024/','https://tamuforestserv.wpenginepowered.com/wp-content/uploads/2025/01/TTPT_2024_July_August.pdf','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2023/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2023/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2023/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2023/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2023/','https://tamuforestserv.wpenginepowered.com/wp-content/uploads/2025/01/TTPT_2023_November_December.pdf','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2022/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2022/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2022/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2022/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2022/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2022/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2021/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2021/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2021/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2021/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2021/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2021/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2020/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2020/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2020/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2020/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2020/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2020/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2019/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2019/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2019/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2019/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2019/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2019/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2018/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2018/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2018/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2018/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2018/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2018/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2017/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2017/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2017/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2017/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2017/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2017/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2016/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2016/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2016/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2016/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2016/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2016/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2015/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2015/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2015/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2015/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2015/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2015/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2014/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2014/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2014/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2014/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2014/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2014/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2013/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-march-april-2013/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-may-june-2013/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-july-august-2013/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-september-october-2013/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-november-december-2013/','https://tamuforestserv.wpenginepowered.com/elibrary-item/texas-timber-price-trends-january-february-2012/','https://tamufore",
"uuid": "2820907f-0eda-46e6-a045-0a74e88e12c1"
}

Symptoms:
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.

We are currently unable to display a page as a complete translation.

Questions:
What can we do to correct this error?
How can we proceed with translating pages (we cannot get anything in a Complete state)?

Thanks for the help!

March 5, 2025 at 10:54 pm #16780730

justinD-20

The following error was also found by our developer:

An error of type E_ERROR was caused in line 34 of the file /nas/content/live/tamuforestserv/wp-content/themes/tamu-forest-service/functions.php. Error message: Uncaught TypeError: Cannot access offset of type string on string in /nas/content/live/tamuforestserv/wp-content/themes/tamu-forest-service/functions.php:34
Stack trace:
#0 /nas/content/live/tamuforestserv/wp-includes/class-wp-hook.php(324): nc_http_request_args(Array, 'hidden link...')
#1 /nas/content/live/tamuforestserv/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#2 /nas/content/live/tamuforestserv/wp-includes/class-wp-http.php(247): apply_filters('http_request_ar...', Array, 'hidden link...')
#3 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/translation-proxy/class-wpml-translation-proxy-networking.php(126): WP_Http->request('hidden link...', Array)
#4 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/translation-proxy/class-wpml-translation-proxy-networking.php(59): WPML_Translation_Proxy_Networking->call_remote_api('hidden link...', Array, 'GET', true)
#5 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/inc/translation-proxy/translationproxy-api.class.php(23): WPML_Translation_Proxy_Networking->send_request('hidden link...', Array, 'GET', true)
#6 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/tp-client/api/wpml-tp-abstract-api.php(66): TranslationProxy_Api::proxy_request('https://cdn.wpml.org/services.json', Array, 'GET')
#7 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/tp-client/api/wpml-tp-abstract-api.php(35): WPML_TP_Abstract_API->remote_call(Array, 'GET')
#8 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/tp-client/api/wpml-tp-api-services.php(46): WPML_TP_Abstract_API->get()
#9 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/tp-client/api/wpml-tp-api-services.php(110): WPML_TP_API_Services->get_all()
#10 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-services/ServicesRetriever.php(26): WPML_TP_API_Services->get_translation_services(true)
#11 [internal function]: WPML\TM\Menu\TranslationServices\ServicesRetriever::get(Object(WPML_TP_API_Services), Object(Closure), Object(Closure))
#12 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(83): call_user_func_array('WPML\\TM\\Menu\\Tr...', Array)
#13 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-services/MainLayoutTemplate.php(43): WPML\FP\{closure}()
#14 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-services/MainLayoutTemplate.php(30): WPML\TM\Menu\TranslationServices\MainLayoutTemplate::getModel(Object(Closure), false, Object(Closure))
#15 [internal function]: WPML\TM\Menu\TranslationServices\MainLayoutTemplate::render(Array, Object(Closure), false, Object(Closure))
#16 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(83): call_user_func_array('WPML\\TM\\Menu\\Tr...', Array)
#17 [internal function]: WPML\FP\{closure}()
#18 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-services/Section.php(58): call_user_func(Object(Closure))
#19 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-roles/class-wpml-tm-translation-roles-section.php(96): WPML\TM\Menu\TranslationServices\Section->render()
#20 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-tm-menus.class.php(101): WPML_TM_Translation_Roles_Section->render()
#21 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-tm-menus.class.php(119): WPML_TM_Menus->build_content()
#22 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-tm-menus-management.php(58): WPML_TM_Menus->render_items()
#23 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/menu/wpml-tm-menus.class.php(27): WPML_TM_Menus_Management->render_main()
#24 /nas/content/live/tamuforestserv/wp-content/plugins/sitepress-multilingual-cms/classes/class-wpml-translation-management.php(328): WPML_TM_Menus->display_main(NULL)
#25 /nas/content/live/tamuforestserv/wp-includes/class-wp-hook.php(324): WPML_Translation_Management->management_page('')
#26 /nas/content/live/tamuforestserv/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#27 /nas/content/live/tamuforestserv/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#28 /nas/content/live/tamuforestserv/wp-admin/admin.php(259): do_action('toplevel_page_t...')
#29 {main}
thrown

March 6, 2025 at 8:35 am #16781764

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

While one of my teammates is handling your ticket, I will provide you with some helpful information.

Your current theme is causing the fatal error you reported, as far as I can see, from the error log. Please ensure that you are using the latest version of the theme. If your developer is working on it, they will need to debug the current theme to resolve the error.

Here is some useful information: https://wpml.org/documentation/developing-custom-multilingual-sites/

Additionally, the WPML plugin has updates available. Please update your WPML plugin and its add-ons to the latest version, 4.7.1, to benefit from the latest bug fixes and improvements.

You can check for the latest released versions under "My Account -> Downloads" on this site. Instructions for updating can be found here: http://wpml.org/faq/install-wpml/.

If you do not see the updates, try clicking the "Check for updates" button in the Plugins → Add New Plugin → Commercial tab.

Finally, please remember to back up your database before proceeding.

March 6, 2025 at 6:07 pm #16785005

justinD-20

Hey Andry, I've checked the portal but it's not showing any updates available...

Plugin-status.jpg
March 6, 2025 at 10:12 pm #16785581

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for your feedback.

Have you tried to go to Plugins → Add New Plugin → Commercial tab and click "Check for updates"?