This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing an issue where the admin notice contains an invalid URL, this might be due to the lack of URL arguments on certain pages like the dashboard.
Solution:
We plan to address this in a future release. Meanwhile, you can use the following workaround:
$message = '<div class="message error otgs-is-dismissible">';<br />$message .= '<p>';<br />$message .= sprintf( $reset_cart_message, $reset_cart_configure_link );<br />$message .= '</p>';<br />if (strpos($request_url, '?') !== false) {<br />$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>';<br />} else {<br />$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>';<br />$message .= '</div>';
Additionally, this issue was resolved in WooCommerce Multilingual version 5.5.0.
Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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 5 replies, has 0 voices.
Last updated by 3 days, 23 hours ago.
Assisted by: Marcel.