View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003602||phplist application||Subscriber Import||public||14-07-05 23:42||15-07-05 01:26|
|Target Version||Fixed in Version||2.9.5|
|Summary||0003602: If $require_login is off subscriber import with $_SESSION crashes|
|Description||I am working with a PHPlist installation with $require_login=0 and access control via HTTP authentication for the whole admin branch. This has the result, that the function session_start() is never called. But when importing emails with the topic 'import emails with different values for attributes' the $_SESSION array is used. |
Due to the PHP manual, section CXI. Session Functions, a reference to a variable stored in $_SESSION like $_SESSION["import_file"] does not imply an initialisation of the $_SESSION array. session_start() has to be called explicitly before.
I don't know if this has been changed in PHP 5.x, but PHP 4.1.2 needs that call. To solve the problem a line like
should be added at the beginning of file .../admin/commonlib/pages/importcsv.php.
|Tags||No tags attached.|