But, this plugin frequently fails during/after updating (automatically). Sometimes I will get a notification that my website is down and I know that WooCommerce has been updated again and failed. No other plugins do this, only this one; I wish they would fix it!
]]>https://dlabi.cz/download/sord-revival/?wpdmdl=2189&refresh=656e21964675c1701716374
if you replace https to http file download works well.
Please advice what is wrong.
Thank you
]]>Last lines of the restore log are:
[STEP] [2023-06-20 22:07:38] Started restoration of finer_saltpepper 5/189 (2.65%) table
[INFO] [2023-06-20 22:07:38] Progress of finer_saltpepper: 1/3 (33.33%)
[INFO] [2023-06-20 22:08:03] Progress of finer_saltpepper: 2/3 (66.67%)
[INFO] [2023-06-20 22:08:41] Progress of finer_saltpepper: 3/3 (100.00%)
[SUCCESS] [2023-06-20 22:08:41] Table finer_saltpepper restoration took 63.40810 seconds
[DOWNLOAD GENERATED] File downloaded on (server time): 2023-06-20 22:09:09
[DOWNLOAD GENERATED] Last update (seconds): 91 seconds ago
[DOWNLOAD GENERATED] Last update (date): 2023-06-20 22:07:38
/**
Plugin Name: My Viewer
**/
/*** MAIN PAGE ***/
add_action( 'admin_menu' , 'My_viewer');
function My_viewer(){
$page_title = 'My_viewer';
$menu_title = 'My_viewer';
$capability = 'manage_options';
$menu_slug = 'my_viewer';
$function = 'my_functions';
add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function );
add_submenu_page( $menu_slug, $page_title, 'Panel', 'manage_options', 'my-panel-submenu-page', 'my_panel_page' );
}
function my_functions(){
require_once plugin_dir_path( __FILE__ ) . '/includes/my_functions.php';
}
function my_panel_page() {
require_once dirname( __FILE__ ) . '/includes/class-my-class.php';
$page = new My_class( plugin_basename( __FILE__ ) );
?>
<div class="wrap">
<h1><?php esc_html_e( 'Main Panel', 'access-log-viewer' ); ?></h1>
<?php $page->DisplayPanel(); ?>
</div>
<?php
}
/*** FUNCTIONS FILE ***/
function traitement_formulaire_don_cagnotte() {
if ( ! isset( $_POST['cagnote-don-envoi'] ) || ! isset( $_POST['cagnotte-verif'] ) ) {
return;
}
if ( ! wp_verify_nonce( $_POST['cagnotte-verif'], 'faire-don' ) ) {
return;
}
$don = intval( $_POST['don'] );
$url = wp_get_referer();
// Donation amount is too low.
if ( $don < 0 ) {
$url = add_query_arg( 'erreur', 'radin', wp_get_referer() );
// Donation amount is too high.
} elseif ( $don > 10000 ) {
$url = add_query_arg( 'erreur', 'trop', wp_get_referer() );
// Everything's OK, let's do the work...
} else {
$cagnotte_actuelle = intval( get_option( 'valeur_cagnotte', 0 ) );
update_option( 'valeur_cagnotte', $cagnotte_actuelle + $don );
$url = add_query_arg( 'success', 1, wp_get_referer() );
}
// Redirect user back to the form, with an error or success marker in $_GET.
wp_safe_redirect( $url );
exit();
}
add_action( 'template_redirect', 'traitement_formulaire_don_cagnotte' );
/*** CLASS FILE ***/
class My_class {
public function __construct( $plugin_basename ) {
}
public function DisplayPanel() {
if ( isset( $_GET['erreur'] ) ) {
$error = sanitize_title( $_GET['erreur'] );
switch ( $error ) {
case 'radin' :
$message = __( 'We need a positive amount.', 'msk' );
break;
case 'trop' :
$message = __( 'Thanks, but we do not need that much money.', 'msk' );
break;
default :
$message = __( 'Something went wrong.', 'msk' );
break;
}
printf( '<div class="error"><p>%1$s</p></div>', esc_html( $message ) );
}
?>
<form action="<?php echo esc_url( $_SERVER['REQUEST_URI'] ); ?>" method="POST" class="comment-form">
<?php wp_nonce_field( 'faire-don', 'cagnotte-verif' ); ?>
<div>
<label for="don"><?php _e( 'Amount donation' ); ?></label>
<input id="don" type="number" name="don" value="5" />
</div>
<input id="submit" type="submit" name="cagnote-don-envoi" id="submit" class="submit" value="<?php esc_attr_e( 'Submit', 'msk' ); ?>" />
</form>
<?php
?> <pre> <?php
print_r($_GET);
?> </pre> <?php
}
}
]]>I am no longer able to import.
I get error message : PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 62914592 bytes) in C:\Users\xxxx\Local Sites\yyyyyyyyyyyy\app\public\wp-includes\class-wpdb.php on line 1533.
I increased the WP_MEMORY_LIMIT’ and WP_MAX_MEMORY_LIMIT. The problem is still there.
I now get error message :
WordPress database error MySQL server has gone away for query UPDATE wp_options
SET option_value
= ‘a:4:{s:14:\”import_backend\”;a:13:{s:12:\”path_to_file\”;s:29360245:\”C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\…………………………………….
\\\\\\\classes/test.csv\”;s:4:\”role\”;a:1:{i:0;s:10:\”subscriber\”;}s:17:\”empty_cell_action\”;s:5:\”leave\”;s:11:\”sends_email\”;s:2:\”no\”;s:18:\”send_email_updated\”;s:2:\”no\”;s:21:\”update_existing_users\”;s:3:\”yes\”;s:25:\”force_user_reset_password\”;s:2:\”no\”;s:28:\”update_emails_existing_users\”;s:2:\”no\”;s:27:\”update_roles_existing_users\”;s:2:\”no\”;s:29:\”update_allow_update_passwords\”;s:2:\”no\”;s:24:\”delete_users_not_present\”;s:2:\”no\”;s:23:\”change_role_not_present\”;s:2:\”no\”;s:28:\”change_role_not_present_role\”;s:10:\”subscriber\”;}s:15:\”import_frontend\”;a:0:{}s:11:\”import_cron\”;a:0:{}s:14:\”export_backend\”;a:0:{}}’ WHERE option_name
= ‘acui_settings’ made by require_once(‘wp-admin/admin.php’), do_action(‘tools_page_acui’), WP_Hook->do_action, WP_Hook->apply_filters, ACUI_Import->show, ACUI_Settings->save_multiple, update_option
And there are literally millions of \\\\ in the SQL statement !!
After some investigation, I discovered something strange in the database table wp_options :
‘72545’, ‘acui_settings’, ‘a:4:{s:14:\”import_backend\”;a:5:{s:4:\”role\”;a:1:{i:0;s:10:\”subscriber\”;}s:12:\”path_to_file\”;s:14680181:\”C:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\………………………\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\classes/test.csv\”;s:11:\”sends_email\”;s:2:\”no\”;s:18:\”send_email_updated\”;s:2:\”no\”;s:25:\”force_user_reset_password\”;s:2:\”no\”;}s:15:\”import_frontend\”;a:0:{}s:11:\”import_cron\”;a:0:{}s:14:\”export_backend\”;a:0:{}}’, ‘yes’.
And again there are literally millions of \\\\ in the table row !!
I have no idea where this is coming from. Can you help ?
]]>