xellagm
Forum Replies Created
-
Hello ! @daweb has the correct answer, I reach the ACF Support with my Premium Account, and they told me to increase the value of PHP max_input_vars parameter. Indeed I have this error in PHP logs : “PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0”.
I think it’s not the best way to resolve the problem, so I’m trying to ask them to make a code review to resolve this problem, or to go back to the old code in the includes/validation.php file, in the ajax_validate_save_post() method.
Hello ! I see that you added this feature to choose in settings if we want to Load Scripts Globally or not, which is a great idea for performance, but I’ve got an issue with that new functionnality, I load a video in my <header> section with a custom code :
print do_shortcode('[videojs_video id="homevideo" url="..."]);
The thing is that this part of the page is not saved in post->post_content datas, so my video was not loading as the script was not added because the shortcode was not founded in the code.
Could you, maybe, add a filter or action to choose in our functions.php to force adding the JS and CSS of the plugin on specific page, for exemple :
add_filter('active_videojs_assets', 'my_custom_function');
function my_custom_function() {
if ( basename(get_page_template()) == "homepage.php" ) :
return true;
else :
return false;
endif;
}Something like that, so we can manually add script in specific pages of our theme.
Thank you !
Forum: Plugins
In reply to: [W3 Total Cache] Proxy (Varnish) Cache not purged when I update postHello,
I send a message via the support platform from the website.
I have activated Debug Logs, but there is nothing about Varnish in the HTML comment, as you can see here : https://i.imghippo.com/files/BWut71722434846.png
For information, my website is a WordPress Multisite.
Forum: Plugins
In reply to: [W3 Total Cache] Proxy (Varnish) Cache not purged when I update postHello Marko,
I try to configure it on a preprod that is restricted by ip. If you could find a way to give me your IP Address I could autorize you to see the website.
To test Varnish Purge with W3TC, I change elements on my homepage, and test on another private Chrome page, when I reload the page, my modifications are not visible.
When I purge all, it’s not clear Varnish Cache. Is there a way to get some logs maybe that I could send you ?
In which files in the projet could I find commandes that should send Purge directive to Varnish please ? I could try to dump results from the function and see what I have.
Thank for your support !
Forum: Plugins
In reply to: [W3 Total Cache] Proxy (Varnish) Cache not purged when I update postHello,
Here you can find my parameters (purge policy is checked) :
- General params : https://i.imghippo.com/files/j3Wwm1722348878.jpg
- Page Cache Config : https://i.imghippo.com/files/7HeOl1722348657.jpg
With theses parameters it’s not working.
Sorry I can’t share the URL of the website because it’s a private link.
- This reply was modified 3 months, 3 weeks ago by xellagm.
Forum: Plugins
In reply to: [W3 Total Cache] Util_AttachToActions Trash Medias ConflictHello @joemoto
Thank you for your answer, and for the fix ! I’ll test the correction when the fix will be merged to the plugin, and I keep you inform if it’s good for me after this ! Thank you so much ! ??
Forum: Plugins
In reply to: [W3 Total Cache] Util_AttachToActions Trash Medias ConflictHello Marko,
I also find another thing, in the core function “wp_trash_post”, the filter “pre_trash_post” return null, and it has to be null for the function to continue and trash a post, like you can see here in “wp-includes/post.php” file, line 3744 :
function wp_trash_post( $post_id = 0 ) {
[...]
$check = apply_filters( 'pre_trash_post', null, $post, $previous_status );
if( null !== $check ) {
return $check;
}
}So the function in W3TC “Util_AttachToActions.php” file should also return null on the “pre_trash_post” filter for medias to be trashed. I use a custom filter “pre_trash_post” called after your function, and I did this :
function pre_trash_post_w3tc_conflict($trash, $post = null) {
if ( is_null( $post ) ) {
$post = get_post( $trash );
}
if($post->post_type === 'attachment') $trash = null;
return $trash;
}and it fix the conflict problem I have with W3TC, it put my media in trash, and trash is also working for others type of content.
Hope it will help you to fix the problem in the plugin.
Hello Glen,
Thanks for your answer, my problem came from the fact that I use custom code, and I don’t use [submit] element for my submit button, and this is why when I check the acceptance checkbox it’s not unlocked my submit button.
I didn’t see the cf7 demo of acceptance button, but now I understund why you did this, thanks for sharing the link. Thank you for your answer, I’ll keep my solution to add ‘wpcf7-acceptance-as-validation’ to the form so It’s working, or I will use classical checkbox instead of acceptance shortcode.
Thank you for your time, you can close this ticket.
- This reply was modified 7 months, 4 weeks ago by xellagm.
Hello,
Here is an exemple of code :
<div class="form"> <div class="form-input form-column"> <div class="form-row"><label for="last_name" class="label required">Last Name</label>[text* nom id:nom]</div> <div class="form-row"><label for="first_name" class="label required">First Name</label>[text* prenom id:prenom]</div> </div> <div class="form-input form-column is-70-30"> <div class="form-row"><label for="email" class="label required">Email</label>[email* email id:email]<div class="error-msg">Please fill your email.</div></div> <div class="form-row"><label for="telephone" class="label required">Phone</label><div>[text* telephone id:telephone]</div><div class="error-msg">Please fill a valid number.</div></div> </div> <div class="form-sectitle">Message*</div> <div class="form-input form-column"> <label for="message" class="label sr-only">Your message</label>[textarea* message id:message x6 placeholder ]<div class="error-msg">Please write a text.</div> </div> <div class="form-input form-column uploads"> <span class="infosuploads">11 Mo maximum.</span> [mfile pieces_jointes limit:10485760 filetypes:jpg|jpeg|png|pdf|zip|gif max-file:6 id:pieces_jointes] <div class="error-msg">You cannot transfer more than 11MB of file. Please delete or compress files.</div> </div> <div class="form-input form-column sr-only"> [honeypot email-pot id:email-pot] [hidden url_redir id:url_redir default:shortcode_attr] [hidden lang id:lang default:shortcode_attr] </div> <div class="form-input form-column rpgd-column"> [acceptance cgu id:cgu class:cgu]<span>I accept terms and conditions.[/acceptance]<div class="error-msg">Please accept this condition to send your message.</div> </div> <div class="form-input form-column rpgd-column"> [acceptance rgpd id:rgpd]<span>I consent to the collection and processing of my personal health data.*</span>[/acceptance]<div class="error-msg">Please accept this condition to send your message.</div> </div> <div class="form-input form-column"> [button_submit] </div> </div>
Forum: Plugins
In reply to: [Polylang] Really long TTFB when I’m logged with PolylangHello,
I remove all plugins excepted Polylang, and reactive one by one, and I find the one who is conflicted with Polylang and add many time of loading pages, it’s this one : WPS Hide Login https://www.ads-software.com/plugins/wps-hide-login/ .
I use it to change my wp-login.php login page to another custom URL for security reason. I don’t know why it’s cause conflict with polylang, I don’t look in detail in the code of the plugin, but I’ve uninstalled it, and replace it by Change WP Admin Login https://www.ads-software.com/plugins/change-wp-admin-login/ wich restaure normal loading time.In my case polylang is activated per site. But I noticed this conflict on another website where I use Polylang without multisite, and It’s still this plugin https://www.ads-software.com/plugins/wps-hide-login/ that was adding loading time.
I let you see what could be the reason of this conflict. Maybe It could be great to inform user that Polylang and WPS Hide Login are not really compatible, or do something about it (but I have no clue of the reason of this conflict).
Thank you for your answer.
- This reply was modified 9 months ago by xellagm.
Thank you so much for your answer and the code modification ! It’s perfectly working !
Thanks again for you great work on this plugin !