Cannot import from csv file previously exported via mailpress

74 views
Skip to first unread message

Ovidiu

unread,
Apr 10, 2019, 4:38:08 PM4/10/19
to MailPress
I exported all users with the plugin for MP (5.4.2) into CSV, the only export option.
deleted MP, installed MP 7.0.2 and tried importing from CSV with the plugin. 

After clicking import, the new page just shows:

Import Csv

Mailing list

Optional, you can import the MailPress users in a specific mailing list ...


The import/export log shows:

2019-04-10 17:32:35 000000 -- **** Start logging **** mp_import_csv *** level : 32767 **** ( 7.0.2 ) **** /wp-admin/admin.php?page=mailpress_import&mp_import=csv&step=1&_wpnonce=dbbc8f1e61 2019-04-10 17:32:35 000000 -- !-------------------------------------------------------------------------------------------------------------------------------------! 2019-04-10 17:32:35 000000 -- ! Batch Report importer : csv step : 1 ! 2019-04-10 17:32:35 000000 -- !-------------------------------------------------------------------------------------------------------------------------------------! 2019-04-10 17:32:35 000000 -- ! ANALYSIS ! ! 2019-04-10 17:32:35 000000 -- ! sniff 1 ! >>> /var/www/knightsenglish.com/public/wp-content/uploads/2019/04/csv_export_20190410_2010.csv.txt ! 2019-04-10 17:32:36 000000 -- ! email ! Email probably in column email ! 2019-04-10 17:32:36 000000 -- !-------------------------------------------------------------------------------------------------------------------------------------! 2019-04-10 17:32:36 000000 -- **** End logging **** mp_import_csv *** level : 32767 **** status : TRUE

Any help PLEASE?

arena

unread,
Apr 15, 2019, 12:47:16 PM4/15/19
to MailPress

Ok here is my answer :

As far as i have checked, there is no changes in the structure of mysql mailpress tables from 5.4 to 7.0.2.
So you do not need to export and import using csv files. a sql backup/restore with phpmyadmin (for instance) should be enough.
So if you have a backup of your db, you should be able to have those sql files.

About import/export

The export in a csv file gives a file with Comma Separated Values ... which is not that cool when some strings inside the file have ... commas !
The file produced is not a backup file !!!

The import (whether it is in CSV or Excel format) just imports an email and optionally a name per line, every other columns are inserted as a custom field for the corresponding mp user.
The is just a small tool to import external files ...
So Import is not a restore process (otherwise i would have name it Restore :-) !

Hope this helps (and that you still have a backup of your db)

As a reminder, major changes from MailPress v5 to v7 is
* PHP 7
* some add-ons not supported any more
* End of support of PHP Mail (deprecated by swiftmailer in v6 (php7))
* All files in tmp folder are copied in wp-content/uploads
* All files in mp-content/advanced are replicated in wp-content/uploads (one copy per blog)

https://blog.mailpress.org/2019/01/09/mailpress-7-0-rc/
https://blog.mailpress.org/2019/01/22/mailpress-7-0-rc2/
https://blog.mailpress.org/2019/01/27/mailpress-7-0-1/

Ovidiu

unread,
Apr 16, 2019, 9:45:22 AM4/16/19
to MailPress
Thanks, that clarifies a few issues. For anyone reading this, here is everything I did, including the mistakes so you can learn from them. 

Seeing that mp 5.x and 7.x both seemed to reside withing a folder with the same name: mailpress and I couldn't do a wordpress plugin update except for simply overwriting the actualy files of mp via upload I disabled and deleted the 5.x version from within WP so as not to have any leftover files from mp 5.x
I then installed mp 7.x and activated it, activated the required mp plugins, set it all up and it worked perfectly only to realize that all my subscribers were gone.

I then restored the entire VPS as it only hosts this one WP site. I then logged on and exported the subscribers via the mp plugin: import/export.

BIG mistake, this is where I should have done a mysqldump. 

