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.

Illegal string offset 'level', user export

Home Forums Community Forum Illegal string offset 'level', user export

This topic contains 5 replies, has 2 voices. Last updated by  Jason (Lead Developer) 3 years, 11 months ago.

Topic Author Topic
Posted: Thursday Jan 24th, 2013 at 8:40 pm #39462
Fintan
Username: fintan

Hi,

I’m developing a s2member based website on a local XAMPP server. When I try and export users to CSV I get the following error,

Warning: Illegal string offset 'level' in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 110

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 239

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 240

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 241

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 242

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 243

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 244

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 245

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 246

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php:110) in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 249

I ran s2Member-check-my-server.php and fixed every error except the one below. I have also disabled all other plugins and changed back to the Twenty Twelve theme.

[ERROR] PHP Echo Tag: <?=?>
PHP v5.4.7 supports the echo tag (<?=?>) at all times. So you're good here.

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Friday Jan 25th, 2013 at 11:42 pm #39593
Staff Member

Thanks for reporting this important issue.

Warning: Illegal string offset ‘level’ in C:\xampp\htdocs\ancestryireland\wp-content\plugins\s2member-pro\includes\classes\exports-in.inc.php on line 110

What version of s2Member® Pro are you running please?
Or, if you’d like to send us a Dashboard login and FTP access, we’ll run diagnostics for you.
See: s2Member® » Private Contact Form

[ERROR] PHP Echo Tag:
PHP v5.4.7 supports the echo tag () at all times. So you’re good here.

Please disregard this. It’s actually a false-positive that needs to be corrected I see. On PHP 5.4.7, you should see this as a PASS, and not as an ERROR. We’ll have this corrected asap.

Posted: Sunday Jan 27th, 2013 at 7:16 pm #39741
Fintan
Username: fintan

I’m using the latest version I think, s2Member Pro v130123. I’m working on this locally at the moment so I can’t provide access.

Posted: Wednesday Jan 30th, 2013 at 4:06 am #39993
Staff Member

Thanks for the follow-up :-)

I appreciate you reporting this. We’ve investigated the issue and found a possible cause for this. I’m attaching a patch file if you’d like to apply it. Please unzip and upload the attached file, allowing it to override your existing copy of: /s2member-pro/includes/classes/exports-in.inc.php

This change will go out in the next maintenance release.
http://d1v41qemfjie0l.cloudfront.net/s2member/uploads/exports-in.inc_.php_.zip

Line #107 modified from:

$paid_registration_times = (isset($user->$s2map["paid_registration_times"])) ? $user->$s2map["paid_registration_times"] : "";

To:

$paid_registration_times = (isset($user->$s2map["paid_registration_times"])) ? $user->$s2map["paid_registration_times"] : array();

Please let us know if problems persist :-)

Posted: Thursday Jan 31st, 2013 at 12:39 am #40055
Fintan
Username: fintan

Just letting you know that this patch works and I was able to export with no problems. Thanks for your help.

Posted: Saturday Feb 2nd, 2013 at 6:22 am #40380
Staff Member

Thanks for reporting back. Much appreciated :-)

Viewing 5 replies - 1 through 5 (of 5 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.