Please help,

AFter installing, successfully creating a new user, I get the error.

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time. in /home/ashantyn/public_html/drupal/sites/default/settings.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/ashantyn/public_html/drupal/sites/default/settings.php:128) in /home/ashantyn/public_html/drupal/includes/bootstrap.inc on line 550

Warning: Cannot modify header information - headers already sent by (output started at /home/ashantyn/public_html/drupal/sites/default/settings.php:128) in /home/ashantyn/public_html/drupal/includes/bootstrap.inc on line 551

Warning: Cannot modify header information - headers already sent by (output started at /home/ashantyn/public_html/drupal/sites/default/settings.php:128) in /home/ashantyn/public_html/drupal/includes/bootstrap.inc on line 552

Warning: Cannot modify header information - headers already sent by (output started at /home/ashantyn/public_html/drupal/sites/default/settings.php:128) in /home/ashantyn/public_html/drupal/includes/bootstrap.inc on line 553

Warning: Cannot modify header information - headers already sent by (output started at /home/ashantyn/public_html/drupal/sites/default/settings.php:128) in /home/ashantyn/public_html/drupal/includes/bootstrap.inc on line 554

Comments

ironhide1975’s picture

test link is http://ashantynolemon.com/drupal/index.php

errors can be seen there

ironhide1975’s picture

wow does this community ever respond?

criznach’s picture

I can't speak for anyone else, but I don't read every post every day.

Can you maybe post a dump of phpinfo()? Who's your host? Looks like maybe they don't allow you to override the settings that Drupal needs on startup.

dsamuel’s picture

I installed Drupal on my server succesfully, but got the same problem as above when installing it on my laptop. I have had it on my laptop before, but a previous version, and an previous installation of AMP (had to rebuild hard drive).

Any help greatly appreciated!

phpinfo():

PHP Logo
PHP Version 5.1.2

System Windows NT LAPTOP 5.1 build 2600
Build Date Jan 11 2006 16:35:21
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Server API Apache
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WWW application server\PHP\php.ini
PHP API 20041225
PHP Extension 20050922
Zend Extension 220051025
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, zlib.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2047 2047
expose_php On On
extension_dir C:\WWW application server\PHP\ext\ C:\WWW application server\PHP\ext\
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .;C:\php5\pear .;C:\php5\pear
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_time 60 60
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from dsamuel@magma.ca dsamuel@magma.ca
sendmail_path no value no value
serialize_precision 100 100
short_open_tag On On
SMTP mail.magma.ca mail.magma.ca
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

apache
Apache for Windows 95/NT

Apache Version Apache/1.3.34 (Win32) PHP/5.1.2
Apache Release 10324100
Apache API Version 19990320
Hostname:Port localhost:80
Timeouts Connection: 300 - Keep-Alive: 15

Directive Local Value Master Value
child_terminate 0 0
engine 1 1
last_modified 0 0
xbithack 0 0

Apache Environment
Variable Value
COMSPEC C:\WINDOWS\system32\cmd.exe
DOCUMENT_ROOT c:/www source
HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_LANGUAGE en-gb,en;q=0.5
HTTP_CONNECTION keep-alive
HTTP_COOKIE dbx-postmeta=grabit=0-,1-,2-,3-,4-,5-,6-&advancedstuff=0+,1-,2+,3-,4+,5-; PHPSESSID=a068b94ab0c67889b2f815e5bdeb2873
HTTP_HOST localhost
HTTP_KEEP_ALIVE 300
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
HTTP_XXXXXXXXXXXXXXX XXXXXXXXXXXX
PATH C:\Program Files\Spirent communications\Spirent TestCenter\Spirent TestCenter Application;C:\Program Files\Tcl\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WWW application server\PHP;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\MySQL\MySQL Server 4.1\bin;%MEMORANDA_HOME%\lib\win32;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\;C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\\Administration Application
REDIRECT_STATUS 200
REDIRECT_URL /phpStatus/
REMOTE_ADDR 127.0.0.1
REMOTE_PORT 1078
SCRIPT_FILENAME c:/www source/phpstatus/index.php
SERVER_ADDR 127.0.0.1
SERVER_ADMIN dsamuel@magma.ca
SERVER_NAME localhost
SERVER_PORT 80
SERVER_SIGNATURE Apache/1.3.34 Server at localhost Port 80
SERVER_SOFTWARE Apache/1.3.34 (Win32) PHP/5.1.2
SystemRoot C:\WINDOWS
WINDIR C:\WINDOWS
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /phpStatus/
SCRIPT_NAME /phpStatus/index.php

