[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4758: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4761: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
phplist forums • View topic - checkbox attributes imported users changed to checked -fixed

checkbox attributes imported users changed to checked -fixed

Discuss, research, share, find, and solve bugs

checkbox attributes imported users changed to checked -fixed

Postby zeb4dev » 9:19am, Fri 16 Apr, 2010

I imported users with around 10 different "checkbox" attributes.
Some of them with value "on", some of them blank

After sending the message to them,
when the users click on the standard link "update preferences"
all the criterias "checkbox" are "checked"
other attributes (non checkboxes) are fine

In the php table the data = the data imported:
some checkboxes fields with "on", some fields with blank

This problem is only for "imported users"
For users created through the phplistadmin, it's fine.
zeb4dev
phpLister
 
Posts: 7
Joined: 10:51pm, Fri 02 Apr, 2010

Re: checkbox attributes from imported users changed to checked

Postby zeb4dev » 10:11am, Fri 16 Apr, 2010

Some details and corrections from the previous post

When importing users with 1st item "import emails adresses with different attributes"

When the checkbox value is blank, phplist writes by default "off" during import.

When looking at a user, phplist knows that "blank" means "unchecked" ans "off" is displayed as "unchecked"

But "the preference page"
- doesn't know that "off" means "unchecked"
- decide that "not blank" means "checked"

2 solutions possible:
-during import, block the "off" written when the cell is blank
-displaying preference pages, translate "off" and blank by "unchecked"

Somebody knows which file to modify?
zeb4dev
phpLister
 
Posts: 7
Joined: 10:51pm, Fri 02 Apr, 2010

Re: checkbox attributes from imported users changed to checked

Postby H2B2 » 12:18pm, Fri 16 Apr, 2010

phpList | | | |
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Re: checkbox attributes from imported users changed to checked

Postby zeb4dev » 1:02pm, Fri 16 Apr, 2010

Thanks but not the same issue.

I found to get rid of this problem by choosing to look at my possible solutions #1:
-during import, block the "off" written when the cell is blank

in the file
admin/page/importcsv.php

line 611
replace
$user_att_value = "off";
by
$user_att_value = "";

checkbox data shown on preferences pages are now fine
zeb4dev
phpLister
 
Posts: 7
Joined: 10:51pm, Fri 02 Apr, 2010

Re: checkbox attributes from imported users changed to checked

Postby H2B2 » 7:37pm, Sun 18 Apr, 2010

OK, thanks for clarifying this. Could you mention which phpList version you are running? Thx!

Filed the following bug report: http://mantis.phplist.com/view.php?id=15445
phpList | | | |
H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Re: checkbox attributes from imported users changed to checked

Postby zeb4dev » 2:41pm, Fri 23 Apr, 2010

version 2.10.10
on PC, W2000
zeb4dev
phpLister
 
Posts: 7
Joined: 10:51pm, Fri 02 Apr, 2010

Re: checkbox attributes imported users changed to checked -f

Postby Fantail » 2:17pm, Fri 02 Aug, 2013

Confirmed fix - after noticing the issue importing users with "import emails with different values for attributes" option.
Defined 'Check Box' attributes with a value of "0" would all show up as 'checked' under the 'details of a user - update page' link. Also verified with live email test accounts.
---
Applied fix
replace
$user_att_value = "off";
by
$user_att_value = "";
---
Created a dozen or so test accounts for import, some with live emails, all with random "0" & "1" defined 'check box' attribute values. Ran import into test list - all successful. Verified test accounts - update page & live links - OK. Verified user read/write preference changes with sent email links for preferences to ensure changes saved and displayed properly, OK.
---
Since this fix only affects new imports I now have to tag all the users in a 600+ list who haven't made preference changes and delete them & re-import the users. Or, shortcut that job by deleting all of them and starting over. Either that or manually change over 500 records, screw that noise.
---
Thank you for posting this thread / fix.
version 2.10.19
manual upload/install - host cpanel did not have a software option for phplist.
Apache version 2.2.24
PHP version 5.3.26
MySQL version 5.1.68-cll
Fantail
phpLister
 
Posts: 5
Joined: 1:29am, Tue 30 Jul, 2013


Return to Bug Discussion

Who is online

Users browsing this forum: No registered users and 2 guests