I am suddenly getting two php errors when I sign into EE 2.7.2. Is this a problem with EE or with my server? I have not changed anything or upgraded any thing.
A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /home/copingmag/www/www/cwc/ee_sys/codeigniter/system/core/Exceptions.php:170) Filename: core/Common.php Line Number: 408
and
A PHP Error was encountered Severity: 8192 Message: Non-static method Magpie::usage() should not be called statically, assuming $this from incompatible context Filename: plugins/pi.magpie.php Line Number: 28
I am just now working up the nerve to change a php file in EE - I am not a php programmer, but I made sure I had a good backup file.
I changed line 28 in pi.magpie.php to:
‘pi_usage’ => public static function usage()
and I got a parsing error, so I changed it to:
‘pi_usage’ => Magpie::public static function usage()
and I still got a parsing error. Since the line did not have quotes originally, I did not add quotes.
Sorry, but you will need to be very explicit on what the line should look like, including punctuation for me to be able to change the file successfully.
I do appreciate your help!
This is the response I got from my server support: I can update the htaccess, but what is the longer term solution if my company will not support upgrading to EE3.0? Am I the only one having this problem??
It seems that your web application is not compatible with PHP 5.6. Recently we upgraded PHP 5.5 to PHP 5.6. Also, a few months ago the default PHP interpreter on the server was switched from PHP 5.3 to PHP 5.5 (now PHP 5.6). PHP 5.3 is still available on the server. These changes have been announced in the News section of the hosting Control Panel (https://cp.server273.com). You can also subscribe to receiving the news by email.
You can test if your website will be working with PHP 5.3. To do this, add the following code to /home/copingmag/www/www/.htaccess:
AddHandler application/x-httpd-php53 .php
Please note that switching the website to PHP 5.3 is only a temporary solution as eventually we will drop support for it. We recommend that you update Expression Engine to the latest version at your earliest convenience.
It seems that your web application is not compatible with PHP 5.6.
You will have to upgrade your version of EE, to at least EE 2.9.3 if you want to run PHP 5.6. From the changelog:
Updated usage() method declarations in first-party plugins to be compatible with PHP 5.6.
This sounds like your problem right there.
We recommend that you update Expression Engine to the latest version at your earliest convenience.
I second that recommendation.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.