thewebmonk
Forum Replies Created
-
Hello,
I tried WPML’s instructions but they did not work.But as I was doing some more tests on my own, I noticed that the Italian filters all work correctly when in the CMS I go to APPEARANCE > CUSTOMIZE and check the preview.
But on the live website, they do not, as explained in the opening thread.
So at this point I thought the issue was related to the Astra theme (since the preview works and the live website doesn’t), I contacted their support team and got this answer:
“After reviewing the details you shared, the behavior you’re describing, where filters work correctly in the Customizer preview but not on the live translated pages, is related to how the Filter Everything plugin handles translated URLs and filter states in a multilingual environment. This falls outside the scope of what Astra controls, as the theme is not involved in how the filter plugin processes or renders translated filter queries on the live frontend.
For this specific issue, we’d recommend reaching out to the Filter Everything plugin support team directly, as they would be best placed to investigate how their plugin interacts with WPML on live pages versus the Customizer preview context.”
I wonder if this additional information can be of help or if the issue still needs a deeper investigation.
Thanks!
Hello Victor,
thank you for your reply.I tried checking with WPML, and this is the answer by its AI chatbot, I will try to apply the fix in the weekend when I have time but for now I thought I would share it with you, if useful:
**
There is a known tracked bug between the Filter Everything plugin and WPML that closely matches what you’re describing — filter terms not working correctly on the frontend in translated languages. Before applying the workaround, I need to confirm one detail about your setup.
- Go to Plugins -> Installed Plugins and check whether Advanced Custom Fields (ACF) is active on your site.
- Also check: is the GENERE taxonomy a standard WordPress / WooCommerce product attribute or custom taxonomy, or is it a field you created using ACF?
–
I don’t use ACF, and GENERE is a product attribute
–
Since GENERE is a standard WooCommerce product attribute (not an ACF field), the relevant workaround is a tracked WPML bug with the Filter Everything plugin affecting filter term display in translated languages. Let’s apply the fix.
Before starting, take a full site backup.
- Go to Appearance -> Theme File Editor and select functions.php from your Astra Child theme (make sure the child theme file is selected, not the parent).
- Paste the following code at the very bottom of the file:
// WPML Workaround for compsupp-7581 add_filter('wpc_terms_before_display', 'wpml_compsupp7581_filter_wpc_filter_terms', 10, 4); function wpml_compsupp7581_filter_wpc_filter_terms($terms, $filter, $set, $urlManager) { if ( class_exists('Sitepress') ) { foreach ($terms as &$term) { $label = $term->name; $textdomain = 'WordPress'; $string_name = 'WPC Filter Label: '.substr($label, 0, 40); if ( apply_filters('wpml_default_language', NULL) == apply_filters('wpml_current_language', NULL)) { do_action('wpml_register_single_string', $textdomain, $string_name, $label); } $term->name = apply_filters('wpml_translate_single_string', $label, $textdomain, $string_name); } } return $terms; }- Click Update File to save.
- Visit your English shop page (the original-language version) — this registers the filter label strings with WPML.
After visiting the English page, go to WPML -> String Translation, search for
WPC Filter Labelunder the WordPress textdomain, and confirm that the GENERE / Genre term strings appear there ready for translation.Hello Victor,
yes I believe I have followed all the steps. Also, it used to work in the past, but I suspect that it stopped working with some of the recent WPML or Astra updates, I am not sure which one or when, I just happened to realise it now while browsing my website.
Here are 4 screenshots: https://imgur.com/a/UXOrzBE
Thank you
Hello, thank you, here it is: https://privatebin.syde.com/?c834103e8bc30924#DVabbUH5RShKicwy89dmrgYkAMvc9ea4YuFsij1MBwCy
Hello Krystian,
thank you for the reply.I don’t see any cookies mentioning PayPal following the scan. So I need to add the manually?
I guess I will open a ticket with CookieYes for them to help me add each cookie you mention manually.Meanwhile, I removed the script I had added for woocommerce_recently_viewed and republished the Cookie banner, now the payment buttons are showing again.
One last question: I have tested on my mobile and desktop if the Paypal buttons load either accepting or rejecting the cookies, and they do on my devices. Is there a chance that users around the world do not see the buttons? Might it depend from the device?
Thank you
Forum: Plugins
In reply to: [WooCommerce] Cookie script URL pattern for woocommerce_recently_viewed?AS INSTRUCTED I WILL OPEN A NEW THREAD
Hello Frank,
I have another problem, after hitting “publish the changes” on CookieYes, I tested the checkout process (luckily) and found out that the Paypal buttons were not showing! I tried both on mobile and desktop.
I have deactivated the CookieYes plugin, and the buttons reappered. I use WooCommerce PayPal Payments.
As Script I had put wp-content/plugins/woocommerce/ – I notice that in your instructions you had included a / at the beginning of the script, could that be the issue?
I see that the other Woocommerce cookies that were previously set, have the following pattern: plugins/woocommerce. Here they are:
woocommerce_items_in_cart
session
Script URL pattern: plugins/woocommercewp_woocommerce_session_*
2 days
Script URL pattern: plugins/woocommerceThe only exception is this:
woocommerce_cart_hash
session
Script URL pattern: Not availableJust for information, if useful, I also use LiteSpeed Cache plugin.
Thank you!
- This reply was modified 3 weeks, 2 days ago by thewebmonk.
Forum: Plugins
In reply to: [WooCommerce] Cookie script URL pattern for woocommerce_recently_viewed?Hello Frank,
thank you for your reply.
I believe that these are only Woocommerce widgets/recommendations visible on the front-end:
>Related products
>You may be interested in… (in the cart)
>Products by Tag (in blog posts)I have updated the CookieYes setting!
Forum: Plugins
In reply to: [WooCommerce] Custom Checkout Label and PlaceholderI apologise, thank you for your tips
Forum: Fixing WordPress
In reply to: How to add a mandatory consent checkbox in the commentsThank you both @threadi and @inam009
Yes, that’s the plugin I was considering but I was scared by the warning on top that says:
“This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.”
Maybe I will try it after all!
Forum: Plugins
In reply to: [WooCommerce] WordPress database error Commands out of syncThank you so much ! I will contact the Server.
Meanwhile, here is the requetested info:
Status Log https://pastebin.com/ptJ5CwC2
There are no recent Fatal Error logs, there is one from 6 February (when for some reason Woocommerce Multilingual got deactivated) https://pastebin.com/haudLh9B
Thanks again!
Hi, Jelena,
thank you for your help!
I was able to delete some tables from myphp, but not the following:
staging_xCJ_icwp_wpsf_ips
xCJ_icwp_wpsf_at_logs
xCJ_icwp_wpsf_ips
xCJ_icwp_wpsf_req_logs
xCJ_icwp_wpsf_resultitemsWhy is that? What other way can I delete them?
Also, I was trying to set “fernleafsystems\wordpress\plugin\shield\controller\controller” autoload to NO using Advanced Database Cleaner, or to delete it, but it’s impossible.
I saw another user had this same problem in another thread, but he was able to delete it from phpMyAdmin – but do I find it there?
Thank you!
Forum: Plugins
In reply to: [WooCommerce] Too Many Requests error after Woo updateHello Zubair,
the hosting company helped me fix the problem, looks like it was a malicious attack from some bots that had my website offline. But the event coincided with the time at which WooCommerce Multilingual for some reason was deactivated and created those errors in the logs. Not sure what caused it, if the malicious attack could deactivate the plugin.
Thank you
Raffaella
Hello Nicholas,
for some reason WooCommerce Multilingual was deactivated at some point. I don’t know if it coincided with a malicious attack from some bots that caused my website offline with the “Too Many Requests” issue, the time was the same. Not sure what caused it, if the malicious attack could deactivate the plugin.
I re-installed it and everything is fine now. Thank you for your help.
The Hosting Company was able to make me log into WordPress again, here is some more information from the WooCommerce Logs (fatal-errors-2025-02-06)
Thank you
Thank you Jelena, that discussion is about AutoLoaded Options, not sure it’s the same thing I am asking. I will try to find other answers.