Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Php Warning - Session_Name(): Cannot Change Session Name When Headers Already Sentsession_Name(): Cannot Change Session Name When Headers Already Sent Rate Topic   - - - - -

 
  • Abaco
  • Advanced Member
  • Members
  • Join Date: 30-Jan 12
  • 53 posts

Posted 11 November 2019 - 05:50 PM #1

Hi All,

 

I was trying to install a development site in a sub directory or our server and had to make a mod to the .htaccess file.  Only I was not in the dev directory, but the root directory and ended up doing a RewriteBase /dev to the development directory for our live site.  I changed the RewriteBase / back and now I am getting errors.  The Admin page is fine,  but none of the webpages open, only showing the store closed message. Below is the error that is showing. Any idea what might be causing this and the cure?  Thanks,  Rich

 

PHP Warning
Message
session_name(): Cannot change session name when headers already sent
Error at
app/Tygh/Web/Session.php, line: 243
Backtrace
File: app/Tygh/Web/Session.php
Line: 243
Function: {closure}
File: app/Tygh/Providers/SessionProvider.php
Line: 49
Function: setName
File: app/lib/vendor/pimple/pimple/src/Pimple/Container.php
Line: 112
Function: Tygh\Providers\{closure}
File: init.php
Line: 129
Function: offsetGet
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
11/11/2019 Store closed
PHP Warning
Message
session_id(): Cannot change session id when headers already sent
Error at
app/Tygh/Web/Session.php, line: 255
Backtrace
File: app/Tygh/Web/Session.php
Line: 255
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 326
Function: setID
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
11/11/2019 Store closed
app/Tygh/Web/Session.php, line: 393
Backtrace
File: app/Tygh/Web/Session.php
Line: 393
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
app/Tygh/Web/Session.php, line: 394
Backtrace
File: app/Tygh/Web/Session.php
Line: 394
Function: {closure}
11/11/2019 Store closed
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
app/Tygh/Web/Session.php, line: 395
Backtrace
File: app/Tygh/Web/Session.php
Line: 395
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
11/11/2019 Store closed
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
app/Tygh/Web/Session.php, line: 396
Backtrace
File: app/Tygh/Web/Session.php
Line: 396
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
11/11/2019 Store closed
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
app/Tygh/Web/Session.php, line: 397
Backtrace
File: app/Tygh/Web/Session.php
Line: 397
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
11/11/2019 Store closed
Message
session_cache_limiter(): Cannot change cache limiter when headers already sent
Error at
app/Tygh/Web/Session.php, line: 399
Backtrace
File: app/Tygh/Web/Session.php
Line: 399
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
session_cache_expire(): Cannot change cache expire when headers already sent
Error at
app/Tygh/Web/Session.php, line: 400
11/11/2019 Store closed
Backtrace
File: app/Tygh/Web/Session.php
Line: 400
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
session_set_cookie_params(): Cannot change session cookie parameters when headers already
sent
Error at
app/Tygh/Web/Session.php, line: 407
Backtrace
File: app/Tygh/Web/Session.php
Line: 407
Function: {closure}
File: app/Tygh/Web/Session.php
11/11/2019 Store closed
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
session_set_save_handler(): Cannot change save handler when headers already sent
Error at
app/Tygh/Web/Session.php, line: 424
Backtrace
File: app/Tygh/Web/Session.php
Line: 424
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 330
Function: registerHandlers
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
11/11/2019 Store closed
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
session_start(): Cannot start session when headers already sent
Error at
app/Tygh/Web/Session.php, line: 333
Backtrace
File: app/Tygh/Web/Session.php
Line: 333
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
11/11/2019 Store closed
https://www.navstore.com11/11PHP Warning
Message
session_name(): Cannot change session name when headers already sent
Error at
app/Tygh/Web/Session.php, line: 243
Backtrace
File: app/Tygh/Web/Session.php
Line: 243
Function: {closure}
File: app/Tygh/Providers/SessionProvider.php
Line: 49
Function: setName
File: app/lib/vendor/pimple/pimple/src/Pimple/Container.php
Line: 112
Function: Tygh\Providers\{closure}
File: init.php
Line: 129
Function: offsetGet
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
11/11/2019 Store closed
PHP Warning
Message
session_id(): Cannot change session id when headers already sent
Error at
app/Tygh/Web/Session.php, line: 255
Backtrace
File: app/Tygh/Web/Session.php
Line: 255
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 326
Function: setID
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
11/11/2019 Store closed
app/Tygh/Web/Session.php, line: 393
Backtrace
File: app/Tygh/Web/Session.php
Line: 393
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
app/Tygh/Web/Session.php, line: 394
Backtrace
File: app/Tygh/Web/Session.php
Line: 394
Function: {closure}
11/11/2019 Store closed
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
app/Tygh/Web/Session.php, line: 395
Backtrace
File: app/Tygh/Web/Session.php
Line: 395
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
11/11/2019 Store closed
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
app/Tygh/Web/Session.php, line: 396
Backtrace
File: app/Tygh/Web/Session.php
Line: 396
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
11/11/2019 Store closed
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time
Error at
app/Tygh/Web/Session.php, line: 397
Backtrace
File: app/Tygh/Web/Session.php
Line: 397
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
11/11/2019 Store closed
Message
session_cache_limiter(): Cannot change cache limiter when headers already sent
Error at
app/Tygh/Web/Session.php, line: 399
Backtrace
File: app/Tygh/Web/Session.php
Line: 399
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
session_cache_expire(): Cannot change cache expire when headers already sent
Error at
app/Tygh/Web/Session.php, line: 400
11/11/2019 Store closed
Backtrace
File: app/Tygh/Web/Session.php
Line: 400
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
session_set_cookie_params(): Cannot change session cookie parameters when headers already
sent
Error at
app/Tygh/Web/Session.php, line: 407
Backtrace
File: app/Tygh/Web/Session.php
Line: 407
Function: {closure}
File: app/Tygh/Web/Session.php
11/11/2019 Store closed
Line: 327
Function: setSessionParams
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
session_set_save_handler(): Cannot change save handler when headers already sent
Error at
app/Tygh/Web/Session.php, line: 424
Backtrace
File: app/Tygh/Web/Session.php
Line: 424
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 330
Function: registerHandlers
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
11/11/2019 Store closed
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
PHP Warning
Message
session_start(): Cannot start session when headers already sent
Error at
app/Tygh/Web/Session.php, line: 333
Backtrace
File: app/Tygh/Web/Session.php
Line: 333
Function: {closure}
File: app/Tygh/Web/Session.php
Line: 154
Function: start
File: init.php
Line: 129
Function: init
File: app/functions/fn.init.php
Line: 1019
Function: {closure}
File: init.php
Line: 154
Function: fn_init
File: index.php
Line: 24
Function: require
11/11/2019 Store closed


 
  • Abaco
  • Advanced Member
  • Members
  • Join Date: 30-Jan 12
  • 53 posts

Posted 11 November 2019 - 07:53 PM #2

I am not sure what the problems was that caused this error.  However, I restored the DB and now the site is operating correctly again.



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11424 posts

Posted 11 November 2019 - 10:06 PM #3

Manually clear your cache by deleting or renaming var/cache.

Clear your browser cache or close your browser and reopen it.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.