NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1
|Anonymous | Login | Signup for a new account||29-03-17 16:15 BST|
|My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003602||phplist application||Subscriber Import||public||15-07-05 00:42||15-07-05 02: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.|
|Moved the session_start to a place where it is always called, even when require_login is not used.|
|Copyright © 2000 - 2017 MantisBT Team|