Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 9 replies, has 1 voice.

Last updated by Bruno Kos 1 week, 3 days ago.

Assisted by: Bruno Kos.

Author Posts
August 31, 2025 at 4:23 pm #17360604

muhamedF

Background of the issue:
I am experiencing numerous errors on my website, hidden link, which started suddenly. The most frequent issue is an internal server error that prevents requests from being completed. This has been ongoing for the past two weeks and is significantly affecting my sales. Below is a snippet from the Woocommerce error log:

"2025-08-28T00:00:59+00:00 Critical Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "etheme_الصفحات_in_search_results" not found or invalid function name in /home/ninalaskincare/public_html/wp-includes/class-wp-hook.php:324 "

For context, I have recently cancelled my support plan and I'm not sure if this prevent my ability to update WPML.

the original function in question is "etheme_pages_in_search_results" but the word pages was translated to Arabic and the function name is now "etheme_الصفحات_in_search_results".

Symptoms:
500 Internal Server error due to translation of a function.

Questions:
How can I resolve the 500 Internal Server error on my website?
Why was part of the function name translated? And how can I revert it back?
How can I prevent this from happening in the future?

August 31, 2025 at 8:20 pm #17360901

Andrey
WPML Supporter since 06/2013

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

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

While one of my teammates handles your ticket, I will provide you with initial debugging steps.

Please update your WPML plugin and add-ons to the latest version, 4.8, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.

You can check the latest released versions under "My Account -> Downloads" on this site.

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Please remember to backup your database before you proceed.

Let us know if the issue persists after an update has been done.

September 3, 2025 at 1:31 am #17367882

muhamedF

Thank you for your response Andrey .. I have already updated the plugin to the latest version but the problem still persists

September 3, 2025 at 5:55 am #17368107

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

The fatal error is likely caused because the function name etheme_pages_in_search_results was translated to etheme_الصفحات_in_search_results; please check within String Translation and ensure this function name is not translated, as function names must always remain in their original form.

Or did you translate it somewhere else?

September 6, 2025 at 6:36 pm #17381258

muhamedF

I am certain I have not translated the function name somewhere else .. I have only been translating new products that I publish on my website and that has nothing to do with functions ..
Additionally, I searched for the function name within String translation but could not find it .. I would appreciate it if you can provide support ASAP as this issue has been affecting my sales for the past couple of weeks

September 8, 2025 at 8:09 am #17382643

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Would you be willing to provide me with WordPress and FTP credentials so I could investigate the issue directly?

Also let me know at which URL can I see the error 500.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

September 10, 2025 at 1:41 am #17389060

muhamedF

Hi Bruno,

I am honestly not sure which page triggers the 500 error message .. But guessing by the fact that it is translating a search function, I will assume that this happens when people use the search functionality to look for particular products

September 10, 2025 at 8:15 am #17389454

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

For some reason, I’ve started getting this error:
“Too Many Requests — The user has sent too many requests in a given amount of time.”

Can you check what’s causing this?

Also, could you please install the https://wordpress.org/plugins/string-locator/ plugin
and search for etheme_pages_in_search_results inside the theme folder?

September 17, 2025 at 4:43 pm #17410799

muhamedF

For some reason, installing the string locator plugin is breaking my website and causing the too many requests error

September 18, 2025 at 6:33 am #17411648

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Can you install this one instead?
https://wordpress.org/plugins/download-plugins-dashboard/

I will download it to my localhost (the theme) to search for this function and see if it is indeed made translatable.