Chillifish
Forum Replies Created
-
I’ve just started getting this error also.
Forum: Plugins
In reply to: [WP Fastest Cache] Not workingOh, okay. I would have thought it would cache the comments too.
Forum: Plugins
In reply to: [WP Fastest Cache] Not workingJust want to add that this isn’t resolved for me. No matter what browser I use or whether I’m logged in or not, I’m not seeing a cached file. However, I don’t have time to investigate and I’m passing the site to someone else anyway.
Forum: Plugins
In reply to: [WP Fastest Cache] Not workingYes, however, it doesn’t have the comment at the bottom of the page saying when the page was cached, etc.
Forum: Plugins
In reply to: [WP Fastest Cache] Latest update (0.8.7.0) causing error.I have just discovered why I’m seeing the message all over my live site and I can’t replicate it on my production site. The error seems to be happening only for mobiles and tablets. Again, it is on a page that is not supposed to be cached.
Forum: Plugins
In reply to: [WP Fastest Cache] Latest update (0.8.7.0) causing error.My error logs are full of the warning, however, it doesn’t seem to be causing any issues, or if it is, nobody’s phoning up to complain about it. Rather irritatingly my staging server isn’t doing it despite them being the same.
Forum: Plugins
In reply to: [WP Fastest Cache] Latest update (0.8.7.0) causing error.Looking at my error logs, it seems as if this is still happening occasionally, however, I haven’t been able to replicate it myself yet. I’ll keep monitoring it.
Forum: Plugins
In reply to: [WP Fastest Cache] Latest update (0.8.7.0) causing error.Fantastic thanks for such a quick response. And thanks for creating such a great plugin!
- This reply was modified 7 years, 9 months ago by Chillifish. Reason: To mark resolved
Forum: Plugins
In reply to: [WooCommerce] EU VAT Number plugin not workingLooking at that gist, it seems to mask the error rather than solve it. If they are VAT registered, they want the VAT removed.
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Discount not appliedIt’s related to these two lines:
$prod_unique_id = $woocommerce->cart->generate_cart_id( $product_id ); $woocommerce->cart->set_quantity( $prod_unique_id, $quantity );
If I remove them it works, but people can change the quantity of items in their cart, which I don’t want.
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Discount not appliedThe discount is being applied on the item line in the cart, but the subtotal and total are not being calculated and applied. I have a custom function that seems to be interrupting it, but not sure why or where.
// add unpaid entries to cart add_action( 'pre_get_posts', 'add_entries_to_cart' ); function add_entries_to_cart() { global $woocommerce; // Check we are logged in if ( is_user_logged_in() ) { // Check if we are in admin area if ( ! is_admin() ) { $user = wp_get_current_user(); $entries = get_user_meta($user->ID, 'entry_count', true); $entries_paid = get_user_meta($user->ID, 'paid_entries', true); $product_id = 229; $quantity = $entries - $entries_paid; $found = false; //check if product already in cart, get id if ( sizeof( $woocommerce->cart->get_cart() ) > 0 ) { foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) { $_product = $values['data']; if ( $_product->id == $product_id ) { // correct quantity // Get it's unique ID within the Cart $prod_unique_id = $woocommerce->cart->generate_cart_id( $product_id ); $woocommerce->cart->set_quantity( $prod_unique_id, $quantity ); $found = true; } } // if product not found, add it if ( ! $found ) { $woocommerce->cart->add_to_cart( $product_id, $quantity ); } } // no product in cart so add it else { // add to cart $woocommerce->cart->add_to_cart( $product_id, $quantity ); } } } }
Forum: Fixing WordPress
In reply to: Problems with add_rewrite_rule() regexTried to include the subdirectory in it, but that’s made no difference either.
Just realised, if I add a / before, then although it’s keeping the last part of the URL, it’s giving me a 404.
Forum: Fixing WordPress
In reply to: Problems with add_rewrite_rule() regexAdded another / before the string
(^/cottage-details/([^/]+)/?$)
and it’s stopped taking the last section off. I had assumed as the rewrite base includes the subdirectory, I’d be starting the regex to not include it.Forum: Fixing WordPress
In reply to: Problems with add_rewrite_rule() regexMod rewrite is on, but the instructions in that link don’t work for me. I don’t know whether it’s because it’s in a sub directory or whether it might actually be to do with the problem…
EDIT. Had made a mistake with the way I’d entered the data. mod_rewrite is working perfectly.
Forum: Fixing WordPress
In reply to: Problems with add_rewrite_rule() regexI just tried your suggestion BTW and again, it works in the rules, but doesn’t work when browsing.
It’s as if the server isn’t writing it properly. Should WordPress be writing the rule to the .htaccess?