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?
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:
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)
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.