marcoskito
Forum Replies Created
-
Forum: Plugins
In reply to: [CAOS | Host Google Analytics Locally] Minimal Analytics is not workingThanks for your prompt response. Version 4.8.6 fixed the issue. Thank you very much.
Forum: Plugins
In reply to: [CAOS | Host Google Analytics Locally] Minimal Analytics is not workingGoing back to version 4.8.4, the problem does not occur, so it is something related to version 4.8.5.
When doing this, there was a large space between the translated text and the date, how can I solve it?
Forum: Plugins
In reply to: [WP Super Cache] save draft clears all cache@donncha, what I’m trying to say is that I know that other plugins have access to the cache folder and that they can do this, but they ask WP Super Cache to do it for them.
I just wanted to prevent other plugins from asking WP Super Cache to clear the cache.
For example, you have a plugin installed that does the following:if (function_exists('wp_cache_clear_cache')) { wp_cache_clear_cache( is_multisite() ? get_current_blog_id() : 0 ); }
I just wish WP Super Cache didn’t recognize this command and didn’t clean it because of other plugins.
I wanted WP Super Cache to be “isolated” from receiving commands from other plugins, and only delete the cache according to the settings.
Would it be possible to do something like this as a function for the plugin or would deleting some lines for these functions be enough?- This reply was modified 11 months, 2 weeks ago by marcoskito.
Forum: Plugins
In reply to: [WP Super Cache] save draft clears all cache@donncha, let me be clearer, I wanted to know if there is a way to prevent other plugins from asking WP Super Cache to clean their cache? This way, the plugin would be solely responsible for cleaning, without others getting in the way or asking it to do so.
Would it be possible to create an option to remove the cleaning hooks that other plugins use to ask WP Super Cache to do this cleaning, if an option in the plugin itself is not possible, is there any way to do this?Forum: Plugins
In reply to: [WP Super Cache] save draft clears all cache@donncha, just returning to let you know that it’s something related to the theme, when putting the default WordPress theme, the cache is not cleared when a draft is saved.
I’m going to contact the developer to see if he can resolve it, but I wanted to know if there is any way to not allow other plugins or themes to clear the cache.Forum: Plugins
In reply to: [WP Super Cache] save draft clears all cacheHi @donncha,
The cache is cleared when an unpublished post has a draft saved.
I deactivated practically all the plugins, leaving only the basic ones (Elementor, Rank Math SEO, WP Super Cache and those of the theme itself, SmartMag Core and Sphere Core).
In debugging, in the log, wpsc_delete_files does not appear anywhere.
When the post draft is saved, the log shows the following:12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user wp_cache_replace_line: setting not changed - $wp_cache_debug_log = '63082ab0055fe7dc1dd6946f861c4c58.php';
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user wp_cache_replace_line: setting not changed - $wp_cache_debug_username = 'f17013a12153ec402d79b90ef065f37c';
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/index.html as it's protected.
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user prune_super_cache: did not delete file: /var/www/html/sitename/wp-content/cache/index.html
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/index.html as it's protected.
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/.htaccess as it's protected.
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user prune_super_cache: did not delete file: /var/www/html/sitename/wp-content/cache/.htaccess
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/.htaccess as it's protected.
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/meta/index.html as it's protected.
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user prune_super_cache: did not delete file: /var/www/html/sitename/wp-content/cache/meta/index.html
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/meta/index.html as it's protected.
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/meta as it's protected.
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/supercache/index.html as it's protected.
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user prune_super_cache: did not delete file: /var/www/html/sitename/wp-content/cache/supercache/index.html
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/supercache/index.html as it's protected.
12:47:48 24299 /wp-admin/post.php?post=187210&action=edit&meta-box-loader=1&meta-box-loader-nonce=fd87c7b3c4&_locale=user gc: could not delete /var/www/html/sitename/wp-content/cache/supercache as it's protected.
12:47:48 24268 /wp-admin/post.php?post=187210&action=edit&message=4 wp_cache_postload: DONOTCACHEPAGE defined. Not running.
After that, it starts loading pages to cache normally.- This reply was modified 1 year ago by marcoskito.
Forum: Plugins
In reply to: [WP Super Cache] save draft clears all cacheI started using the plugin in the most current version, 1.12.0.
I did the test here with and without the option “Clear all cache files when a post or page is published or updated” , but the result is the same.Hello, so far I still have the same problem, when activating WP Debug, I receive the following message:
Warning: ftp_nlist() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 420
Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230
Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230
Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 717
Warning: ftp_nlist() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 420
Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230
Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230
Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 717
With All in One SEO enabled, your plugin doesn’t work, is there any way to fix this problem?
Nothing has changed, it’s still the same.
hello, the problem happens when All in One SEO is enabled.
when I activate the wordpress debug, I get the following message:
Fatal error: Uncaught TypeError: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php:420 Stack trace: #0 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(420): ftp_nlist() #1 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(438): WP_Filesystem_FTPext->exists() #2 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(710): WP_Filesystem_FTPext->is_file() #3 [internal function]: WP_Filesystem_FTPext->dirlist() #4 /var/www/html/wp-content/plugins/debloat/inc/file-system.php(228): call_user_func_array() #5 /var/www/html/wp-content/plugins/debloat/inc/file-cache.php(168): Sphere\Debloat\FileSystem->__call() #6 /var/www/html/wp-content/plugins/debloat/inc/admin/admin.php(314): Sphere\Debloat\FileCache->get_stats() #7 /var/www/html/wp-content/plugins/debloat/inc/admin/admin.php(304): Sphere\Debloat\Admin->cache_info() #8 /var/www/html/wp-content/plugins/debloat/vendor/cmb2/includes/CMB2_Options_Hookup.php(194): Sphere\Debloat\Admin->render_options_page() #9 /var/www/html/wp-includes/class-wp-hook.php(307): CMB2_Options_Hookup->options_page_output() #10 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #11 /var/www/html/wp-includes/plugin.php(474): WP_Hook->do_action() #12 /var/www/html/wp-admin/admin.php(259): do_action() #13 /var/www/html/wp-admin/options-general.php(10): require_once(‘…’) #14 {main} thrown in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 420Forum: Fixing WordPress
In reply to: WordPress 5.9 post and page editing does not workYes, wordpress 5.9.
The problems were related to the theme, a new version managed to fix the bugs.
Thank you for your support.OK.
Thanksif you were to adapt the filter that indicates “converted to WebP is larger than original and has been deleted.”
how will the filter be?
at the moment I just want to hide these two problems.Thanks, I have one last question.
The filter replaces this
add_filter(‘webpc_convert_error’, function($errorMessage, $errorCode) {
return ($errorCode !== ‘larger_than_original’) ? $errorMessage : null;
}, 10, 2);
or do i need to put both when i need to regenerate the images?