NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003602phplist applicationSubscriber Importpublic15-07-05 00:4215-07-05 02:26
PlatformOSOS Version
Product Version2.9.4 
Target VersionFixed in Version2.9.5 
Summary0003602: If $require_login is off subscriber import with $_SESSION crashes
DescriptionI 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to 0002457resolvedmichiel PHPList v2.9.5 release 

-  Notes
michiel (manager)
15-07-05 02:26

Moved the session_start to a place where it is always called, even when require_login is not used.

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker