Skip Navigation

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
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+03:00)

This topic contains 4 replies, has 2 voices.

Last updated by Osama Mersal 8 months, 3 weeks ago.

Assisted by: Osama Mersal.

Author Posts
September 14, 2024 at 9:49 am #16178447

alexanderY-10

Background of the issue:
I am receiving a fatal error when clicking the Check availability button on the Home Screen. I also receive it when I click book now in the upper right corner and when I choose the dates. I tried to disable the string translation app and the error disappeared. Earlier I tried to translate the button in Elementor by mistake, before realizing that I should translate it in the string translation app. After that, I tried to revert to the earlier version of the page in Elementor. I have translated many strings before the error happened and even after checking them again I cannot seem to find the problem. This is the error I receive: Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /home/hote0mcf/public_html/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:100 Stack trace: #0 /home/hote0mcf/public_html/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php(100): sprintf('/home/hote0mcf/...', 'bg_BG') #1 /home/hote0mcf/public_html/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php(65): WPML_ST_Translations_File_Registration->save_file_info('We have found %...', 'We have found %...', '/home/hote0mcf/...') #2 /home/hote0mcf/public_html/wp-includes/class-wp-hook.php(326): WPML_ST_Translations_File_Registration->cached_save_mo_file_info(false, 'We have found %...', '/home/hote0mcf/...') #3 /home/hote0mcf/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array) #4 /home/hote0mcf/public_html/wp-includes/l10n.php(768): apply_filters('override_load_t...', false, 'We have found %...', '/home/hote0mcf/...', 'bg_BG') #5 /home/hote0mcf/public_html/wp-content/plugins/wpml-string-translation/classes/MO/JustInTime/MO.php(95): load_textdomain('We have found %...', '/home/hote0mcf/...', 'bg_BG') #6 /home/hote0mcf/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php(228): WPMLSTMOJustInTimeMO->WPMLSTMOJustInTime{closure}('/home/hote0mcf/...', 0) #7 /home/hote0mcf/public_html/wp-content/plugins/wpml-string-translation/classes/MO/JustInTime/MO.php(94): WPMLCollectSupportCollection->each(Object(Closure)) #8 /home/hote0mcf/public_html/wp-content/plugins/wpml-string-translation/classes/MO/JustInTime/MO.php(76): WPMLSTMOJustInTimeMO->loadTextDomain() #9 /home/hote0mcf/public_html/wp-content/plugins/wpml-string-translation/classes/MO/JustInTime/MO.php(48): WPMLSTMOJustInTimeMO->load() #10 /home/hote0mcf/public_html/wp-includes/l10n.php(195): WPMLSTMOJustInTimeMO->translate('We have found %...') #11 /home/hote0mcf/public_html/wp-includes/l10n.php(306): translate('We have found %...', 'We have found %...') #12 /home/hote0mcf/public_html/wp-content/plugins/uxper-booking/includes/classes/class-template-hooks.php(112): __('We have found %...', 'We have found %...', 'hook_search_form('') #14 /home/hote0mcf/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #15 /home/hote0mcf/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #16 /home/hote0mcf/public_html/wp-content/plugins/uxper-booking/templates/search-room.php(27): do_action('uxper_hook_sear...') #17 /home/hote0mcf/public_html/wp-includes/template-loader.php(106): include('/home/hote0mcf/...') #18 /home/hote0mcf/public_html/wp-blog-header.php(19): require_once('/home/hote0mcf/...') #19 /home/hote0mcf/public_html/index.php(17): require('/home/hote0mcf/...') #20 {main} thrown in /home/hote0mcf/public_html/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php on line 100

Symptoms:
Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /home/hote0mcf/public_html/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/wpml-st-translations-file-registration.php:100

Questions:
Could you assist me with that and give me tips how to make the site work again properly?

September 15, 2024 at 11:03 am #16179834

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

September 16, 2024 at 10:17 am #16182846

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Monika,

Please check if you have a firewall rule that prevents some countries or IPs from accessing the dashboard because I get the "Access denied" screen. (Kindly check the attached screenshot)

Best regards,
Osama

2024-09-16_13-15-39.png
September 16, 2024 at 11:56 am #16183491

alexanderY-10

Hello,

I disabled the security plugin, so you should have access now.

Best regards,
Monica

September 16, 2024 at 3:08 pm #16184681

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi Monika,

Thanks for the access details. I installed a local copy of your site and tried some workarounds to fix the issue with no luck.

It could be a compatibility issue. Please log in to hidden link">this sandbox site and install your theme. After that, please create a test room and add the availability form to a page to replicate the issue.

If the issue is replicable, please let me know to consult our compatibility team.

Best regards,
Osama

The topic ‘[Closed] Receiving Fatal Error when clicking a button on a translated page’ is closed to new replies.