Jump to content
  • 0

ini_set(): A session is active.


Amit Kumar Mishra

Question

hi 

i keep getting this error quiet often

ini_set(): A session is active. You cannot change the session module's ini settings at this time on line 61 in localhost/blesta_install/vendors/minphp/session/src/Session.php 

 

the only way to get this to work is to reinstall

i tried removing the sessions fields from the tables, but it again gives this error

when i comment out the line 61, it then gives error 

ini_set(): A session is active. You cannot change the session module's ini settings at this time on line 171

when i comment out line 171, the error, goes off

but my concern is will this be a security breach, or will it cause some issue, not sure

by the way i am using php7.2.x environment

 

if i update the files as mentioned by @Tyson, in the thread 

 

any help would be welcomed

 

thanks

amit

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
2 hours ago, Paul said:

Do you get the same error on PHP 7.0 or 7.1? Did you modify any files? If there is premature output, it may hinder sessions from working properly. This is most commonly an issue when modifying templates and leaving extra spaces or new lines at the beginning or end of files.

did not try the other versions

will try and let you know

there is no premature output,

also the issue gets on, even in the default blesta template

1 hour ago, Tyson said:

What version of Blesta are you using?

You referenced "line 61 of ...Session.php" changes the php ini settings, but that is only on an old version of Blesta. You may need to upgrade.

i was using 4.3, did the updates as you had mentioned in the other thread

i will do an upgrade/updated install, and let you know if there is the same issue

but any work around without the commenting out of the lines in sessions.php?

 

thanks

amit

Link to comment
Share on other sites

  • 0

hi

@Paul, @Tyson

i did a fresh install of 4.4, and seems like things are in control now

did some excessive testing till more than 2 hours, the errors did not dared to appear in your latest codes

great work...

so the solution is upgrade to the latest

 

but wait, if there is something which creeps later on, i will post here

 

but thanks a million mates

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...