Vyacheslav
Forum Replies Created
-
Hi Brad.
I’m glad you did it.
Thanks for update.
Now plugin does exactly what I need.Many thanks to you!
Hi Brad. Are you going to add this functionality or not? It’s really important to me. Thanks.
Hi Brad.
You haven’t been able to replicate the issue even on my test site, have you?
I wrote within ticket on the boldgrid.com that setting “Enable caching for wp-admin requests” in the object cache control panel causes the issue. If it unchecked (disabled) the issue occurs.
Hi Brad. Sure.
I tryed to switch to disk method and even turn the database cache off completely. All the same.
Within W3 Total Cache, are you using database cache? If so, what caching engine are you using, is it disk?
I use redis for database cache. Redis is installed at the localhost.
- This reply was modified 6 years ago by Vyacheslav.
- This reply was modified 6 years ago by Vyacheslav.
After editing class-boldgrid-backup-admin-ftp-page.php as you suggested I’ve got this
[30-Apr-2020 20:49:38 UTC] Array ( [Message:] => Total Upkeep settings have been updated. [Old value for ftp retention:] => 3 [New value for ftp retention:] => 2 [Trace:] => Array ( [0] => #0 /the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, 'boldgrid_backup...') [1] => #1 /the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) [2] => #2 /the_path_to_site/wp-includes/option.php(333): apply_filters('pre_update_opti...', Array, Array, 'boldgrid_backup...') [3] => #3 /the_path_to_site/wp-includes/option.php(1629): update_option('boldgrid_backup...', Array, 'no') [4] => #4 /the_path_to_site/wp-includes/option.php(1203): update_network_option(1, 'boldgrid_backup...', Array) [5] => #5 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php(232): update_site_option('boldgrid_backup...', Array) [6] => #6 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php(126): Boldgrid_Backup_Admin_Ftp_Page->settings_save() [7] => #7 /the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Page->settings('') [8] => #8 /the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) [9] => #9 /the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array) [10] => #10 /the_path_to_site/wp-admin/admin.php(254): do_action('admin_page_bold...') [11] => #11 {main} ) ) [30-Apr-2020 20:49:38 UTC] Updated successfully = 1 [30-Apr-2020 20:49:41 UTC] Array ( [Message:] => Total Upkeep settings have been updated. [Old value for ftp retention:] => 3 [New value for ftp retention:] => 3 [Trace:] => Array ( [0] => #0 /the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, 'boldgrid_backup...') [1] => #1 /the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) [2] => #2 /the_path_to_site/wp-includes/option.php(333): apply_filters('pre_update_opti...', Array, Array, 'boldgrid_backup...') [3] => #3 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(224): update_option('boldgrid_backup...', Array) [4] => #4 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(209): Boldgrid_Backup_Admin_Remote_Settings->save_settings(Array) [5] => #5 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(233): Boldgrid_Backup_Admin_Remote_Settings->save_setting('last_login', 1588279781) [6] => #6 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(999): Boldgrid_Backup_Admin_Remote_Settings->set_last_login() [7] => #7 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(841): Boldgrid_Backup_Admin_Ftp->log_in() [8] => #8 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(736): Boldgrid_Backup_Admin_Ftp->is_setup(false) [9] => #9 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-hooks.php(117): Boldgrid_Backup_Admin_Ftp->get_details() [10] => #10 /the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Hooks->is_setup_ajax('') [11] => #11 /the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) [12] => #12 /the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array) [13] => #13 /the_path_to_site/wp-admin/admin-ajax.php(175): do_action('wp_ajax_boldgri...') [14] => #14 {main} ) ) [30-Apr-2020 20:49:46 UTC] Array ( [Message:] => Total Upkeep settings have been updated. [Old value for ftp retention:] => 3 [New value for ftp retention:] => 3 [Trace:] => Array ( [0] => #0 /the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, 'boldgrid_backup...') [1] => #1 /the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) [2] => #2 /the_path_to_site/wp-includes/option.php(333): apply_filters('pre_update_opti...', Array, Array, 'boldgrid_backup...') [3] => #3 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(224): update_option('boldgrid_backup...', Array) [4] => #4 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(209): Boldgrid_Backup_Admin_Remote_Settings->save_settings(Array) [5] => #5 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(233): Boldgrid_Backup_Admin_Remote_Settings->save_setting('last_login', 1588279786) [6] => #6 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(999): Boldgrid_Backup_Admin_Remote_Settings->set_last_login() [7] => #7 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(841): Boldgrid_Backup_Admin_Ftp->log_in() [8] => #8 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(736): Boldgrid_Backup_Admin_Ftp->is_setup(false) [9] => #9 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-hooks.php(117): Boldgrid_Backup_Admin_Ftp->get_details() [10] => #10 /the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Hooks->is_setup_ajax('') [11] => #11 /the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) [12] => #12 /the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array) [13] => #13 /the_path_to_site/wp-admin/admin-ajax.php(175): do_action('wp_ajax_boldgri...') [14] => #14 {main} ) )The setting is not saved successfully. Still trying set from 3 to 2
- This reply was modified 6 years ago by Vyacheslav.
And I’m sorry I forgot to delete previous content from the file. What you need starts from [30-Apr-2020 18:46:21 UTC]
I think tommorow in the morning when traffic is low I could disable the caching.
Or may be you suggest disable only separate caching?Hi Brad.
… but that file does not have a line 252 (if you look here). Does that file contain code that you’ve added for testing?
Yes.
To confirm, you changed the retention from 3 to 2, and then it got saved again as 3? That’s what it looks like from the info you provided.
It says at 18:08:33 it saved the retention to 2, but 3 seconds later at 18:08:36 it shows the retention setting at 3 again.
Yes.
What kind of caching system are you using? Are you able to temporarily disable the caching and test again to see if this problem still occurs?
I use w3tc. Don’t know why but I sure you know it 😉
All caches are enabled.And I remade error log without my code added. This is the same situation want to change retention from 3 t o2
[30-Apr-2020 18:08:33 UTC] Array ( [Message:] => Total Upkeep settings have been updated. [Old value for ftp retention:] => 3 [New value for ftp retention:] => 2 [Trace:] => Array ( [0] => #0 /the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, 'boldgrid_backup...') [1] => #1 /the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) [2] => #2 /the_path_to_site/wp-includes/option.php(333): apply_filters('pre_update_opti...', Array, Array, 'boldgrid_backup...') [3] => #3 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php(252): update_option('boldgrid_backup...', Array) [4] => #4 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php(131): Boldgrid_Backup_Admin_Ftp_Page->settings_save() [5] => #5 /the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Page->settings('') [6] => #6 /the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) [7] => #7 /the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array) [8] => #8 /the_path_to_site/wp-admin/admin.php(254): do_action('admin_page_bold...') [9] => #9 {main} ) ) [30-Apr-2020 18:08:36 UTC] Array ( [Message:] => Total Upkeep settings have been updated. [Old value for ftp retention:] => 3 [New value for ftp retention:] => 3 [Trace:] => Array ( [0] => #0 /the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, 'boldgrid_backup...') [1] => #1 /the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) [2] => #2 /the_path_to_site/wp-includes/option.php(333): apply_filters('pre_update_opti...', Array, Array, 'boldgrid_backup...') [3] => #3 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(224): update_option('boldgrid_backup...', Array) [4] => #4 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(209): Boldgrid_Backup_Admin_Remote_Settings->save_settings(Array) [5] => #5 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(233): Boldgrid_Backup_Admin_Remote_Settings->save_setting('last_login', 1588270116) [6] => #6 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(999): Boldgrid_Backup_Admin_Remote_Settings->set_last_login() [7] => #7 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(841): Boldgrid_Backup_Admin_Ftp->log_in() [8] => #8 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(736): Boldgrid_Backup_Admin_Ftp->is_setup(false) [9] => #9 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-hooks.php(117): Boldgrid_Backup_Admin_Ftp->get_details() [10] => #10 /the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Hooks->is_setup_ajax('') [11] => #11 /the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) [12] => #12 /the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array) [13] => #13 /the_path_to_site/wp-admin/admin-ajax.php(175): do_action('wp_ajax_boldgri...') [14] => #14 {main} ) ) [30-Apr-2020 18:10:07 UTC] Array ( [Message:] => Total Upkeep settings have been updated. [Old value for ftp retention:] => 3 [New value for ftp retention:] => 3 [Trace:] => Array ( [0] => #0 /the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, 'boldgrid_backup...') [1] => #1 /the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) [2] => #2 /the_path_to_site/wp-includes/option.php(333): apply_filters('pre_update_opti...', Array, Array, 'boldgrid_backup...') [3] => #3 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(224): update_option('boldgrid_backup...', Array) [4] => #4 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(209): Boldgrid_Backup_Admin_Remote_Settings->save_settings(Array) [5] => #5 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(233): Boldgrid_Backup_Admin_Remote_Settings->save_setting('last_login', 1588270207) [6] => #6 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(999): Boldgrid_Backup_Admin_Remote_Settings->set_last_login() [7] => #7 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(841): Boldgrid_Backup_Admin_Ftp->log_in() [8] => #8 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(736): Boldgrid_Backup_Admin_Ftp->is_setup(false) [9] => #9 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-hooks.php(117): Boldgrid_Backup_Admin_Ftp->get_details() [10] => #10 /the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Hooks->is_setup_ajax('') [11] => #11 /the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) [12] => #12 /the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array) [13] => #13 /the_path_to_site/wp-admin/admin-ajax.php(175): do_action('wp_ajax_boldgri...') [14] => #14 {main} ) ) [30-Apr-2020 18:14:26 UTC] Array ( [Message:] => Total Upkeep settings have been updated. [Old value for ftp retention:] => 3 [New value for ftp retention:] => 3 [Trace:] => Array ( [0] => #0 /the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, 'boldgrid_backup...') [1] => #1 /the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) [2] => #2 /the_path_to_site/wp-includes/option.php(333): apply_filters('pre_update_opti...', Array, Array, 'boldgrid_backup...') [3] => #3 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(224): update_option('boldgrid_backup...', Array) [4] => #4 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(209): Boldgrid_Backup_Admin_Remote_Settings->save_settings(Array) [5] => #5 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(233): Boldgrid_Backup_Admin_Remote_Settings->save_setting('last_login', 1588270466) [6] => #6 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(999): Boldgrid_Backup_Admin_Remote_Settings->set_last_login() [7] => #7 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(841): Boldgrid_Backup_Admin_Ftp->log_in() [8] => #8 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(736): Boldgrid_Backup_Admin_Ftp->is_setup(false) [9] => #9 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-hooks.php(117): Boldgrid_Backup_Admin_Ftp->get_details() [10] => #10 /the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Hooks->is_setup_ajax('') [11] => #11 /the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) [12] => #12 /the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array) [13] => #13 /the_path_to_site/wp-admin/admin-ajax.php(175): do_action('wp_ajax_boldgri...') [14] => #14 {main} ) ) [30-Apr-2020 18:46:21 UTC] Array ( [Message:] => Total Upkeep settings have been updated. [Old value for ftp retention:] => 3 [New value for ftp retention:] => 2 [Trace:] => Array ( [0] => #0 /the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, 'boldgrid_backup...') [1] => #1 /the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) [2] => #2 /the_path_to_site/wp-includes/option.php(333): apply_filters('pre_update_opti...', Array, Array, 'boldgrid_backup...') [3] => #3 /the_path_to_site/wp-includes/option.php(1629): update_option('boldgrid_backup...', Array, 'no') [4] => #4 /the_path_to_site/wp-includes/option.php(1203): update_network_option(1, 'boldgrid_backup...', Array) [5] => #5 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php(231): update_site_option('boldgrid_backup...', Array) [6] => #6 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php(126): Boldgrid_Backup_Admin_Ftp_Page->settings_save() [7] => #7 /the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Page->settings('') [8] => #8 /the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) [9] => #9 /the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array) [10] => #10 /the_path_to_site/wp-admin/admin.php(254): do_action('admin_page_bold...') [11] => #11 {main} ) ) [30-Apr-2020 18:46:24 UTC] Array ( [Message:] => Total Upkeep settings have been updated. [Old value for ftp retention:] => 3 [New value for ftp retention:] => 3 [Trace:] => Array ( [0] => #0 /the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, 'boldgrid_backup...') [1] => #1 /the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) [2] => #2 /the_path_to_site/wp-includes/option.php(333): apply_filters('pre_update_opti...', Array, Array, 'boldgrid_backup...') [3] => #3 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(224): update_option('boldgrid_backup...', Array) [4] => #4 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(209): Boldgrid_Backup_Admin_Remote_Settings->save_settings(Array) [5] => #5 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(233): Boldgrid_Backup_Admin_Remote_Settings->save_setting('last_login', 1588272384) [6] => #6 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(999): Boldgrid_Backup_Admin_Remote_Settings->set_last_login() [7] => #7 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(841): Boldgrid_Backup_Admin_Ftp->log_in() [8] => #8 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(736): Boldgrid_Backup_Admin_Ftp->is_setup(false) [9] => #9 /the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-hooks.php(117): Boldgrid_Backup_Admin_Ftp->get_details() [10] => #10 /the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Hooks->is_setup_ajax('') [11] => #11 /the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) [12] => #12 /the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array) [13] => #13 /the_path_to_site/wp-admin/admin-ajax.php(175): do_action('wp_ajax_boldgri...') [14] => #14 {main} ) )Hi Brad.
I did it as you ask.
Here is the log[30-Apr-2020 18:08:33 UTC] Array
(
[Message:] => Total Upkeep settings have been updated.
[Old value for ftp retention:] => 3
[New value for ftp retention:] => 2
[Trace:] => Array
(
[0] => #0 the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, ‘boldgrid_backup…’)
[1] => #1 the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
[2] => #2 the_path_to_site/wp-includes/option.php(333): apply_filters(‘pre_update_opti…’, Array, Array, ‘boldgrid_backup…’)
[3] => #3 the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php(252): update_option(‘boldgrid_backup…’, Array)
[4] => #4 the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-page.php(131): Boldgrid_Backup_Admin_Ftp_Page->settings_save()
[5] => #5 the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Page->settings(”)
[6] => #6 the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
[7] => #7 the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
[8] => #8 the_path_to_site/wp-admin/admin.php(254): do_action(‘admin_page_bold…’)
[9] => #9 {main}
))
[30-Apr-2020 18:08:36 UTC] Array
(
[Message:] => Total Upkeep settings have been updated.
[Old value for ftp retention:] => 3
[New value for ftp retention:] => 3
[Trace:] => Array
(
[0] => #0 the_path_to_site/wp-includes/class-wp-hook.php(287): {closure}(Array, Array, ‘boldgrid_backup…’)
[1] => #1 the_path_to_site/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
[2] => #2 the_path_to_site/wp-includes/option.php(333): apply_filters(‘pre_update_opti…’, Array, Array, ‘boldgrid_backup…’)
[3] => #3 the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(224): update_option(‘boldgrid_backup…’, Array)
[4] => #4 the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(209): Boldgrid_Backup_Admin_Remote_Settings->save_settings(Array)
[5] => #5 the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-remote-settings.php(233): Boldgrid_Backup_Admin_Remote_Settings->save_setting(‘last_login’, 1588270116)
[6] => #6 the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(999): Boldgrid_Backup_Admin_Remote_Settings->set_last_login()
[7] => #7 the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(841): Boldgrid_Backup_Admin_Ftp->log_in()
[8] => #8 the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp.php(736): Boldgrid_Backup_Admin_Ftp->is_setup(false)
[9] => #9 the_path_to_site/wp-content/plugins/boldgrid-backup/admin/remote/class-boldgrid-backup-admin-ftp-hooks.php(117): Boldgrid_Backup_Admin_Ftp->get_details()
[10] => #10 the_path_to_site/wp-includes/class-wp-hook.php(287): Boldgrid_Backup_Admin_Ftp_Hooks->is_setup_ajax(”)
[11] => #11 the_path_to_site/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
[12] => #12 the_path_to_site/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
[13] => #13 the_path_to_site/wp-admin/admin-ajax.php(175): do_action(‘wp_ajax_boldgri…’)
[14] => #14 {main}
))
- This reply was modified 6 years ago by Vyacheslav.
- This reply was modified 6 years ago by Vyacheslav.
Oh sorry it seems data is encoded some how. It’s not corruted. It’s done to protect users data. I see.
Hi.
I think it’s some cache issue.
I did more logging.
I inserted after update_site_option( ‘boldgrid_backup_settings’, $settings );
next code
$settings1 = get_site_option( ‘boldgrid_backup_settings’);
and then save serialize($settings1) to file and as result there were data I actualy did input.After that i went to phpmyadmin and found this record ‘boldgrid_backup_settings’ in the option table and there were wrong corrupted data. In the retention_count field was strange string. Have no idea why.
It’s pretty weird to me.
Regards,
Vyacheslav- This reply was modified 6 years ago by Vyacheslav.
- This reply was modified 6 years ago by Vyacheslav.
Hi.
Just want to add to last post I made.
It seems that wordpress core function update_site_option() fails in this case. And nothing updates in database actually. Or may be cache issue. I have single site installation. Later I’ll try to use update_option().Regards,
VyacheslavHi Brad, I shared the video from my google drive once again.
By the way I dug deeper into your plugin.
What I descovered is next
In the file class-boldgrid-backup-admin-ftp-page.php I inserted some code with logging into two different files
First code right after $post_data = $this->core->ftp->get_from_post(); (114 line)
I logged serialize($post_data) into file1.logSecond code right before update_site_option( ‘boldgrid_backup_settings’, $settings ); (231 line)
I logged serialize($settings) into file2.logSo I had retention set to 3. I tried to change it to 2
To be honest sometimes it is working correctly. I think 1 out of 5 times.
But at that time attempt was failed again.The content of the file1.log was at 2020-04-30 00:05:24 UTC+3
a:9:{s:4:”host”;s:26:””;s:4:”user”;s:7:””;s:4:”pass”;s:16:””;s:11:”folder_name”;s:33:””;s:4:”type”;s:3:”ftp”;s:8:”ftp_mode”;s:7:”passive”;s:4:”port”;i:21;s:15:”retention_count“;i:3;s:8:”nickname”;s:9:”local_ftp”;}
The content of the file2.log was at 2020-04-30 00:05:08 UTC+3
a:21:{s:8:”schedule”;a:10:{s:10:”dow_sunday”;i:1;s:10:”dow_monday”;i:1;s:11:”dow_tuesday”;i:1;s:13:”dow_wednesday”;i:1;s:12:”dow_thursday”;i:1;s:10:”dow_friday”;i:1;s:12:”dow_saturday”;i:1;s:5:”tod_h”;i:6;s:5:”tod_m”;s:2:”40″;s:5:”tod_a”;s:2:”PM”;}s:15:”retention_count”;i:3;s:18:”notification_email”;s:23:””;s:13:”notifications”;a:3:{s:6:”backup”;i:1;s:7:”restore”;i:1;s:10:”site_check”;b:1;}s:11:”auto_backup”;i:0;s:13:”auto_rollback”;i:0;s:6:”remote”;a:2:{s:5:”local”;a:1:{s:7:”enabled”;b:1;}s:3:”ftp”;a:11:{s:4:”host”;s:26:”;s:4:”user”;s:7:””;s:4:”pass”;s:16:””;s:4:”port”;i:21;s:4:”type”;s:3:”ftp”;s:8:”ftp_mode”;s:7:”passive”;s:15:”retention_count“;i:2;s:8:”nickname”;s:9:”local_ftp”;s:11:”folder_name”;s:33:””;s:10:”last_login”;s:10:”1588194298″;s:7:”enabled”;b:1;}}s:14:”exclude_tables”;a:0:{}s:24:”folder_exclusion_include”;s:18:”WPCORE,/wp-content”;s:24:”folder_exclusion_exclude”;s:35:”.git,node_modules,/wp-content/cache”;s:10:”site_check”;a:4:{s:7:”enabled”;b:1;s:6:”logger”;b:1;s:13:”auto_recovery”;b:0;s:8:”interval”;i:15;}s:10:”encrypt_db”;b:0;s:16:”backup_directory”;s:44:””;s:10:”compressor”;s:10:”system_zip”;s:9:”scheduler”;s:4:”cron”;s:11:”crons_added”;b:1;s:15:”crontab_version”;s:5:”1.6.4″;s:11:”cron_secret”;s:64:””;s:19:”exclude_tables_type”;s:4:”full”;s:21:”folder_exclusion_type”;s:6:”custom”;s:7:”updated”;i:1587289542;}
So the retention_count for ftp was different.
As I understand plugin saves settings and after that render it again for user.
Hope it will help somehow.
I can do more logging and debugging if you need.P.S. Sorry I had to delete all critical data from files such as passwords and so on.
- This reply was modified 6 years ago by Vyacheslav.