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?
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.
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.
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
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