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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/

This topic contains 1 reply, has 1 voice.

Last updated by desireeM 1 day ago.

Author Posts
November 23, 2024 at 8:07 am #16435694

desireeM

Background of the issue:
In same admin notice where I already reported other bug https://wpml.org/forums/topic/invalid-url-in-admin-notice/ theree is an unclosed "" which subsequently breaks HTML/rendering

<div class="message error otgs-is-dismissible">
							<p>Because of some elements in your site configuration, when the users switch the currency or the language on the front end, the cart content might not be synchronized correctly.</p>
							<ul>
								<li>Woocommerce Product Bundles</li>
							</ul>
							<p>
								It is recommended that you
								<strong>
									<a href="<em><u>hidden link</u></em>">configure WooCommerce Multilingual &Multicurrency</a>
								</strong>
								with the option to reset the cart in a situation like this.
								<strong>
									<a href="/?page_id=1141378&utm_source=plugin&utm_medium=gui&utm_campaign=wcml" target="_blank" rel="noopener">More details</a>
								</strong>
							</p>
							<a class="notice-dismiss" href="/wp-admin/&wcml_action=dismiss_cart_warning">
		<span class="screen-reader-text">Dismiss
							</a>
						</div>
[php]

the [php]<span class="screen-reader-text">Dismiss

is missing the closing

Symptoms:
The page is rendering incorrectly due to broken HTML caused by an unclosed tag in the admin notice.

Questions:
Fix it.

November 23, 2024 at 8:10 am #16435695

desireeM

The file is woocommerce-multilingual\inc\class-wcml-cart-sync-warnings.php line 87 it's missing the </span>

Same line is also the URL for https://wpml.org/forums/topic/invalid-url-in-admin-notice/

You should be using add_query_arg() instead of concat