HTTP Headers Information
HTTP Request Headers
HTTP Request GET /phpStatus/ HTTP/1.1
Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language en-gb,en;q=0.5
Connection keep-alive
Cookie dbx-postmeta=grabit=0-,1-,2-,3-,4-,5-,6-&advancedstuff=0+,1-,2+,3-,4+,5-; PHPSESSID=a068b94ab0c67889b2f815e5bdeb2873
Host localhost
Keep-Alive 300
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
XXXXXXXXXXXXXXX XXXXXXXXXXXX
HTTP Response Headers
X-Powered-By PHP/5.1.2
Set-Cookie PHPSESSID=a068b94ab0c67889b2f815e5bdeb2873; path=/
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma no-cache
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html

bcmath
BCMath support enabled

calendar
Calendar support enabled

com_dotnet
COM support enabled
DCOM support disabled
.Net support enabled

Directive Local Value Master Value
com.allow_dcom 0 0
com.autoregister_casesensitive 1 1
com.autoregister_typelib 0 0
com.autoregister_verbose 0 0
com.code_page no value no value
com.typelib_file no value no value

ctype
ctype functions enabled

date
date/time support enabled
Timezone Database Version 2005.18
Timezone Database internal
Default timezone America/New_York

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value

dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.22
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

ftp
FTP support enabled

gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

iconv
iconv support enabled
iconv implementation "libiconv"
iconv library version 1.9

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

libxml
libXML support active
libXML Version 2.6.22
libXML streams enabled

mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 3.7.1

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding ISO-8859-1 no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.7

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

mysqli
MysqlI Support enabled
Client API version 4.1.7
MYSQLI_SOCKET /tmp/mysql.sock

Directive Local Value Master Value
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.reconnect Off Off

odbc
ODBC Support enabled
Active Persistent Links 0
Active Links 0
ODBC library Win32

Directive Local Value Master Value
odbc.allow_persistent On On
odbc.check_persistent On On
odbc.default_db no value no value
odbc.default_pw no value no value
odbc.default_user no value no value
odbc.defaultbinmode return as is return as is
odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes
odbc.max_links Unlimited Unlimited
odbc.max_persistent Unlimited Unlimited

pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 6.2 01-Aug-2005

Reflection
Reflection enabled
Version $Id: php_reflection.c,v 1.164.2.17 2006/01/01 12:50:12 sniper Exp $

session
Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start On On
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path C:\WINDOWS\Temp C:\WINDOWS\Temp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.10 $
Schema support enabled

SPL
SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Internal Sendmail Support for Windows enabled

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value

tokenizer
Tokenizer Support enabled

wddx
WDDX Support enabled
WDDX Session Serializer enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.22

xmlreader
XMLReader enabled

xmlwriter
XMLWriter enabled

zlib
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Additional Modules
Module Name

Environment
Variable Value
ALLUSERSPROFILE C:\Documents and Settings\All Users
CLASSPATH .;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
CommonProgramFiles C:\Program Files\Common Files
COMPUTERNAME DOUGLAPTOP
ComSpec C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK NO
NUMBER_OF_PROCESSORS 1
OS Windows_NT
Path C:\Program Files\Spirent communications\Spirent TestCenter\Spirent TestCenter Application;C:\Program Files\Tcl\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WWW application server\PHP;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\MySQL\MySQL Server 4.1\bin;%MEMORANDA_HOME%\lib\win32;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\;C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\\Administration Application
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PHPRC C:\WWW application server\PHP
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 15 Model 2 Stepping 7, GenuineIntel
PROCESSOR_LEVEL 15
PROCESSOR_REVISION 0207
ProgramFiles C:\Program Files
QTJAVA C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
SPIRENT_TESTCENTER_HOME C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\
SystemDrive C:
SystemRoot C:\WINDOWS
TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP
tvdumpflags 10
USERPROFILE C:\Documents and Settings\LocalService
windir C:\WINDOWS

