antoniop80
Forum Replies Created
-
Thank you so much. That did the trick!
Regards,
APHello @dimodi,
Thanks.
I added the function below in the functions.php.add_filter( 'sgs_whitelist_wp_content' , 'whitelist_file_in_wp_content' ); function whitelist_file_in_wp_content( $whitelist ) { $whitelist[] = '/plugins/translatepress-multilingual/includes/trp-ajax.php'; return $whitelist; }
I’ve tried both options, file name and relative path but no change. Error 403 persists.
Regards,
APHello @delyandelov,
Even after adding the .htaccess with those directives, the issue persists as can be seen in the attached console image below:
The url to see this error in the console is: https://gerolatsitis.com/en/projects/
The .htaccess file was created in the root folder includes of the plugin folder, as it is with the following directives:<FilesMatch “\.(?i:php)$“> <IfModule !mod_authz_core.c> Order deny,allow Allow from all </IfModule> <IfModule mod_authz_core.c> Require all granted </IfModule> </FilesMatch>
Thanks,
APHello @delyandelov,
Thank you for the reply.
2 questions:
– When the plugin is updated, will the custom .htaccess file be deleted?
– The SG Security Optimizer when “reads” the content of wp-content/plugins/translatepress-multilingual/includes/ and verifies that there is an .htaccess file, will ignore this folder and exclude it?
Thanks,
APHello @k3llanved,
Thank you for the quick reply.
I understand that the rules are enforced globally at .htaccess but, would be possible in the .htaccess grant an exclusion to the specific script/plugin folder that is somewhat incompatible with the SG Security Optimizer plugin?
I’m very happy with the SG Security Optimizer plugin so I never considered using any other security plugin like Wordfence or Sucuri.
Kind regards,
António PThe issue only happens when creating out-of-stock labels. For example, in this link on a different section of the website, https://my-brands.cy/product-category/shop/kids-water-bottles/, the custom label “New!” was created by using your plugin and it works perfectly.
Is it some WooCommerce setting that doesn’t let your plugin work as expected?
The page builder in use is Elementor Pro, in case this is relevant.
Thank you.Hi,
That was added programmatically by using a PHP snippet. I leave it below just for reference:/* OUT OF STOCK custom label displayed on products in the Shop Page */ add_action( 'woocommerce_after_shop_loop_item_title', 'show_stock_shop', 10 ); function show_stock_shop() { global $product; if($product->managing_stock() && (int)$product->get_stock_quantity() < 1) echo '<p id="shop-out-of-stock" style="color: white; font-size: 14px; font-weight: 500; background: orange; border: 1px solid red; width: fit-content; padding: 6px 12px; margin: 0 auto;">'.__('Out of stock').'</p>'; }
I wanted to use your plugin for the creation of the label and for some reason doesn’t work as reported in my original post.
Forum: Plugins
In reply to: [Modula Image Gallery] Divi Text with Dynamic Content + ACF + ModulaHi Mihaela,
Thanks for confirming Modula doesn’t have any type of cache.
Anyway the problem is fixed and regardless of what happened, in the future I’ll use Modula anytime I need a simple gallery.
All the best and regards,
AntonioForum: Plugins
In reply to: [Modula Image Gallery] Divi Text with Dynamic Content + ACF + ModulaHi @mplusb,
Mihaela, thank you for your quick reply.
I was forced to delete the text module and the dynamic field from ACF. And then redo them again. I even deleted the text module when accessing the template through the project page itself and not through the Divi Builder template option.
For some weird reason, there was some persistent cache issue going with the shortcode in the corresponding dynamic field. I cannot explain why the issue was happening. I suspect could have been a glitch with Divi itself or with the cache plugin.
Regardless, a question: when you paste the shortcode in a text module it’s just text, right? I mean, the gallery to each every single shortcode corresponds, doesn’t enforce itself with some kind of persistent cache, right?
Kind regards,
AntonioHi,
Thank you for your reply.
I did as you suggested, for one of the strings. The other, I just didn’t apply any translation so it was left in plain English. And it worked. Not a perfect solution but acceptable. And for the next time, I know better. ??
Thank you and take care,
AntonioHi Alex,
Thanks for your reply.
Cleaning the database did the trick. Also, I tuned CloudFlare and the Siteground Optimizer plugin so, now the pages are loading fast.
Disable dynamic translation option is ticked.
Now, other issue has arise. In the posts titles, in a blog page, when user goes to:
– blog page > goes to an article/post
– goes back to blog page > changes language
– goes to an article/post
– goes back to blog pageWhere’s the title, displays this: #!trpst#trp-gettext data-trpgettextoriginal=533#!trpen#Shares#!trpst#/trp-gettext#!trpen#
This can be visible right now, at this link: https://www.charilaoubros.com/en/4vita/ together with the missing English translation.
Any ideas?
Thx!
[Moderator note: Please, No bumping].
- This reply was modified 2 years, 5 months ago by antoniop80.
- This reply was modified 2 years, 5 months ago by antoniop80.
- This reply was modified 2 years, 5 months ago by Steven Stern (sterndata).
Hello @vtrandev,
Thank you for your quick reply.
The article you shared described exactly the issue so I was able to fix it quickly. All the Cron jobs ran as expected. The only negative output is that now the Bot Fight Mode is off since all the requests, in regards to Cron Jobs, for a specific IP were being blocked.
I created a WAF rule to allow the IP but still the same issue was happening. It is stated here: https://developers.cloudflare.com/firewall/cf-firewall-rules/actions/ that even there is a rule that allows the designated IP access, Bot Fight still have action over it. so I deactivated the Bot Fight Mode.
Please note I’m using Cloudflare free plan.
If you have other suggestion about bots/WAF rules in Cloudflare, please let me know. Thanks.
Regards,
Antonio