website Fatal: Access to undeclared static property $legacy in framework.php

23 views
Skip to first unread message

Laura Vanags

unread,
Aug 31, 2017, 12:41:41 AM8/31/17
to Joomla! General Development
website down. Error is
Fatal: Access to undeclared static property
JError::$legacy in framework.php on line 42

line 42 says JError::$legacy = true;
line 43 says JError::setErrorHandling(E_Notice, 'message');

tried commenting out line 42 - didn't work
tried adding var $legacy to configuration.php - didn't work
Restore from backup didn't fix it.

Any suggestions are appreciated!!!
thank you, Laura

Glenn Arkell

unread,
Aug 31, 2017, 1:07:25 AM8/31/17
to Joomla! General Development
Hi Laura,
What version of Joomla are you using?  And what did you do just before you got this message?  Cheers.
Glenn

Niels Braczek

unread,
Aug 31, 2017, 7:19:28 AM8/31/17
to joomla-de...@googlegroups.com
Am 31.08.2017 um 02:13 schrieb Laura Vanags:

> website down. Error is
> Fatal: Access to undeclared static property
> JError::$legacy in framework.php on line 42

Your Joomla version is outdated. Current Joomla does not have that piece
of code. So best solution is to update.

> tried commenting out line 42 - didn't work
> tried adding var $legacy to configuration.php - didn't work
> Restore from backup didn't fix it.

As a workaround, find the file containing the JError class.

Add

public static $legacy = false;

in a line of its own right after the opening bracket of the class.

Regards,
Niels

--
| New Stars on the Horizon: GreenCape · nibralab · laJoom |
| http://www.bsds.de · BSDS Braczek Software- und DatenSysteme |
| Webdesign · Webhosting · e-Commerce · Joomla! Content Management |
------------------------------------------------------------------

Niels Braczek

unread,
Aug 31, 2017, 7:56:56 AM8/31/17
to joomla-de...@googlegroups.com
Am 31.08.2017 um 13:19 schrieb Niels Braczek:

> As a workaround, find the file containing the JError class.

However, that does not remove the cause of your problem.
Reply all
Reply to author
Forward
0 new messages