PHP Variables
Variable Value
_REQUEST["dbx-postmeta"] grabit=0-,1-,2-,3-,4-,5-,6-&advancedstuff=0 ,1-,2 ,3-,4 ,5-
_REQUEST["PHPSESSID"] a068b94ab0c67889b2f815e5bdeb2873
_COOKIE["dbx-postmeta"] grabit=0-,1-,2-,3-,4-,5-,6-&advancedstuff=0 ,1-,2 ,3-,4 ,5-
_COOKIE["PHPSESSID"] a068b94ab0c67889b2f815e5bdeb2873
_SERVER["COMSPEC"] C:\WINDOWS\system32\cmd.exe
_SERVER["DOCUMENT_ROOT"] c:/www source
_SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-gb,en;q=0.5
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_COOKIE"] dbx-postmeta=grabit=0-,1-,2-,3-,4-,5-,6-&advancedstuff=0+,1-,2+,3-,4+,5-; PHPSESSID=a068b94ab0c67889b2f815e5bdeb2873
_SERVER["HTTP_HOST"] localhost
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
_SERVER["HTTP_XXXXXXXXXXXXXXX"] XXXXXXXXXXXX
_SERVER["PATH"] C:\Program Files\Spirent communications\Spirent TestCenter\Spirent TestCenter Application;C:\Program Files\Tcl\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WWW application server\PHP;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\MySQL\MySQL Server 4.1\bin;%MEMORANDA_HOME%\lib\win32;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\;C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\\Administration Application
_SERVER["REDIRECT_STATUS"] 200
_SERVER["REDIRECT_URL"] /phpStatus/
_SERVER["REMOTE_ADDR"] 127.0.0.1
_SERVER["REMOTE_PORT"] 1078
_SERVER["SCRIPT_FILENAME"] c:/www source/phpstatus/index.php
_SERVER["SERVER_ADDR"] 127.0.0.1
_SERVER["SERVER_ADMIN"] dsamuel@magma.ca
_SERVER["SERVER_NAME"] localhost
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SIGNATURE"] Apache/1.3.34 Server at localhost Port 80
_SERVER["SERVER_SOFTWARE"] Apache/1.3.34 (Win32) PHP/5.1.2
_SERVER["SystemRoot"] C:\WINDOWS
_SERVER["WINDIR"] C:\WINDOWS
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /phpStatus/
_SERVER["SCRIPT_NAME"] /phpStatus/index.php
_SERVER["PATH_TRANSLATED"] c:/www source/phpstatus/index.php
_SERVER["PHP_SELF"] /phpStatus/index.php
_SERVER["REQUEST_TIME"] 1159398319
_SERVER["argv"]

Array
(
)

_SERVER["argc"] 0
_ENV["ALLUSERSPROFILE"] C:\Documents and Settings\All Users
_ENV["CLASSPATH"] .;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
_ENV["CommonProgramFiles"] C:\Program Files\Common Files
_ENV["COMPUTERNAME"] DOUGLAPTOP
_ENV["ComSpec"] C:\WINDOWS\system32\cmd.exe
_ENV["FP_NO_HOST_CHECK"] NO
_ENV["NUMBER_OF_PROCESSORS"] 1
_ENV["OS"] Windows_NT
_ENV["Path"] C:\Program Files\Spirent communications\Spirent TestCenter\Spirent TestCenter Application;C:\Program Files\Tcl\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WWW application server\PHP;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\MySQL\MySQL Server 4.1\bin;%MEMORANDA_HOME%\lib\win32;C:\Program Files\Java\jre1.5.0_06\bin;C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\;C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\\Administration Application
_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_ENV["PHPRC"] C:\WWW application server\PHP
_ENV["PROCESSOR_ARCHITECTURE"] x86
_ENV["PROCESSOR_IDENTIFIER"] x86 Family 15 Model 2 Stepping 7, GenuineIntel
_ENV["PROCESSOR_LEVEL"] 15
_ENV["PROCESSOR_REVISION"] 0207
_ENV["ProgramFiles"] C:\Program Files
_ENV["QTJAVA"] C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip
_ENV["SPIRENT_TESTCENTER_HOME"] C:\Program Files\Spirent Communications\Spirent TestCenter\p1.2\
_ENV["SystemDrive"] C:
_ENV["SystemRoot"] C:\WINDOWS
_ENV["TEMP"] C:\WINDOWS\TEMP
_ENV["TMP"] C:\WINDOWS\TEMP
_ENV["tvdumpflags"] 10
_ENV["USERPROFILE"] C:\Documents and Settings\LocalService
_ENV["windir"] C:\WINDOWS

