Fatal error: Using $this when not in object context in

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.
Post Reply
zis
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Jul 26, 2011 12:00 pm

Fatal error: Using $this when not in object context in

Post by zis » Tue Mar 29, 2016 3:51 pm

Hello,

I just updated to joomla 3.5.0 and get :


Fatal error: Using $this when not in object context in G:\IntranetNIEUW\htdocs\INTRANET\joomla\libraries\joomla\filter\input.php on line 233



230 public function clean($source, $type = 'string')
231 {
232 // Strip Unicode Supplementary Characters when requested to do so
233 if ($this->stripUSC)
234 {

Please help,

Thx

mbabker
Joomla! Hero
Joomla! Hero
Posts: 2176
Joined: Sun Feb 28, 2010 8:26 pm

Re: Fatal error: Using $this when not in object context in

Post by mbabker » Tue Mar 29, 2016 3:55 pm

It means you are using a version of an extension not compatible with Joomla 3.5. ARI Image Slider was the common culprit for people having this issue, they have a new version which is 3.5 compatible I'd suggest installing if you have that.
So long and thanks for all the fish.

Manually updating Joomla? See https://gist.github.com/mbabker/d7bfb4e ... 3607f89281

NathanRdrz
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Thu Feb 05, 2015 12:19 am
Location: Brazil
Contact:

Re: Fatal error: Using $this when not in object context in

Post by NathanRdrz » Tue Mar 29, 2016 4:20 pm

From an OOP point of view the message is suggesting a try to reference a self object outside any object, probably deprecated code.
Ubuntu Linux user and Java coder.
Mario Blog (Portuguese): Jogos do Mario Bros.

zis
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Jul 26, 2011 12:00 pm

Re: Fatal error: Using $this when not in object context in

Post by zis » Tue Mar 29, 2016 4:27 pm

Thx mbabker

Update ARI Image slider and it works again !!

THX
zis

User avatar
railer
Joomla! Explorer
Joomla! Explorer
Posts: 273
Joined: Mon Feb 27, 2006 7:52 pm

Re: Fatal error: Using $this when not in object context in

Post by railer » Mon May 23, 2016 5:30 pm

Thanks for this information! I had the same redirect issue on a slave site in a Joomla Multisite installation recently upgraded to Joomla! 3.5.1. Upgrading to the latest version of ARI Easy Slider 1.7.10 solved the problem.

:)

User avatar
geoffmack
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Tue Oct 20, 2009 8:06 pm
Location: San Francisco, CA
Contact:

Re: Fatal error: Using $this when not in object context in

Post by geoffmack » Fri Jan 27, 2017 10:29 pm

FYI, this is the same error I received when our host (Media Temple) auto-upgraded us to php V-7. I rolled the PHP version back to V-5 something and the site works now.
Geoff Mack
Joomla Website Developer
http://www.gystmedia.com

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24727
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Fatal error: Using $this when not in object context in

Post by Per Yngve Berg » Sat Jan 28, 2017 1:35 pm

You have an extension that is not compatible with php7. Did they update to 7.0 or 7.1?

User avatar
geoffmack
Joomla! Intern
Joomla! Intern
Posts: 93
Joined: Tue Oct 20, 2009 8:06 pm
Location: San Francisco, CA
Contact:

Re: Fatal error: Using $this when not in object context in

Post by geoffmack » Sat Jan 28, 2017 4:49 pm

They updated to 7.0.6. I rolled back to 5.3.29 to get the site working again.
Geoff Mack
Joomla Website Developer
http://www.gystmedia.com

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24727
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Fatal error: Using $this when not in object context in

Post by Per Yngve Berg » Sat Jan 28, 2017 5:12 pm

5.3.29 is very outdated. It should at least work with 5.6

sc00byd00
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Mar 20, 2017 5:40 am

Re: Fatal error: Using $this when not in object context in

Post by sc00byd00 » Mon Mar 20, 2017 5:42 am

Thank you so much for this fix, I had the white page of death after updating as well and you saved my bacon! I joined just to say thank you :)


Post Reply

Return to “Installation Joomla! 3.x”