luismt74
Forum Replies Created
-
Forum: Plugins
In reply to: [Passster - Password Protect Pages and Content] Rename cookieHi, can you reply please? Any solution?
Forum: Plugins
In reply to: [SSU - WordPress Amazon S3 & Wasabi Smart File Uploads Plugin] PHP Warning!Hello! thanks for answering. Yes, I have a dedicated one and I can seek help to make any modification.
You know, trying to find a solution I came across this. Sorry if I’m wrong: Disable Client-Side Monitoring on AWS storage
Forum: Plugins
In reply to: [W3 Total Cache] Some doubts with the configurationPlease Marko, can you confirm if this is correct?
Forum: Plugins
In reply to: [W3 Total Cache] Some doubts with the configurationForum: Plugins
In reply to: [W3 Total Cache] Some doubts with the configurationHello Marko, Thanks for answering. No, it is a function that owns the theme.
Forum: Plugins
In reply to: [W3 Total Cache] Some doubts with the configurationPlease Marko, can you confirm if this is correct? Thanks
Forum: Plugins
In reply to: [W3 Total Cache] Some doubts with the configurationThanks marko, I’m not sure if I’m doing it right:
my functions.php says this:
require get_template_directory() . '/inc/ajax-post-views.php';
and the content of ajax-post-views.php is:
<?php function wpst_set_post_views() { $nonce = $_POST['nonce']; if ( ! wp_verify_nonce( $nonce, 'ajax-nonce' ) ) die ( 'Busted!'); if( ! isset($_POST['post_id'] ) ){ die ( 'post id required!'); } $postID = $_POST['post_id']; $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count == ''){ $count = 0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); }else{ $count++; update_post_meta($postID, $count_key, $count); } wp_send_json(array('views' => $count)); wp_die(); } add_action('wp_ajax_nopriv_post-views', 'wpst_set_post_views'); add_action('wp_ajax_post-views', 'wpst_set_post_views');
So should I add it like this to wp-config.php?
define(‘W3TC_DYNAMIC_SECURITY’, ‘mycode’); <!-- mfunc mycode --> function wpst_set_post_views(); <!-- /mfunc mycode -->
Forum: Plugins
In reply to: [W3 Total Cache] Some doubts with the configurationThanks Marko, one last question please:
If I enable the option: “Page Cache -> Cache front page” my theme stops updating the number of visits to the posts. Is it possible to exclude this?
I’m not sure, but I think the function is “post_views_count”.- This reply was modified 4 years, 9 months ago by luismt74.
Forum: Plugins
In reply to: [W3 Total Cache] Some doubts with the configurationVery thanks Marko. Sorry, I should have said that have a dedicated server with memcached. This is the correct setting right?
Forum: Plugins
In reply to: [NSFW] [W3 Total Cache] Wrong display for tablet or desktopThanks for your help Marko. Yesterday, after the changes, it continued to return the error. But 24 hours have passed and the error stopped. ??
I would like to get the Pro version. Is it possible to get a discount code?
Forum: Plugins
In reply to: [NSFW] [W3 Total Cache] Wrong display for tablet or desktopThanks Marko, I just moved phone user agents to tablets, then removed the group phones. But the error continues, I don’t know what to do anymore. You may have to reinstall wp-rocket. ??
Forum: Plugins
In reply to: [NSFW] [W3 Total Cache] Wrong display for tablet or desktopThanks, but it won’t let me do it:
Duplicate theme "retrotube/retrotube" found in the group "tablets".
To select my theme in the group “phones” I must remove it from “tablets”. In this way you would return to the same problem from the beginning, right?
Forum: Plugins
In reply to: [NSFW] [W3 Total Cache] Wrong display for tablet or desktopYes, thanks for helping me Marko.
Forum: Plugins
In reply to: [NSFW] [W3 Total Cache] Wrong display for tablet or desktopHas anyone had this problem and managed to solve it? ??
Forum: Plugins
In reply to: [NSFW] [W3 Total Cache] Wrong display for tablet or desktopThanks Marko! Two days passed and it works without problems. But it throws this error at me all the time:
PHP Warning: Cannot modify header information - headers already sent in /public_html/wp-content/plugins/w3-total-cache/Mobile_Referrer.php on line 35
Compatibility Check reports this:
Server Modules & Resources: Plugin Version: 0.13.3 PHP Version: 7.3.17; Web Server: nginx FTP functions: Installed Multibyte String support: Installed cURL extension: Installed zlib extension: Installed brotli extension: Installed Opcode cache: Installed (OPCache) Memcached extension: Installed Memcache extension: Installed Redis extension: Not installed HTML Tidy extension: Installed Mime type detection: Installed Hash function: Installed Open basedir: On: /home/mysite/web/mysite.com/public_html:/home/mysite/tmp:/var/www/html:/etc/phpmyadmin:/etc/phpMyAdmin:/var/lib/phpmyadmin:/var/lib/phpMyAdmin:/etc/roundcube:/etc/roundcubemail:/var/lib/roundcube:/var/lib/roundcubemail:/tmp:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/share:/var/opt:/opt zlib output compression: Off set_time_limit: Available SSH2 extension: Not installed WordPress Resources /home/mysite/web/mysite.com/public_html/nginx.conf: OK /home/mysite/web/mysite.com/public_html/wp-content: OK /home/mysite/web/mysite.com/public_html/wp-content/uploads/2020/05: OK Fancy permalinks: /%postname%/ WP_CACHE define: Defined (true) URL rewrite: Enabled Network mode: No
What could be the problem?