------------------------
Partly Technical
About Allergies
------------------------

criznach’s picture

I suspect it has something to do with the output buffering setting. You have it set to no in your php.ini. Drupal does a lot of output buffering. Try turning it on and see what happens.

Chris.

dsamuel’s picture

Hi Chris,

Thanks for the suggestion. I tried making the change, to no avail.

doug

------------------------
Partly Technical
About Allergies
------------------------

alexjudd’s picture

The solution for us was that the default memory settings were causing the session to time out. The default was 8M so with a raise in the setting to 32M this fixed the issue.

This was done in the .htaccess file for the site with the following setting

php_value "memory_limit" "32M"

We also did some other optimisation with the following values/flags in the .htaccess file

php_value session.cache_expire 200000
php_value session.gc_maxlifetime 200000
php_value session.cookie_domain ".yoursite.com"
php_value session.cookie_lifetime 2000000
php_value session.auto_start 0
php_value session.save_handler user
php_value session.cache_limiter none

php_flag register_globals on
php_value "max_execution_time" 600
php_value display_errors 0
php_value output_buffering 1
php_value "memory_limit" "32M"

# Fix PHP session ID problems in Drupal
php_value session.use_trans_sid 0
php_value session.use_only_cookies 1

Regards

Alex

alexjudd’s picture

Actually commenting out the

#ini_set('session.save_handler', 'user');

line in the /sites/default/settings.php resolved the problems in the long run for us.

criznach’s picture

Interesting.

Drupal's custom session handling caused problems for me recently when trying to embed a shopping cart app in my drupal app. For a small, single-server drupal site, how much performance is gained with the custom session handling?

Good to hear it worked out.

Later,
Chris.

criznach’s picture

Actually, after looking at your phpinfo again, I wonder if it's because your session.auto_start value was On The default is Off. This means that a session was already started when ini_set was called in settings.php. If you want to use drupal's session handling, you might try turning session.auto_start back to it's default of Off.

Chris.

dsamuel’s picture

Hi Chris,

Thanks for taking a second look. The session.auto_start parameter was the problem. I had changed it to test some other software. Now that I have changed it back to the default, it works just fine.

doug

------------------------
Partly Technical
About Allergies
------------------------

suydam’s picture

Make sure you have .htaccess in the root of your drupal install.
I occasionally install a new copy of drupal and don't get the .htaccess file copied into my web root correctly...that causes this exact error on machines that have session auto_start set to On.

FWIW, I keep auto_start set to On for other stuff on this server, and the drupal .htaccess file over-rides this setting supurbly. I don't need to edit the settings.php for session handler...it just works.

rami.sedhom’s picture

I'm facing the same problem. I tried to comment ini_set('session.save_handler','user') in settings.php but it gives me the following error:

Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 550

Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 551

Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 552

Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 553

Warning: Cannot modify header information - headers already sent by (output started at /home/ikhnaton/public_html/whisper/sites/default/settings.php:128) in /home/ikhnaton/public_html/whisper/includes/bootstrap.inc on line 554

and browsing to any page (even home page) gives:

Access denied
You are not authorized to access this page.

I tried to add those lines mentioned above to .htaccess file but no difference:

php_value "memory_limit" "32M"
php_value session.cache_expire 200000
php_value session.gc_maxlifetime 200000
php_value session.cookie_domain ".ikhnaton2.com"
php_value session.cookie_lifetime 2000000
php_value session.auto_start 0
php_value session.save_handler user
php_value session.cache_limiter none
php_flag register_globals on
php_value "max_execution_time" 600
php_value display_errors 0
php_value output_buffering 1
# Fix PHP session ID problems in Drupal
php_value session.use_trans_sid 0
php_value session.use_only_cookies 1

Peace,
Rami Sedhom
http://www.ikhnaton2.com

ungeek’s picture

Running Drupal 5.1

I've tried to short-circuit the offending ini_set() statements in settings.php in the following manner (not that I really understand what I do, mind you) :

------------------
ini_set('session.gc_maxlifetime', 200000);
ini_set('session.use_only_cookies', 1);
if (!session_id()) {
  ini_set('session.save_handler', 'user');
  ini_set('session.use_trans_sid', 0);
}

ini_set('url_rewriter.tags', '');
ini_set('memory_limit', '24M');
--------------------

That seems to work for me.

-rg-

-rg-