I now have to somehow "save" my mp configuration, restore that old backup, do the mysqldump or export of the subscribers via phpmyadmin, then start from scratch again. 


But all in all, it sounds doable :-)

andré renaut

unread,
Apr 16, 2019, 12:13:37 PM4/16/19
to mail...@googlegroups.com
If you have deleted the plugin from WordPress, you have activated the uninstall process which delete every information stored in the wp db related to MailPress ...

Be carefull because some MailPress data are also stored in wp tables such as postmeta, usermeta, taxonomies etc ...

For more information you can take a look at uninstall.php

So make a full recovery of your wp db !


--
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===
 
You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

---
You received this message because you are subscribed to the Google Groups "MailPress" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailpress+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
this mail was written by a human being
--
Homme libre, toujours tu chériras la mer !
La mer est ton miroir; tu contemples ton âme
Charles Baudelaire

Ovidiu

unread,
Apr 23, 2019, 2:56:29 AM4/23/19
to MailPress
Hi there.

I f***ed up, I lost the last backups. All I have is the exported .CSV file - can you help me with some indications as to what or how much I can recover from it? At least my subscribers are in there.

andré renaut

unread,
Apr 23, 2019, 7:53:40 AM4/23/19
to mail...@googlegroups.com
send me your csv file(s) contribute at mailpress dot org

Le mar. 23 avr. 2019 à 08:56, 'Ovidiu' via MailPress <mail...@googlegroups.com> a écrit :
Hi there.

I f***ed up, I lost the last backups. All I have is the exported .CSV file - can you help me with some indications as to what or how much I can recover from it? At least my subscribers are in there.

--
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===
 
You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

---
You received this message because you are subscribed to the Google Groups "MailPress" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailpress+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

andré renaut

unread,
Apr 23, 2019, 1:36:43 PM4/23/19
to mail...@googlegroups.com
or use tools like this one

Ovidiu

unread,
Apr 24, 2019, 6:37:57 AM4/24/19
to MailPress
Thanks a million, I have emailed you right now.

Ovidiu

unread,
May 13, 2019, 12:28:58 AM5/13/19
to MailPress
It looks like the newsletter doesn't work. It is supposed to send out posts from a specific category in a daily newsletter but its saying "( 0 ) no recipients" - any ideas?



2019-05-07 00:00:01 000000 --  **** Start logging **** mp_sched_proc_newsletter *** level : 32767 **** ( 7.0.2 ) **** /wp-cron.php?doing_wp_cron
2019-05-07 00:00:01 000000 --  **** Purged log file **** /var/www/knightsenglish.com/public/wp-content/uploads/mailpress/log/MP_Log_1_mp_sched_proc_newsletter_20190427.txt
2019-05-07 00:00:01 000000 -- !------------------------------------------------------------------------------------------------------------------------------------------------------!
2019-05-07 00:00:01 000000 -- !     Scheduling Newsletters    event : ** Twice daily **                                                                                              !
2019-05-07 00:00:01 000000 -- !------------------------------------------------------------------------------------------------------------------------------------------------------!
2019-05-07 00:00:01 000000 -- ! Newsletter id                  ! scheduler            ! processor            ! timestamp  ! time                                                     !
2019-05-07 00:00:01 000000 -- !------------------------------------------------------------------------------------------------------------------------------------------------------!
2019-05-07 00:00:01 000000 -- ! daily_category_3               ! day                  ! day-1                ! 1557198001 ! Tuesday 7th of May 2019 00:00                            !
2019-05-07 00:00:01 000000 -- !------------------------------------------------------------------------------------------------------------------------------------------------------!
2019-05-07 00:00:01 000000 --  **** End   logging **** mp_sched_proc_newsletter *** level : 32767 **** status : TRUE

