scooterlord
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Views Counter] Post counter stays at 0Hello and thank you for your reply. Could you take a look at the website and try to see if something is wrong? I currently have it set the counter mode to JS.
The website is https://www.motornoid.com
Also, attaching a screenshot from wp-admin to see the status of things: https://i.imgur.com/p3pQ2IF.png
Any ideas or pointers are greatly appreciated.
Edit: I disabled all caching – Object Cache Pro, Breeze and Cloudflare. I was checking a specific post and noticed that for some reason and only when I am logged in I can see the count. Loading the same post in private browsing still indicates 0.
In the meantime I also disabled js minification.
Edit2: I have identified the culprit to be Varnish cache which does an extremely good job optimizing the website. Any ideas on how to handle such a case?
- This reply was modified 1 year, 1 month ago by scooterlord.
- This reply was modified 1 year, 1 month ago by scooterlord.
- This reply was modified 1 year, 1 month ago by scooterlord.
Hello, any news on this one?
Yes, here it is:
Also, here is the link to access this specific post:
Language is greek this is why the link is rendered this way. Below, viber renders creates a link that goes straight to the 404 page.
…viber creates the link as expected:
Hello again and thank you for your reply. I just noticed that links open properly on viber mobile.
The problem though is with desktop devices; viber sharing works as expected – viber links are recognized and trigger a link open in the viber desktop app, however, some links shared this way work while others are broken and can’t really tell why.
So, is the desktop version not supported? Would you still be willing to investigate?
Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] Javascript errors on the consoleAh, thank you so much for taking the time and effort to check this. TBH I have no clue how this code appeared there – it wasn’t loading properly anyway, so I safely removed it.
Thank you again and I apologize for any trouble I caused!
Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] Javascript errors on the consoleHello and than you in advance for your effort. The link is moved to the link field.
- This reply was modified 1 year, 3 months ago by Jan Dembowski.
Forum: Plugins
In reply to: [Conditional Fields for Contact Form 7] Disables CF7 client side validationHello and thank you for your reply! Until you do that maybe you could implement a quick fix, like for example not loading the respective js code if conditionals are not used in a form.
In my usecase I am using conditionals functionality in 1 of the 2 forms on the website. So, for the one that is not using conditionals at all, client-side validation is missing due to the conditionals script needlessly being loaded.
Just a thought!
This is awesome – works as intended! Thanks!
Thank you for your reply Joachim! Found a way around it, thanks!
Forum: Plugins
In reply to: [Print, PDF, Email by PrintFriendly] jQuery error from inline functionHello again. I apologize for wasting your time but this was a ‘me’ problem.
I was deregistering jquery for an older version and something must have bothered it; I didn’t have problem with any of the other jquery scripts I was loading (bootstrap, custom, etc) so it led me to think it was something else.
I appreciate the fast response though and this is indicative of the quality of the plugin. Thank you!
Forum: Plugins
In reply to: [Print, PDF, Email by PrintFriendly] jQuery error from inline functionBy running the code in the console I get ‘undefined’.
However, if I remove the following it works:
(function($){
})(jQuery);
Forum: Plugins
In reply to: [Print, PDF, Email by PrintFriendly] jQuery error from inline functionHello and thank you for the fast response. By localized I mean it’s enqueued within the functions.php.
I am still working on this locally so, I am afraid there is no link. Below is a screenshot of what the error I am getting:
Forum: Plugins
In reply to: [W3 Total Cache] wp_trash_post too slow due to w3tcHello again and thanks for your reply.
Currently, I can’t find it either. I dumped contents of
$wp_filter['wp_trash_post']
and am certain I saw it, but now I can’t see it either nor replicate it myself.Currently the callbacks for the
wp_trash_post
hooks are:[0] => Array ( [000000005fb447fa000000006e03b44con_post_change] => Array ( [function] => Array ( [0] => W3TC\Util_AttachToActions Object ( ) [1] => on_post_change ) [accepted_args] => 1 ) )
What you describe makes sense, and this is why it struck me as to why is the whole cache purged? However, it is strange that when I try to trash a post it takes an awful long time – like 30 seconds; looks like I have to investigate further. Can you think of any reason why this could be happening?
Forum: Plugins
In reply to: [W3 Total Cache] wp_trash_post too slow due to w3tcThank you for the reply, however, your reply is not answering my question, so I am rephrasing below:
– Action
w3tc_flush_posts()
is attached on a hook that runs alongsidewp_delete_trash()
– what is the reasoning behind this? I can only assume that it is to ‘clear’ the post from cached categories/frontpage/etc, is this correct?
– Is it safe to remove it and/or replace it withw3tc_flush_post()
? If so, how is it done?
– Last but not least, can you usew3tc_flush_post()
on a deleted post? Do you need an ‘active’ post to resolve the ID to flush it?Thank you in advance for your time and effort!
Hello again and thanks for your interest.
The function was running on the
pre_get_posts
hook and the reason I didn’t paste it is that the query itself was not the cause of the problem. Currently, I moved on and there’s no way for me to replicate the issue :/I would consider this topic closed – I will keep an eye to report back if I come across anything similar. Thanks for your interest and the wonderful support.