This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing a critical error when trying to edit the WPML Arabic homepage while Yoast SEO is active. Additionally, the client cannot use Yoast SEO's search appearance feature properly when WPML is active.
Solution:
We have identified that the issue was caused by some options from Yoast SEO being translated into Arabic, which was causing the error. To resolve this, we recommend the following steps:
1. Ensure that the Yoast SEO options are not being translated, or if they are, that they are translated correctly.
2. If the problem persists, we suggest temporarily deactivating the Yoast SEO plugin and then editing the WPML Arabic homepage.
3. Once the homepage is edited, reactivate Yoast SEO and check if the issue has been resolved.
If this solution does not seem relevant to your situation, please open a new support ticket with us.
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: Compatibility
This topic contains 11 replies, has 2 voices.
Last updated by Kor 1 year, 5 months ago.
Assisted by: Kor.
Author | Posts |
---|---|
December 26, 2023 at 12:11 am #15127709 | |
miraN-2 |
Tell us what you are trying to do? Yoast SEO and wpml are fighting on my website. I cannot edit the Wpml Arabic homepage while Yoast is active. It gives a warning that a critical error has occurred on the site. I cannot use Yoast properly while wpml is active. Search appearance is not working and I have been trying to install it for months due to these problems and I cannot finish the job. I need serious help Is there any documentation that you are following? Is there a similar example that we can see? What is the link to your site? |
December 26, 2023 at 5:20 am #15128165 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Hi there, Thank you for reaching out to WPML support. To gather more information about the critical error you're encountering, we kindly request that you share your WordPress debug.log (not WPML debug information). You can find instructions on how to enable the WordPress Debug log on this page: https://wpml.org/documentation/support/debugging-wpml/ To enable the WordPress Debug log, please follow these steps: 1. Open your wp-config.php file located in the root directory of your site. 2. Look for the following code: define('WP_DEBUG', false);. 3. Replace it with the following code: // Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); Once you've made this change, errors will be saved to a debug.log file inside the /wp-content/ directory. Afterward, please attempt to "edit the Wpml Arabic homepage while Yoast is active" again to trigger the "critical error" and then check if there are any errors or warnings related to WPML in the log file. If you could paste your debug.log to http://pastebin.com/index.php and provide us with the link, it would be greatly appreciated. This method ensures that the logs remain organized and don't clutter our discussion. Thank you! |
December 26, 2023 at 8:50 am #15128659 | |
miraN-2 |
Hi sir, |
December 26, 2023 at 5:38 pm #15130632 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your reply. I will need to closely examine your website. Therefore, 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. |
December 28, 2023 at 6:12 am #15133666 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
I appreciate your prompt response. Following my investigation, it has come to my attention that the issue is indeed associated with Yoast SEO, as evidenced by the error logs I've analyzed. I kindly ask that you reach out to Yoast SEO support and furnish them with the error logs included below to assist in their further investigation. Please keep me informed about the progress of this matter. [28-Dec-2023 06:06:59 UTC] PHP Fatal error: Uncaught ValueError: Unknown format specifier "$" in /wordpress/plugins/wordpress-seo/21.7/admin/formatter/class-metabox-formatter.php:116 Stack trace: #0 /wordpress/plugins/wordpress-seo/21.7/admin/formatter/class-metabox-formatter.php(116): sprintf('%1$sSEO% 2$s: %...', '<a href="#yoast...', '</a>', '<strong>\xD8\xBA\xD9\x8A\xD8\xB1 ...') #1 /wordpress/plugins/wordpress-seo/21.7/admin/formatter/class-metabox-formatter.php(44): WPSEO_Metabox_Formatter->get_defaults() #2 /wordpress/plugins/wordpress-seo/21.7/src/integrations/third-party/elementor.php(608): WPSEO_Metabox_Formatter->get_values() #3 /wordpress/plugins/wordpress-seo/21.7/src/integrations/third-party/elementor.php(457): Yoast\WP\SEO\Integrations\Third_Party\Elementor->get_metabox_script_data() #4 /wordpress/plugins/wordpress-seo/21.7/src/integrations/third-party/elementor.php(189): Yoast\WP\SEO\Integrations\Third_Party\Elementor->enqueue() #5 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(324): Yoast\WP\SEO\Integrations\Third_Party\Elementor->init('') #6 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /wordpress/core/6.4.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /srv/htdocs/wp-content/plugins/elementor/core/editor/editor.php(353): do_action('elementor/edito...') #9 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->enqueue_scripts('') #10 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #11 /wordpress/core/6.4.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /wordpress/core/6.4.2/wp-includes/script-loader.php(2262): do_action('wp_enqueue_scri...') #13 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts('') #14 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #15 /wordpress/core/6.4.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #16 /wordpress/core/6.4.2/wp-includes/general-template.php(3052): do_action('wp_head') #17 /srv/htdocs/wp-content/plugins/elementor/includes/editor-templates/editor-wrapper.php(31): wp_head() #18 /srv/htdocs/wp-content/plugins/elementor/core/editor/loader/v1/editor-v1-loader.php(110): include('/srv/htdocs/wp-...') #19 /srv/htdocs/wp-content/plugins/elementor/core/editor/editor.php(163): Elementor\Core\Editor\Loader\V1\Editor_V1_Loader->print_root_template() #20 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(324): Elementor\Core\Editor\Editor->init('') #21 /wordpress/core/6.4.2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #22 /wordpress/core/6.4.2/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #23 /wordpress/core/6.4.2/wp-admin/admin.php(419): do_action('admin_action_el...') #24 /wordpress/core/6.4.2/wp-admin/post.php(12): require_once('/wordpress/core...') #25 {main} thrown in /wordpress/plugins/wordpress-seo/21.7/admin/formatter/class-metabox-formatter.php on line 116 |
December 30, 2023 at 1:49 am #15137838 | |
miraN-2 |
Hello, I talked to the Yoast team and they said that the reason for the error was related to wpml and that there was no one who could do it themselves. The real problem is exactly this, when I edit the Arabic homepage, I get a warning saying "There has been a critical error on your site" and I cannot edit the page and unfortunately there is nothing I can do to solve the problem. |
December 30, 2023 at 5:32 pm #15138150 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your reply. I'm unsure how it relates to WPML when the error points to the Yoast SEO plugin. I guess I have to escalate this further to our 2nd Tier Support. To proceed with troubleshooting, we kindly request a site snapshot. Alternatively, with your permission, we can create a snapshot on our own. For this purpose, we typically recommend using the free plugin "Duplicator." If you are already familiar with how Duplicator works ( https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded. To assist you further, please follow these instructions: Refer to the instructions provided by WPML on how to provide supporters a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/ If the archive file exceeds 400MB in size, please utilize Duplicator's file filters to exclude the cache, wp-uploads directory, media, and archive files. Once you have the archive file, please share the link with us. You can use services such as Google Drive, Dropbox, or similar platforms as the snapshot file will likely be large. Please note that your next reply will be private, visible only to you and me. You can paste the link to the file there. Rest assured that once the issue is resolved, I will delete the local site. |
December 31, 2023 at 12:56 pm #15138825 | |
miraN-2 |
Hi sir, |
December 31, 2023 at 4:53 pm #15138948 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your reply. I can still escalate this to our 2nd Tier Support but it will cause some downtime. But I cannot promise that we can solve this since it's unrelated to WPML. If you agree, I will open a report and escalate this. |
January 3, 2024 at 9:54 am #15145697 | |
miraN-2 |
Okay sir please, |
January 4, 2024 at 8:02 am #15149441 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your patience. I've escalated this and I will come back to you once I've feedback. |
January 4, 2024 at 8:57 am #15149604 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your patience. The issue is fixed. It is due to some options from Yoast SEO is being translated to Arabic, hence breaking it. |
January 5, 2024 at 12:56 am #15153131 | |
miraN-2 |
Thank you so much ı appreciate, it was big problem for me. Thank youuuu |