2019-05-07 00:05:02 000000 --  **** Start logging **** mp_sched_proc_newsletter *** level : 32767 **** ( 7.0.2 ) **** /wp-cron.php?doing_wp_cron
2019-05-07 00:05:02 000000 -- !------------------------------------------------------------------------------------------------------------------------------------------------------!
2019-05-07 00:05:02 000000 -- !     Processing Newsletter      processor : day-1                                                                                                     !
2019-05-07 00:05:02 000000 -- !------------------------------------------------------------------------------------------------------------------------------------------------------!
2019-05-07 00:05:02 000000 -- ! Newsletter id                  !                                                                                                                     !
2019-05-07 00:05:02 000000 -- !------------------------------------------------------------------------------------------------------------------------------------------------------!
2019-05-07 00:05:02 000000 -- ! daily_category_3               ! old : 2019-05-06 00:00:00, lower : 2019-05-06 00:00:00, upper = 2019-05-07 00:00:00                                 !
2019-05-07 00:05:02 000000 -- !                                ! query_posts : {"cat":3,"m":"20190506"}                                                                              !
2019-05-07 00:05:02 000000 -- !                                ! ( 0 ) no recipients                                                                                                 !
2019-05-07 00:05:02 000000 -- !------------------------------------------------------------------------------------------------------------------------------------------------------!
2019-05-07 00:05:02 000000 --  **** End   logging **** mp_sched_proc_newsletter *** level : 32767 **** status : TRUE


andré renaut

unread,
May 13, 2019, 8:08:31 AM5/13/19
to mail...@googlegroups.com
is this the default newsletter ?

how many subscribers ? (there is a filter in mailpress users list)

--
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===
 
You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

---
You received this message because you are subscribed to the Google Groups "MailPress" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailpress+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

andré renaut

unread,
May 13, 2019, 8:12:43 AM5/13/19
to mail...@googlegroups.com
Capture.JPG

Ovidiu

unread,
May 15, 2019, 12:30:37 AM5/15/19
to MailPress
Thanks for pointing that out. I have 2 newsletters, one per post (with an informational category where there rarely is a post) and a daily one. 


3423 active users, they seem subscribed to both newsletters: https://take.ms/tj7Bu 
yet when I filter for them nobody seems subscribed? 

This is the result after that .csv import via SQL you helped me with, I never double checked afterwards, just tried sending the newsletter out again.

I spot checked a couple of users via editing them and they are indeed subscribed to those newsletters: https://take.ms/OlkYn - really unsure waht is wrong here.

andré renaut

unread,
May 17, 2019, 11:52:35 AM5/17/19
to mail...@googlegroups.com
Hello

best is

1) back up the database (should be done regularly)
2) delete from the mailpress user tables all the waiting (2023) Bounced (1384) Unsubscribed (697)

DELETE FROM xx_mailpress_users WHERE status <> 'active'

3) export using Csv_export
4) edit csv file (excel libreoffice) and delete all columns except email and name
5) set your default newsletters in MailPress settings
6) Import modified csv file

Capture.JPG


this should do the trick



--
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===
 
You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

---
You received this message because you are subscribed to the Google Groups "MailPress" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailpress+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ovidiu

unread,
Jun 2, 2019, 5:23:57 PM6/2/19
to MailPress
I followed all your instructions but when importing the cleaned CSv which only consists of the 2 columns email and name it gets stuck here without a button to continue :-( 

andré renaut

unread,
Jun 3, 2019, 12:35:00 PM6/3/19
to mail...@googlegroups.com
good point, this is a bug

possible turnaround  : activate the mailinglist addon (just for the import)

Le lun. 3 juin 2019 à 00:13, 'Ovidiu' via MailPress <mail...@googlegroups.com> a écrit :
I followed all your instructions but when importing the cleaned CSv which only consists of the 2 columns email and name it gets stuck here without a button to continue :-( 

--
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===
 
You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

---
You received this message because you are subscribed to the Google Groups "MailPress" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailpress+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

andré renaut

unread,
Jun 3, 2019, 12:36:07 PM6/3/19
to mail...@googlegroups.com
workaround ...
Reply all
Reply to author
Forward
0 new messages