Error today
Permalink
Try to pull up one of my sites today, work fine yesterday, made no changes to anything and its showing this error today when you try to open the website:
An unexpected error occurred.
Non-static method Concrete\Package\CustomizeEditingInterface\Controller\SinglePage\Dashboard\System\Basics\CustomizeEditingInterface::getConfigSubKeyList() should not be called statically, assuming $this from incompatible context
An unexpected error occurred.
Non-static method Concrete\Package\CustomizeEditingInterface\Controller\SinglePage\Dashboard\System\Basics\CustomizeEditingInterface::getConfigSubKeyList() should not be called statically, assuming $this from incompatible context
Did your host update the version of PHP that is running on the server? That often times causes things like this.
Hi CArts,
The Customize Editing Interface add-on was using the getConfigSubKeyList() method statically, but the method definition was not using the "static" keyword. This would normally cause PHP to display an error, but concrete5 suppresses the E_STRICT PHP error reporting by default, so I am not sure why you are receiving it.
https://github.com/concrete5/concrete5/blob/e2b7a7cb29c55d697f21134f...
I updated the add-on last night to add the "static" keyword and add some additional v8 changes.
One approach to fixing the error is to see what is causing the change in PHP error reporting. Another approach is to access the add-on files directly and add the "static" keyword to getConfigSubKeyList().
To manually fix the error:
- on your server, through FTP or your web control panel, open the customize_editing_interface.php file
packages\customize_editing_interface\controllers\single_page\dashboard\system\basics\customize_editing_interface.php
- go to line 70 and change this line (adding the word "static" after the word "public")
from this:
to this:
The Customize Editing Interface add-on was using the getConfigSubKeyList() method statically, but the method definition was not using the "static" keyword. This would normally cause PHP to display an error, but concrete5 suppresses the E_STRICT PHP error reporting by default, so I am not sure why you are receiving it.
https://github.com/concrete5/concrete5/blob/e2b7a7cb29c55d697f21134f...
I updated the add-on last night to add the "static" keyword and add some additional v8 changes.
One approach to fixing the error is to see what is causing the change in PHP error reporting. Another approach is to access the add-on files directly and add the "static" keyword to getConfigSubKeyList().
To manually fix the error:
- on your server, through FTP or your web control panel, open the customize_editing_interface.php file
packages\customize_editing_interface\controllers\single_page\dashboard\system\basics\customize_editing_interface.php
- go to line 70 and change this line (adding the word "static" after the word "public")
from this:
public function getConfigSubKeyList()
to this:
public static function getConfigSubKeyList()