0 - Using $this when not in object context Topic is solved

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
buisantisouk
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Aug 22, 2022 8:08 am

0 - Using $this when not in object context

Post by buisantisouk » Mon Aug 22, 2022 8:25 am

Hi Forum and Experts,

I am new to joomla.
When I restored my site on Xampp, it gave me errors:

Call stack
# Function Location
1 () JROOT\libraries\src\Application\CMSApplication.php:370
2 Joomla\CMS\Application\CMSApplication::getMenu() JROOT\libraries\src\Application\SiteApplication.php:275
3 Joomla\CMS\Application\SiteApplication::getMenu() JROOT\modules\mod_flexheader3\mod_flexheader3.php:95
4 include() JROOT\libraries\src\Helper\ModuleHelper.php:200
5 Joomla\CMS\Helper\ModuleHelper::renderModule() JROOT\libraries\src\Document\Renderer\Html\ModuleRenderer.php:98
6 Joomla\CMS\Document\Renderer\Html\ModuleRenderer->render() JROOT\libraries\src\Document\Renderer\Html\ModulesRenderer.php:47
7 Joomla\CMS\Document\Renderer\Html\ModulesRenderer->render() JROOT\libraries\src\Document\HtmlDocument.php:501
8 Joomla\CMS\Document\HtmlDocument->getBuffer() JROOT\libraries\src\Document\HtmlDocument.php:793
9 Joomla\CMS\Document\HtmlDocument->_renderTemplate() JROOT\libraries\src\Document\HtmlDocument.php:567
10 Joomla\CMS\Document\HtmlDocument->render() JROOT\libraries\src\Application\CMSApplication.php:1044
11 Joomla\CMS\Application\CMSApplication->render() JROOT\libraries\src\Application\SiteApplication.php:779
12 Joomla\CMS\Application\SiteApplication->render() JROOT\libraries\src\Application\CMSApplication.php:202
13 Joomla\CMS\Application\CMSApplication->execute() JROOT\index.php:49

NOTE: I have looked through this topic viewtopic.php?t=967125
It was similar to mine but I'm not sure where to fix it.

Please help
Thank you

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17439
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: 0 - Using $this when not in object context

Post by toivo » Mon Aug 22, 2022 8:58 am

Welcome to the Joomla forum!

Is the Flexheader3 module uptodate? The latest version is 2.4.2.

If you downloaded and installed XAMPP recently, which version of PHP did you select? Was it a later than the version of PHP in your remote live server?
Toivo Talikka, Global Moderator

buisantisouk
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Aug 22, 2022 8:08 am

Re: 0 - Using $this when not in object context

Post by buisantisouk » Mon Aug 22, 2022 10:33 am

toivo wrote:
Mon Aug 22, 2022 8:58 am
Welcome to the Joomla forum!

Is the Flexheader3 module uptodate? The latest version is 2.4.2.

If you downloaded and installed XAMPP recently, which version of PHP did you select? Was it a later than the version of PHP in your remote live server?
toivo wrote:
Mon Aug 22, 2022 8:58 am
Welcome to the Joomla forum!

Is the Flexheader3 module uptodate? The latest version is 2.4.2.

If you downloaded and installed XAMPP recently, which version of PHP did you select? Was it a later than the version of PHP in your remote live server?
Ohh thank you for your response.

My PHP version is 7.4.25.

I think the live version of my site is 6.5 but the local one is 7.4.
So, this maybe the cause of error.

But now it works after I update Flexheader to 2.4.2.

Thank you very much Toivo.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17439
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: 0 - Using $this when not in object context

Post by toivo » Mon Aug 22, 2022 10:51 am

Cheers, good to hear!
Toivo Talikka, Global Moderator


Locked

Return to “Installation Joomla! 3.x”