averixus
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] 409 errors and reload loop on wp-adminScratch that, it’s not limited to firefox – it started happening in chrome too after a while of using the site. Disabling the plugin resolves the issue so it’s definitely plugin-specific and not a browser problem.
Forum: Plugins
In reply to: [W3 Total Cache] 409 errors and reload loop on wp-admin@vmarko I’m reopening this, because the problem has started happening again even with the server host cahing disabled. It’s seemingly come back out of the blue, after several days of not doing anything to the site at all. It seems to be restricted to Firefox browser, and it only happens while logged in as admin. It still happens in a private window with all extensions disabled.
- This reply was modified 2 months, 4 weeks ago by averixus.
Forum: Plugins
In reply to: [W3 Total Cache] 409 errors and reload loop on wp-adminThe errors started after I activated it and followed the setup guide. I didn’t have any other caching plugins, but I’ve realised that my host had automatic server caching. I’ve disabled that and reactivated W3TC and it’s working fine with no errors now.
After reading some related posts I tried this:
/* Only attach PDF invoice for UPS international orders */
add_filter( 'wpo_wcpdf_custom_attachment_condition', function( $attach, $order, $email_id, $document_type, $output_format ) {
if ($order->get_shipping_method() != "UPS") {
$attach = false;
}
}, 10, 5 );But it removes the attachments from all orders regardless of shipping type – the check for shipping method “UPS” doesn’t seem to be working. Is there detailed documentation on the
wpo_wcpdf_custom_attachment_condition
filter somewhere? Is$order
not an instance ofWC_Abstract_Order
as I assumed? I can’t think of an easy way to debug this function since addingecho
statements won’t actually output anywhere visible.- This reply was modified 5 months, 3 weeks ago by averixus.
Thank you so much!
Thanks for the response, that’s done the trick. It would be good information to have up front when making new filter sets ??
Hi @stepasyuk, do you have any ideas about this?
The filter plugin is Filter Everything — WooCoomerce Product & WordPress Filter. I opened a support thread over there but don’t have a solution yet (other than uninstalling the plugin which obviously removes the ability to filter altogether).
- This reply was modified 2 years, 3 months ago by averixus.
If I disable Filter Everything and manually enter the query URL with comma-separated values (e.g. https://tradescantia.uk/checklist/?availability=locally-produced,mass-produced), it works as intended.
But with Filter Everything enabled, the same URL gives a 404. Actually using the filter widget to create the same query generates the URL with semicolon-separated values instead, but still 404s.
Seems to be a problem with a filter plugin
Forum: Fixing WordPress
In reply to: Style a link based on the tags of the post it links toI don’t have any progress to repot I’m afraid, I haven’t had a chance to work on it
Forum: Fixing WordPress
In reply to: Style a link based on the tags of the post it links toThanks for the pointer! There probably won’t be more than a handful of links on any page, and at most four different tags to style, so that may be the way to go.
Forum: Fixing WordPress
In reply to: Style a link based on the tags of the post it links to@faisalahammad Thanks for the suggestions. That’s the rough logic that I’ve been aiming for, but my issue comes the step before then – how do I get the tags of the linked post (not the post that contains the link, the post being linked *to*), and edit the html of the linking post in response?
@threadi Thanks – disappointed but not surprised to find that it would be really difficult to implement. Are there any wordpress hooks that happen when the page is loaded/displayed, that could be intercepted instead? So the link would be stored with no css class, but at the point where the page is being loaded for the user, it would be checked to display the correct tag colour?
Checking the href attribute is a great idea, I hadn’t realised that was possible. Maintaining a separate list of all posts to store their link colours is probably more effort than it’s worth, but I’m definitely going to keep that option in mind.
Forum: Fixing WordPress
In reply to: How to add all current filter query parameters back to a new query?I’ve managed to achieve it by manually parsing the existing queries and turning them back into hidden input fields:
$current_taxes = $wp_query->query_vars['tax_query']; $hidden_queries = ''; foreach ($current_taxes as $tax) { $tax_name = str_replace('_', '-', $tax['taxonomy']); $tax_terms = implode(';', $tax['terms']); $new_query = '<input type="hidden" name="' . $tax_name . '" value="' . $tax_terms . '">'; $hidden_queries .= $new_query; }
Then adding those input fields into the sort button form. If there’s a more elegant way to do this I’d love to hear it.
Forum: Fixing WordPress
In reply to: Favicon not showing up on admin pages on chromeIt looks like adding the shortcut icon link did the trick and just took a while to show. ???♂?