Problem with sessions | ezsession.php | session_start()

Author Message

Maxim Kopytov

Sunday 08 August 2010 9:43:08 am

Hi!

After publishing site on hosting server i see this errors.

Warning: PHP: E_WARNING Aug 08 2010 16:35:57
session_module_name() [<a href='function.session-module-name'>function.session-module-name</a>]:
A session is active. You cannot change the session module's ini settings at this time in /home/site/promo.site.com/docs/lib/ezutils/classes/ezsession.php on line 437

Notice: PHP: E_NOTICE Aug 08 2010 16:35:57
A session had already been started - ignoring session_start() in /home/site/promo.site.com/docs/lib/ezutils/classes/ezsession.php on line 520

And I can't login to the admin interface. Automaticly used anonymouse user.

Where is the probem?

I use eZ Publish 4.3.0

______________
I love eZ Publish

Robin Muilwijk

Sunday 08 August 2010 11:37:57 am

Hi Maxim,

Can you have a look at the following topic? http://share.ez.no/forums/developer/ez-publish-4-performance-varnish/(offset)/20#comment48709

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Maxim Kopytov

Monday 09 August 2010 8:39:03 am

"

Tuesday 31 March 2009 6:39:45 pm

Gosh... I get it.

 

session was at auto-start in php.ini.....

"

My .htaccess file:

php_value session.auto_start 0

And I see this error

[ Aug 09 2010 15:16:07 ] [213.206.44.230] PHP: E_WARNING:
Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

______________
I love eZ Publish

Robin Muilwijk

Monday 09 August 2010 11:35:37 am

Hi Maxim,

Could you check the phpinfo for the session auto start? Check if both local and master value are set to "Off".

-- Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Maxim Kopytov

Monday 09 August 2010 10:09:27 pm

"

Hi Maxim,

Could you check the phpinfo for the session auto start? Check if both local and master value are set to "Off".

-- Robin

"

Hi!

We found the problem!

In first line of index.php file, we found this code:

session_start();

I think that was somebody's malice.

______________
I love eZ Publish

Robin Muilwijk

Monday 09 August 2010 10:53:07 pm

Hi Maxim,

Glad to see this is fixed, could you mark the topic as solved? See your original/first post, there is a checkbox.

Thanks Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 14:39:12
Script start
Timing: Jan 29 2025 14:39:12
Module start 'layout'
Timing: Jan 29 2025 14:39:12
Module start 'content'
Timing: Jan 29 2025 14:39:13
Module end 'content'
Timing: Jan 29 2025 14:39:13
Script end

Main resources:

Total runtime1.0147 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.2578151.2266
Module start 'layout' 0.00430.0023 739.484436.6797
Module start 'content' 0.00661.0069 776.1641537.5547
Module end 'content' 1.01350.0011 1,313.718815.8125
Script end 1.0146  1,329.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.2753160.0002
Check MTime0.00110.1098160.0001
Mysql Total
Database connection0.00080.077010.0008
Mysqli_queries0.956694.2759670.0143
Looping result0.00050.0517650.0000
Template Total0.988997.520.4944
Template load0.00160.159820.0008
Template processing0.987297.294020.4936
Template load and register function0.00020.021510.0002
states
state_id_array0.00170.166810.0017
state_identifier_array0.00170.166320.0008
Override
Cache load0.00150.1440570.0000
Sytem overhead
Fetch class attribute can translate value0.00050.044620.0002
Fetch class attribute name0.00120.117180.0001
XML
Image XML parsing0.00410.403220.0020
class_abstraction
Instantiating content class attribute0.00000.0019120.0000
General
dbfile0.00400.3915240.0002
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 10

Time used to render debug report: 0.0001 secs