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.
Tagged: Exception
This topic contains 8 replies, has 2 voices.
Last updated by Prosenjit Barman 1 year, 11 months ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
June 8, 2023 at 8:46 pm #13795785 | |
ryanS-20 |
I am trying to: Translate the full footer template. Link to a page where the issue can be seen:Any page. It is the footer template part. I expected to see: The french translateion Instead, I got: The english translation |
June 8, 2023 at 8:48 pm #13795787 | |
ryanS-20 |
Please see this thread (https://wpml.org/forums/topic/add-language-switcher-block-to-the-header-template-and-translate-not-working/). You'll need to login to the site as I'm following the WPML instructions to translate templates and it isn't working. Please provide the ability to share the user/password of the site ASAP. This project has been on hold for this issue for weeks. ITS ALREADY BACKED UP |
June 9, 2023 at 2:48 pm #13800641 | |
Prosenjit Barman WPML Supporter since 03/2023
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, I have checked your site and found that some content in the Footer area is appearing in the English language(Screenshot: hidden link). Maybe the translation of those contents hasn't been updated yet which is why they are still appearing in English. Would you please try to update the translation of the Footer template part and check if that helps? - Please go to WPML > Translation Management" You can also check this documentation on Translating block templates: https://wpml.org/documentation/getting-started-guide/translating-content-created-using-gutenberg-editor/translating-sites-that-use-full-site-editing/ I hope it will help. But, don't hesitate to let me know if you need further assistance in this matter. I will be happy to help you. Best Regards, |
June 9, 2023 at 3:16 pm #13800765 | |
ryanS-20 |
I already did all those things. As I mentioned: |
June 9, 2023 at 8:51 pm #13802161 | |
ryanS-20 |
Hey, I pointed out how I've already been trying to have this fixed for a long time (previous ticket). That ticket was closed without help. Then you gave me basically an auto-response ignoring how I requested on-site help (which the previous ticket had already been elevated too). AS MENTIONED IN THE FIRST COMMENT: I NEED FURTHER ASSISTANCE PLEASE PROVIDE THE OPTION TO PROVIDE USER/PASS TO THE SITE IN QUESTION. |
June 12, 2023 at 7:50 am #13806779 | |
Prosenjit Barman WPML Supporter since 03/2023
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, Before requesting any credentials, our standard practice is to provide a potential solution or guidance. That is why I shared the documentation with you, in the hope that it would assist you in resolving the issue. However, since the problem persists despite your efforts, I would be more than willing to assist you further by examining the issue closely from your end. I will do my best to help you find a resolution. Please be informed that I enabled the private fields for you so that you can securely share the access. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT Looking forward to your response and kind cooperation in this matter. Best Regards, |
June 13, 2023 at 8:39 am #13814687 | |
Prosenjit Barman WPML Supporter since 03/2023
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I have thoroughly checked the issue and look like the issue is fixed now on your site. Here are the steps I followed to address the issue: - From your WordPress Dashboard, I switched to the French language. Please check this video for a better understanding- hidden link After making these adjustments, the French content is showing properly. The approach is kind of manual for now, but this is how you can display the Translated contents in other languages. However, I would like to inform you that FSE is still not completely compatible with WPML. So, I will check if there is any issue translating the Template parts and if required, I will escalate the matter to the 2nd tier team for further investigation. I hope you can understand. Please let me know if you need any further clarification or assistance in this matter. I will be happy to assist you. Best Regards, |
June 13, 2023 at 4:13 pm #13819239 | |
ryanS-20 |
When I add the language switcher to the template it bricks the site: Fatal error: Uncaught TypeError: WPML\BlockEditor\Blocks\LanguageSwitcher\Model\LanguageItemTemplate::__construct(): Argument #1 ($template) must be of type DOMNode, null given, called in /sites/northhr.interplay.design/files/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Blocks/LanguageSwitcher/Parser.php on line 79 and defined in /sites/northhr.interplay.design/files/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Blocks/LanguageSwitcher/Model/LanguageItemTemplate.php:22 Stack trace: #0 /sites/northhr.interplay.design/files/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Blocks/LanguageSwitcher/Parser.php(79): WPML\BlockEditor\Blocks\LanguageSwitcher\Model\LanguageItemTemplate->__construct() #1 /sites/northhr.interplay.design/files/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Blocks/LanguageSwitcher/Render.php(38): WPML\BlockEditor\Blocks\LanguageSwitcher\Parser->parse() #2 /sites/northhr.interplay.design/files/wp-includes/class-wp-block.php(258): WPML\BlockEditor\Blocks\LanguageSwitcher\Render->render_block() #3 /sites/northhr.interplay.design/files/wp-includes/class-wp-block.php(244): WP_Block->render() #4 /sites/northhr.interplay.design/files/wp-includes/class-wp-block.php(244): WP_Block->render() #5 /sites/northhr.interplay.design/files/wp-includes/class-wp-block.php(244): WP_Block->render() #6 /sites/northhr.interplay.design/files/wp-includes/class-wp-block.php(244): WP_Block->render() #7 /sites/northhr.interplay.design/files/wp-includes/blocks.php(1072): WP_Block->render() #8 /sites/northhr.interplay.design/files/wp-includes/blocks.php(1110): render_block() #9 /sites/northhr.interplay.design/files/wp-includes/blocks/template-part.php(148): do_blocks() #10 /sites/northhr.interplay.design/files/wp-includes/class-wp-block.php(258): render_block_core_template_part() #11 /sites/northhr.interplay.design/files/wp-includes/blocks.php(1072): WP_Block->render() #12 /sites/northhr.interplay.design/files/wp-includes/blocks.php(1110): render_block() #13 /sites/northhr.interplay.design/files/wp-includes/block-template.php(242): do_blocks() #14 /sites/northhr.interplay.design/files/wp-includes/template-canvas.php(12): get_the_block_template_html() #15 /sites/northhr.interplay.design/files/wp-includes/template-loader.php(106): include('...') #16 /sites/northhr.interplay.design/files/wp-blog-header.php(19): require_once('...') #17 /sites/northhr.interplay.design/files/index.php(17): require('...') #18 {main} thrown in /sites/northhr.interplay.design/files/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Blocks/LanguageSwitcher/Model/LanguageItemTemplate.php on line 22 |
June 14, 2023 at 12:40 pm #13825239 | |
Prosenjit Barman WPML Supporter since 03/2023
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I understood that the Language switcher is causing issues on your site. I would like to inform you that to maintain clarity in the thread, we are allowed to discuss one issue per thread. As the issue you mentioned in your last response is different than the initial issue, would you kindly create a new ticket by mentioning the other issue? One of our supporters will take the ticket and help you accordingly. I hope you can understand the matter. But, as you already have shared the access, let me inform you that I initially checked but haven't seen any issues after placing the language switcher. kindly check this video(hidden link) for a better understanding. If there are any specific steps to see or reproduce the error, I kindly request that you add those steps to the other ticket. This will allow our supporters to identify the issue promptly and work towards finding a solution in the shortest possible time. I hope you can understand the matter. Please feel free to let me know if you require any additional assistance with the initial issue. I'm here to help and will be glad to assist you further. Best Regards, |