English version: https://www.reg.com ??
1. On activation WP print following output:
The plugin generated 2424 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
3 tables created only:
wordpresswp_mailpress_mails
,
wordpresswp_mailpress_stats
,
wordpresswp_mailpress_users
.
Any way to see the logs to cause the reason?
2. Not clear: creation script in PHP (not specialist in it), and seems many tables creation missed:
CREATE TABLE $wpdb->mp_usermeta (
meta_id bigint(20) unsigned NOT NULL auto_increment,
mp_user_id bigint(20) unsigned NOT NULL default '0',
meta_key varchar(255) NOT NULL default '',
meta_value longtext,
PRIMARY KEY (meta_id),
KEY mp_user_id (mp_user_id,meta_key),
KEY meta_key (meta_key)
) $charset_collate;
CREATE TABLE $wpdb->mp_stats (
sdate date NOT NULL,
stype char(1) NOT NULL,
slib varchar(45) NOT NULL,
scount bigint NOT NULL,
PRIMARY KEY (stype,sdate,slib)
) $charset_collate;\n";
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
dbDelta( $mp_tables );
// some clean up
$wpdb->query( "DELETE FROM $wpdb->mp_mails WHERE status = '' AND theme <> '';" );
$wpdb->query( "DELETE FROM $wpdb->mp_mailmeta WHERE mp_mail_id NOT IN ( SELECT id FROM $wpdb->mp_mails );" );
$wpdb->query( "DELETE FROM $wpdb->mp_usermeta WHERE mp_user_id NOT IN ( SELECT id FROM $wpdb->mp_users );" );
$wpdb->query( "DELETE FROM $wpdb->mp_usermeta WHERE meta_value NOT IN ( SELECT id FROM $wpdb->mp_mails ) AND meta_key = '_MailPress_mail_sent' ;" );
$wpdb->query( "DELETE FROM $wpdb->mp_stats WHERE scount = 0 ;" );
$wpdb->query( "UPDATE $wpdb->mp_mailmeta SET meta_key = '_MailPress_attached_file' WHERE meta_key = '_mp_attached_file';" );
Seems error somewhere on creation.
-
This reply was modified 5 years, 5 months ago by tantrido.
-
This reply was modified 5 years, 5 months ago by tantrido.