Page 1 of 1

3.5 upgrade error

Posted: Tue Mar 22, 2016 2:54 pm
by libby
Hi
I get the following error when updating from 3.48 to 3.5
Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /usr/www/users/XXX/libraries/joomla/session/handler/joomla.php on line 45 Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/XXX/libraries/joomla/session/handler/joomla.php:45) in /usr/www/users/XXX/libraries/joomla/session/handler/joomla.php on line 105 Error displaying the error page: Application Instantiation Error: Failed to start the session because headers have already been sent by "/usr/www/users/XXX/libraries/joomla/session/handler/joomla.php" at line 45.

Error is now on both back and front ends.

Any advice?

Re: 3.5 upgrade error

Posted: Tue Mar 22, 2016 3:07 pm
by dave600
I've had a similar problem before, involving sessions. A repair of the database in phpmyadmin did the trick.

Re: 3.5 upgrade error

Posted: Tue Mar 22, 2016 3:24 pm
by libby
Hi Dave,
Thanks for your response.
What did you do? I selected all the tables and selected 'repair table' but this made no difference.

Re: 3.5 upgrade error

Posted: Tue Mar 22, 2016 3:38 pm
by dave600
That was it, I'm afraid. You could also try deleting all the entries in the xxxx_session table. Take a backup of the database first, obviously, I'm no Joomla expert.

Re: 3.5 upgrade error

Posted: Wed Mar 23, 2016 1:02 pm
by libby
I am having the same issue on another site.

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in ... - headers already sent by (output started at /usr/www/users/XXX/libraries/joomla/session/handler/joomla.php:45) in /usr/www/users/XXX/libraries/joomla/session/handler/joomla.php on line 105 Error displaying the error page: Application Instantiation Error: Failed to start the session because headers have already been sent by "/usr/www/users/XXX/libraries/joomla/session/handler/joomla.php" at line 45.

Re: 3.5 upgrade error

Posted: Sun Mar 27, 2016 1:26 pm
by coliberek
Hi guys,

I have exactly the same error. Did you solve it somehow?
It is my 3rd approach to update my website but all the time I am getting errors.
Now I updated manually by the ftp but anyway I am getting error in frontend and in backend:

Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /var/www/vhosts/40/146876/webspace/httpdocs/oceannnew/libraries/joomla/session/handler/joomla.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/40/146876/webspace/httpdocs/oceannnew/libraries/joomla/session/handler/joomla.php:45) in /var/www/vhosts/40/146876/webspace/httpdocs/oceannnew/libraries/joomla/session/handler/joomla.php on line 105

Error displaying the error page: Application Instantiation Error: Failed to start the session because headers have already been sent by "/var/www/vhosts/40/146876/webspace/httpdocs/oceannnew/libraries/joomla/session/handler/joomla.php" at line 45.

Re: 3.5 upgrade error

Posted: Mon Apr 04, 2016 11:22 am
by nzampella
The fix is easy:

1. Enter your Joomla site's backend
2. Select from the admin menu: Extensions -> Manage -> Database
3. Click on the FIX button. You may find that some other updates need to be done to bring the database up to 3.5.
4. Head to Global Configuration, and turn the site 'off' before this next step to discourage any users for a while.
5. Then, as mentioned above, head to phpMyAdmin and delete all the entries in the xxxxx_sessions table.
6. Head to the backend and turn the site back on.

Re: 3.5 upgrade error

Posted: Tue Apr 26, 2016 3:49 pm
by opus2016
Same problem here which we traced to after upgrade to 3.5.0. Tried to repair database, deleted all sessions, verified session auto start was off, problem remains. Upgrade to 3.5.1 made no difference. Fixed the problem by commenting out the line that caused the warning, line 45 of /libraries/joomla/session/handler/joomla.php:

ini_set('session.use_trans_sid','0');

Re: 3.5 upgrade error

Posted: Thu Aug 04, 2016 3:25 am
by glen_sflm
I commented that line out and it didn't come back. Did I do something wrong here?
/* ini_set('session.use_trans_sid', '0'); */

Re: 3.5 upgrade error

Posted: Fri Sep 02, 2016 10:04 pm
by Josh Lewis
I received a similar error:

Warning: array_key_exists() expects parameter 2 to be array, null given in /home/xxxxxx/public_html/libraries/cms.php on line 59
Error displaying the error page: Application Instantiation Error: Failed to start the session because headers have already been sent by "/home/xxxxxx/public_html/libraries/cms.php" at line 59.

The issue I mention appears to be related to PHP 7.0.10. The issue vanished when I swapped to PHP 5.6.25. The problem for me is that I want to use PHP7. Can anyone else confirm this? Fixing DB tables as well as Joomla's DB fix tool did nothing for the problem.

Re: 3.5 upgrade error

Posted: Fri Sep 02, 2016 10:20 pm
by sozzled
FWIW, what does line 59 of ../libraries/cms.php say? There's probably a function call in that line, for which the second parameter is expected to be an array and, in your case, null was used instead.

Re: 3.5 upgrade error

Posted: Fri Sep 02, 2016 11:10 pm
by Josh Lewis
According to Michael Babker the server isn't setting up the $_SERVER variable correctly. Not sure if it's something on my end or SiteGround's. Will have to investigate this.

Re: 3.5 upgrade error

Posted: Wed Jul 19, 2017 11:49 am
by uaintgotthisid
I have the same issue. Repair/Optimise the table didn't work and I can't login to the back end.

Re: 3.5 upgrade error

Posted: Tue Aug 08, 2017 3:47 pm
by uaintgotthisid
It's happened again. I was just using my administration and I didn't to particularly much and now I have this error. I haven't installed anything, I'm struggling to think what I could have done to cause this.

Re: 3.5 upgrade error

Posted: Tue Aug 08, 2017 3:50 pm
by uaintgotthisid
Removing .htaccess fixed it for me! Must have just saved a new one via admin tools. I think it's because I added the rule:

Code: Select all

AddHandler application/x-httpd-php71 .php
Putting a # before it seems to have resolved the issue.

Siteground adds this

Code: Select all

AddHandler application/x-httpd-php71 .php .php5 .php4 .php3
If I use their PHP version manager. But adding this to the bottom of the .htaccess file via Admin Tools causes an issue still.

Re: 3.5 upgrade error

Posted: Tue Aug 08, 2017 4:25 pm
by Josh Lewis
uaintgotthisid wrote:Removing .htaccess fixed it for me! Must have just saved a new one via admin tools. I think it's because I added the rule:

Code: Select all

AddHandler application/x-httpd-php71 .php
But we want PHP7. Double the speed for page load is very important for many of us.

Re: 3.5 upgrade error

Posted: Wed Aug 09, 2017 4:45 am
by leolam
Josh, Do not add the handler by yourself. Follow this https://www.siteground.com/blog/php-7-1-available (bottom part)

Leo 8)

Re: 3.5 upgrade error

Posted: Wed Aug 09, 2017 9:38 am
by uaintgotthisid
Josh Lewis wrote:
uaintgotthisid wrote:Removing .htaccess fixed it for me! Must have just saved a new one via admin tools. I think it's because I added the rule:

Code: Select all

AddHandler application/x-httpd-php71 .php
But we want PHP7. Double the speed for page load is very important for many of us.
I agree. I found the issue was specifically with php7.1 for me (Siteground). I downgraded to 7.0.14 and it worked.

Here's the rule I used

Code: Select all

AddHandler application/x-httpd-php70 .php .php5 .php4 .php3
I added it to Admin Tools .htaccess maker in the part that is "Custom .htaccess rules at the bottom of the file".

Hope that helps.