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/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 5 replies, has 1 voice.

Last updated by Marcel 3 days, 14 hours 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 ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01: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 ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01: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 ) German (Deutsch )

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

(Internal Status Change)