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.
This topic contains 2 replies, has 0 voices.
Last updated by frankG-4 1 month, 3 weeks ago.
Assisted by: Kor.
| Author | Posts |
|---|---|
| March 2, 2026 at 4:28 pm #17865656 | |
|
frankG-4 |
This is the error: Fatal error: Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /pages/main2025/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringHtml/Repository/HtmlStringsRepository.php:31 Stack trace: #0 /pages/main2025/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringHtml/Repository/HtmlStringsRepository.php(31): DOMDocument->loadHTML() #1 /pages/main2025/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringHtml/Repository/HtmlStringsRepository.php(190): WPMLStringTranslationInfrastructureStringHtmlRepositoryHtmlStringsRepository->loadHtml() #2 /pages/main2025/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringHtml/Repository/HtmlStringsRepository.php(221): WPMLStringTranslationInfrastructureStringHtmlRepositoryHtmlStringsRepository->readAllRawGettextStringsFromHtmlScriptTags() #3 /pages/main2025/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringHtml/Repository/HtmlStringsRepository.php(237): WPMLStringTranslationInfrastructureStringHtmlRepositoryHtmlStringsRepository->readAllRawGettextStringsFromHtml() #4 /pages/main2025/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringHtml/Repository/HtmlStringsRepository.php(251): WPMLStringTranslationInfrastructureStringHtmlRepositoryHtmlStringsRepository->readAllGettextStringsFromHtml() #5 /pages/main2025/wp-content/plugins/wpml-string-translation/StringTranslation/Application/StringHtml/Service/HtmlStringsService.php(75): WPMLStringTranslationInfrastructureStringHtmlRepositoryHtmlStringsRepository->getAllStringsFromHtml() #6 /pages/main2025/wp-content/plugins/wpml-string-translation/StringTranslation/Application/StringHtml/Service/HtmlStringsService.php(66): WPMLStringTranslationApplicationStringHtmlServiceHtmlStringsService->extractStringsFromHtml() #7 [internal function]: WPMLStringTranslationApplicationStringHtmlServiceHtmlStringsService->readHtmlFromBuffer() #8 /pages/main2025/wp-includes/functions.php(5481): ob_end_flush() #9 /pages/main2025/wp-includes/class-wp-hook.php(341): wp_ob_end_flush_all() #10 /pages/main2025/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() #11 /pages/main2025/wp-includes/plugin.php(522): WP_Hook->do_action() #12 /pages/main2025/wp-includes/load.php(1308): do_action() #13 [internal function]: shutdown_action_hook() #14 {main} thrown in /pages/main2025/wp-content/plugins/wpml-string-translation/StringTranslation/Infrastructure/StringHtml/Repository/HtmlStringsRepository.php on line 31 I am translating into an own language (Easy language for accessibility) I translated each page on my own. |
| March 2, 2026 at 4:37 pm #17865698 | |
|
Kor |
Thanks for your reply. I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified. Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements. Your upcoming reply will be treated with confidentiality and will only be visible to you and me. ✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup. |
| March 3, 2026 at 8:46 am #17867186 | |
|
Kor |
Thanks for your reply. This is a known issue that has already been reported to our developers. I’ve applied the workaround mentioned in this ticket: https://wpml.org/ru/forums/topic/fatal-error-78/ , and everything appears to be working properly now. Could you please check on your end and confirm? |
| March 3, 2026 at 9:38 am #17867472 | |
|
frankG-4 |
Hi Kor, thanks for the quick help. Works perfectly. I Hope, the real Issue will be resolved soon. |
