CrazySerb
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] Litespeed has issues with Elementor CSS filesAhh, had no idea we could do that from the plugin itself. Thanks!
Forum: Plugins
In reply to: [LiteSpeed Cache] Litespeed has issues with Elementor CSS filesI am seeing the same issue on my end too. The minute Litespeed gets turned on, it literally kills off any references to Elementor CSS files, and that’s with all the CSS and JS optimizations disabled.
What a heck, guys?!I just figured out what the issue here was, and I had to Google the answer (instead of being told by the developer in a support ticket they responded to) – he added a new IP for this service that needed to be whitelisted.
But no announcement from the developer on this, no mention anywhere in the plugin admin area about this (as this should be mentioned the minute you activate the plugin, on the dashboard, as STEP 1), nothing.
Developer’s suggestion to fix this (instead of just whitelisting the new IP)? Disable your security software/firewall.
Ugh…Forum: Plugins
In reply to: [WP Customer Reviews] Review section showing in duplicate below footerWe are seeing this exact same behavior on Avada theme as well.
Anyone here to troubleshoot that?
@lgladdy latest version of ACF, but not using WPML at all. This just happened on a custom post edit attempt.
Here’s another “PHP Warning” that we’re seeing constantly clog up our error_log:
PHP Warning: Undefined array key “max_price” in /home/public_html/wp-content/plugins/woolentor-addons/classes/class.product_query.php on line 260
PHP Warning: Undefined array key “min_price” in /home/public_html/wp-content/plugins/woolentor-addons/classes/class.product_query.php on line 260Might be another check for valid values requred in that file instead of assuming all these values will always end up returning as expected per your default scenario.
Or rather, that get_meta_query() function might need this line changed:
if( isset( $_GET['min_price'] ) || isset( $_GET['max_price'] ) ){to use AND instead of OR condition.
Did you push this change on your end to your core code as well?
I think I got an update pushed on my end and it didn’t have this code in place, so I had to re-apply this fix all over again.Yeah, that fixes the 1st one, definitely.
Now, as far as that 2nd one, it has something to do with Elementor Pro plugin, as if I turn off either one (Elementor or Shoplentor) of the plugins the problem goes away. Obviously, kinda need both, so… any idea on how to go about fixing that query?
Hmm, nope. Those errors are still coming up, hundreds per second.
In the case of the first one reported I only see this variation of it now:2024-10-24 4:00:38 user @ localhost [] WARNING 1292: Truncated incorrect DECIMAL value: '' : SELECT MIN( CAST( meta_value AS DECIMAL(10, 2) ) ) FROM wp_postmeta WHERE meta_key = '_price'
where the value is empty. I guess you fixed the issue for non-empty values.
Taking a look at your code, I can assume that the full fix for that query would look something like thisSELECT MAX( CAST( meta_value AS DECIMAL(10, 2) ) ) FROM {$wpdb->postmeta} WHERE meta_key = %s AND meta_value != '' ...However, the 2nd error reported, with the long query, that one is still being logged over and over. And I can’t figure out where that’s coming from either from which specific function/code…
- This reply was modified 1 year, 7 months ago by CrazySerb.
Well, whether that’s a conflict with another plugin (maybe Elementor / Elementor Pro or Rank Math / Rank Math Pro?) or not, it’s somehow caused by this plugin, because with it turned OFF, we don’t have any of these issues… but yeah, if you can take a look at it, and I can send you a list of plugins we’re using on our end to test with, if you want, that’d be great.
Yeah, we’re on PHP 8.3…
Just add these two lines:
/checkout
^/checkout
To Cache -> 4. Excludes -> Do Not Cache URIs section.
That should do it.I just added an exception for /checkout page in LS cache, and that somehow fixed it.
That integration between WooCommerce and Litespeed Cache should have more options, such as this one – to exclude specific WooCommerce pages from being cached and so on.Hmm, that did not work for me at all – I can’t even get anything to print out from that function lscwp_esi_test() itself, before apply_filters echo statement…
Is there anything else in LS Cache plugin that I need to turn ON or OFF to make this work, other than turning ESI to ON that I might be missing somehow?I have tried using this approach as well:
https://docs.litespeedtech.com/lscache/lscwp/api/#generate-esi-block-urlbut I can’t just print out a content from another, external PHP file in function my_esi_block_esi_load() by using require_once(“/home/domain/file.php”); as that does nothing (doesn’t print out the contents of that file at all).
So that round-about solution still doesn’t work for what I’m dealing with here, which is exclude a whole .php file and its contents (that gets inserted into certain templates) from being cached, along with certain variables I set dynamically before including that file, as they are unique to each visitor.