Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing an issue with an unclosed

<span>

tag in the file

woocommerce-multilingual/inc/class-wcml-cart-sync-warnings.php

on line 87, and a recommendation to use

add_query_arg()

instead of string concatenation.
Solution:
We recommend updating to WooCommerce Multilingual version 5.5.0 or higher, as this update addresses the issue. If the problem persists after updating, or if this solution does not apply to your case, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins.

If you still need assistance, we encourage you to open a new support ticket at WPML support forum.

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 6 replies, has 1 voice.

Last updated by Marcel 1 week, 2 days ago.

Assisted by: Marcel.

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

November 26, 2024 at 11:09 am #16444200

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

thank you very much for your reports. I have forwarded them to our development team and will keep you updated as soon as I receive feedback.

Best regards,
Marcel

November 27, 2024 at 2:45 pm #16450672

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

the workaround from https://wpml.org/forums/topic/invalid-url-in-admin-notice/ will also cover the span tag.

Best Regards,
Marcel

November 27, 2024 at 10:05 pm #16451815

desireeM

Ok, awaiting the release

November 28, 2024 at 8:21 am #16453379

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

(Internal Status Change)

July 7, 2025 at 3:10 pm #17209831

Marcel
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

this was fixed with WooCommerce Multilingual 5.5.0.

Best Regards,
Marcel