Our Joomla(using 3.9.19 Stable ) and Plugins are updated however our theme is very old. Shape5 Prestige Academy Theme works in PHP 7.0.33 however it breaks in PHP Versions 7.1.x, 7.2.x, 7.3.x, 7.4.x.
The error is “0 - Using $this when not in object context”. I found many threads about this issue and the common fix is:
JSite::getMenu()
in your template's file and replace it with
JFactory::getApplication()->getMenu()
I found 2 instances of this in our theme and updated it but it didn’t fix the issue. I restored the original code.
can you please check once and let me know your suggetions
Thanks
Mahesh