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 4 replies, has 0 voices.

Last updated by Marcel 1 day, 6 hours ago.

Assisted by: Marcel.

Author Posts
November 23, 2024 at 5:42 am #16435572

desireeM

Background of the issue:
admin notice contains invalid URL:

<a class="notice-dismiss" href="/wp-admin/&wcml_action=dismiss_cart_warning">

Symptoms:
The URL in the admin notice is incorrect. I expected to see: /wp-admin/?wcml_action=dismiss_cart_warning, but instead, I got: /wp-admin/&wcml_action=dismiss_cart_warning.

Questions:
Please fix this.

November 26, 2024 at 11:09 am #16444201

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

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

Best regards,
Marcel

November 27, 2024 at 2:43 pm #16450668

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

We plan to integrate this in one of the upcoming releases. The issue arises because certain pages, such as the dashboard, lack URL arguments. In the meantime, you can use the following workaround:

	$message  = '<div class="message error otgs-is-dismissible">';
		$message .= '<p>';
		$message .= sprintf( $reset_cart_message, $reset_cart_configure_link );
		$message .= '</p>';
		if (strpos($request_url, '?') !== false) {
			$message .= '<a class="notice-dismiss" href="' . $request_url . '&wcml_action=dismiss_cart_warning"><span class="screen-reader-text">' . esc_html__( 'Dismiss', 'woocommerce-multilingual' ) . '</a></span>';
		} else {
			$message .= '<a class="notice-dismiss" href="' . $request_url . '?wcml_action=dismiss_cart_warning"><span class="screen-reader-text">' . esc_html__( 'Dismiss', 'woocommerce-multilingual' ) . '</a></span>';
		}
		$message .= '</div>';

Best Regards,
Marcel

November 27, 2024 at 10:05 pm #16451814

desireeM

Please fix it

November 28, 2024 at 8:18 am #16453376

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Yes, you will get informed here once it's available.

Best Regards,
Marcel