latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

User export csv full of random stuff!!

Home Forums Community Forum User export csv full of random stuff!!

This topic contains 17 replies, has 4 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Thursday Jun 28th, 2012 at 4:44 am #17731
Epix Media
Username: epixmedia

Hi all, I was training with a client yesterday and when I showed them the user export feature the file just opened containing about 15 rows of complete gobbledy-gook!! Just lots of random characters…

Any ideas how to sort this? I’ve tried it in a couple of different browsers and get the same issue…

Cheers!

List Of Topic Replies

Viewing 17 replies - 1 through 17 (of 17 total)
Author Replies
Author Replies
Posted: Friday Jun 29th, 2012 at 3:10 am #17826
Raam Dev
Username: Raam
Staff Member

Hi Zoe,

It sounds like it might related to GZIP compression or chunked file delivery. Please see the following KB article and try the various suggestions explained there:

Knowledge Base » Resolving Problems with File Downloads

Posted: Friday Jun 29th, 2012 at 5:08 am #17840
Epix Media
Username: epixmedia

Hi Raam, I’ve tried all of those with no luck – could it be related to the issue I was having with the secure file downloads here http://www.s2member.com/forums/topic/protected-pdfs-downloading-corrupt/

If so does another hack similar to Jason’s last one need putting in place?

Thanks,

Zoe

Posted: Friday Jun 29th, 2012 at 4:38 pm #17887

Zoe,

The hack that Jason suggested is also used to solve csv export issue so is it still active on your installation or has it been over written by an upgrade?

Posted: Saturday Jun 30th, 2012 at 6:14 am #17930
Raam Dev
Username: Raam
Staff Member

Zoe,

I suggest trying the hack that Jason mentioned in that other post. If you’re using the same web host as you were for that problem, there’s a good chance that will fix it.

Posted: Saturday Jun 30th, 2012 at 12:35 pm #17968
Epix Media
Username: epixmedia

Hi Raam, its the same website! So Jasons hack is already in place as per the other post…!

??

Posted: Saturday Jun 30th, 2012 at 12:55 pm #17970

Zoe,

When you upgraded to v120622 that hack would have been overwritten, did you redo it then?

Posted: Saturday Jun 30th, 2012 at 1:29 pm #17974
Epix Media
Username: epixmedia

ahhh, possibly not, will take a look and report back!

Thanks :)

Posted: Saturday Jun 30th, 2012 at 1:35 pm #17975
Epix Media
Username: epixmedia

I’ve put Jason’s code back in place and my secure downloads are working fine still by my user export file is still full of random characters…

Any more ideas guys??

Posted: Saturday Jun 30th, 2012 at 2:13 pm #17977

can you try changing

/s2member-pro/includes/classes/exports-in.inc.php

at line #239 find this:

header ("Content-Encoding:");

and change it to

header ("Content-Encoding: none");
Posted: Sunday Jul 1st, 2012 at 2:09 pm #18036
Epix Media
Username: epixmedia

Awesome, thanks Philly – its working now.

One quick Q (that I think my client will ask) – the “First Payment Date” column is populated with things like:
a:2:{s:5:\level\”;s:10:\”1339775909\”;s:6:\”level3\”;s:10:\”1339775909\”;}”

Why is that?

Cheers :)

Posted: Sunday Jul 1st, 2012 at 2:22 pm #18037

Glad its working :)

Its a serialized associative array in no specific order. Each *paying* customer will have the “level” array element, indicating the first paid registration time, at whatever Membership Level they paid for initially. The values are stored as a Unix Timestamp.

Posted: Tuesday Jul 3rd, 2012 at 1:07 pm #18200
Epix Media
Username: epixmedia

So what use is that column in its current form in the CSV? My client will be downloading and using this spread sheet and it will just look like useless random characters to them…!

Cheers :)

Posted: Wednesday Jul 4th, 2012 at 11:19 pm #18328

If he doesn’t have a use for the first payment time, he can just ignore that column.

You can customize the CSV format in the export code, if you want.

When you upgraded to v120622 that hack would have been overwritten, did you redo it then?

One thing you can do is make a copy of the file and put it in your /wp-content/mu-plugins/ dir and edit that instead, it won’t be overwritten on update.

Posted: Friday Jul 6th, 2012 at 3:41 am #18422
Epix Media
Username: epixmedia

Lovely! Thanks :)

Posted: Friday Jul 6th, 2012 at 7:50 am #18468

No problem. :)

Posted: Tuesday Jul 10th, 2012 at 4:51 am #18790
Epix Media
Username: epixmedia

Hi Cristian, what file do I need to alter the user export code? My client wants it to include the number of times logged in as per the “users” section in the admin.

Cheers :)

Posted: Tuesday Jul 10th, 2012 at 5:30 am #18797

That’d be s2member-pro\includes\classes\exports-in.inc.php :)

Viewing 17 replies - 1 through 17 (of 17 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.