Support

Admin Tools

#27633 Error Code on upgrade of PHP from 5.6 to 7.0.18

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Sunday, 28 May 2017 17:17 CDT

Seaman
Warning: array_key_exists() expects parameter 2 to be array, null given in /home/csbsusa/public_html/wildfarm/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/csbsusa/public_html/wildfarm/libraries/cms.php" at line 59.

I have almost a dozen joomla sites. Most using Akeeba Admin Tools Pro, and I am using the HTAccess maker. After my upgrade to Joomla 3.7.0, I tested every site, no problem. I then went back to SiteGround and upgraded to PHP 7.0.18 and at least one site using HTAccess won't let me into the Joomla Admin with the error code above. The live site seems fine, although I haven't thoroughly tested it. I go back into SiteGround, revert back to PHP 5.6.30 and everything works again. Please advise.

https://wildfarmlands.org is the site throwing the backend error. I'll get you Admin credentials if you need it.

Cheers,

Ed

nicholas
Akeeba Staff
Manager
Please note that this issue is completely irrelevant to Admin Tools and the .htaccess Maker. As the error message tells you Joomla! itself cannot start a session because the core Joomla! file libraries/cms.php has experienced an error and caused something to be written to the browser. Since this happened before PHP could send a cookie to the browser it cannot start the session.

None of this is related to Admin Tools. In fact, I don't even think it's a bug in Joomla!. Tracking this down I see that the error means that the PHP superglobal array $_SERVER is not defined. I have not heard of a case of PHP running inside a web server where this array is not defined. I can't reproduce that on our SiteGround hosting either. Please contact SiteGround and ask them to take a look. I think this may be a hosting issue.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!