Update 3.2 Fatal error: Call to a member function getTag() o

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

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.
menonuo
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Nov 07, 2013 6:30 pm

Update 3.2 Fatal error: Call to a member function getTag() o

Post by menonuo » Thu Nov 07, 2013 6:39 pm

I've just updated Joomla 3.1 to 3.2
Everything seems to be ok till I visit the public web page. I get this fatal error:

Fatal error: Call to a member function getTag() on a non-object in /htdocs/public/vi/libraries/cms/application/site.php on line 436

I can login to the admin site without problems and all the content is there.
Probably I am not the the only one with this issue. Actually I've already read some post about a problem with the admin site but that's not my case.
The web site was a bilingual (italian and spanish), and I had personal templates (one on each language).
Probably I need to fix something in the db or some code but I don't have much idea where to begin from.
The code below is the line 436 in the site.php file that the error calls, i don't think it will help much but ...just in case.
Thank you

Code: Select all

		if ($this->_language_filter)
		{
436			$tag = $this->getLanguage()->getTag();
		}
		else
		{
			$tag = '';
		}

		if (!$templates = $cache->get('templates0' . $tag))
Thank you.

Evanion
Joomla! Intern
Joomla! Intern
Posts: 88
Joined: Mon Jun 11, 2007 1:33 pm
Location: Stockholm, Sweden
Contact:

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by Evanion » Thu Nov 07, 2013 9:12 pm

I can confirm this issue.

voxace
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Nov 07, 2013 6:39 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by voxace » Fri Nov 08, 2013 2:20 am

I am also having the same issue.

User avatar
qovvop
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Fri Nov 02, 2007 9:01 pm
Location: Sverige
Contact:

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by qovvop » Fri Nov 08, 2013 8:45 am

I have also this issue, I can get it away if I deactivate the "System - Language Filter" plugin.... But If I do the multilanguage function crash... I really hope it's a solution on this...
Manager för Webbhotellet Snowpeak.se och byrån Joomlahemsidor.se, en webb-byrå med inriktning på Joomla.
Sitter i styrelsen för Svenska Joomlaföreningen...

albertorp
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Nov 08, 2013 2:59 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by albertorp » Fri Nov 08, 2013 3:01 pm

I have the same problem
Please, need urgent help!

y_anniks
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Nov 09, 2013 10:06 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by y_anniks » Sat Nov 09, 2013 10:09 am

Are there any updates?
I have the same problem. :(

DavidBoggitt
Joomla! Guru
Joomla! Guru
Posts: 853
Joined: Wed Jan 09, 2008 9:16 pm
Contact:

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by DavidBoggitt » Sat Nov 09, 2013 1:00 pm

Same problem. Let's hope there's a 3.2.1 coming soon that addresses some of the issues raised. I suspect there are extension developers too that need to update some code to 3.2 compatibility.
My website: http://www.davidboggitt.com/
Love and hate both devastate you, but at least love takes you to dinner first.

virnoche
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Tue Dec 12, 2006 10:36 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by virnoche » Sat Nov 09, 2013 8:47 pm

Same here! This update brakes the website to an internal server 500 error. Disabling the language filter brings it back online but this isn't right......

DavidBoggitt
Joomla! Guru
Joomla! Guru
Posts: 853
Joined: Wed Jan 09, 2008 9:16 pm
Contact:

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by DavidBoggitt » Mon Nov 11, 2013 7:30 pm

Ok... I've solved this on my installation... I needed to update the extension 'Chameleon' to version 2-36

Dave
My website: http://www.davidboggitt.com/
Love and hate both devastate you, but at least love takes you to dinner first.

kentacoder
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Nov 15, 2010 5:03 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by kentacoder » Mon Nov 18, 2013 4:14 pm

Hi
We have investigated somewhat around the problem. Its related to running a site in multilanguage mode having the lang switcher active and having Helix plugin activated. We get the problem as reported earlier at line 436 in libraries/cms/application/site.php .
If you change line 436 to "$tag = '';" the helix template is working OK.
It is a temporary fix.
Some debugging needed to spot the real source of the problem.

Helix plugin activated is disturbing presentation even if you have another template like Beez active.
Running site with Beez and lang switcher ( 2 languages) and deactivating Helix plugin going fine.

For now I think the problem is more in Helix than Joomla 3.2.
Hope this helps to find a solution.

Kenneth
Actionwave

bobbus
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Nov 19, 2013 6:56 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by bobbus » Tue Nov 19, 2013 7:00 pm

The problem is not only with your HELIX plugin, I'm using Falang instead and I have the same issues.
This looks more like a bug in the core language switcher of J3.2.
I only get Internal Error 500 pages when hitting the browser navigation buttons, which is still something many users are doing on websites. So I'm hoping to get this fixed soon...

bobbus
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Nov 19, 2013 6:56 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by bobbus » Tue Nov 19, 2013 7:04 pm

And yes Kenneth, simply replacing the code to what you say solves my issue too...

User avatar
willows
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu May 03, 2007 9:00 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by willows » Tue Nov 19, 2013 7:56 pm

Hi

we have a fix for this here.

http://www.willows-consulting.com/Jooml ... a-3-2.html

This fixes the issue where the language plugin has an error when activated.

Hope this helps folks

regards
Sean
PHP web application development company Ireland http://www.willows-consulting.com

vianhtu
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu May 26, 2011 6:06 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by vianhtu » Thu Nov 28, 2013 9:07 am

replace "$tag = $this->getLanguage()->getTag();"
by $tag = JFactory::getLanguage()->getTag();
ok 100% working

ramadji
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Dec 30, 2011 4:12 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by ramadji » Wed Dec 04, 2013 1:09 am

vianhtu wrote:replace "$tag = $this->getLanguage()->getTag();"
by $tag = JFactory::getLanguage()->getTag();
Works great for me. Thanks Vianhtu! You rule!

Peter Sachs
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Dec 05, 2013 12:25 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by Peter Sachs » Thu Dec 05, 2013 12:29 am

vianhtu wrote:replace "$tag = $this->getLanguage()->getTag();"
by $tag = JFactory::getLanguage()->getTag();
2.5 years later, and still your fix did the job for me. Thank you!

tomonzo
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Nov 22, 2013 7:57 am
Location: Kaunas, Lithuania
Contact:

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by tomonzo » Fri Dec 06, 2013 8:46 am

vianhtu wrote:replace "$tag = $this->getLanguage()->getTag();"
by $tag = JFactory::getLanguage()->getTag();
ok 100% working
Yes, works 100% as promised. Thank you vianhtu!

User avatar
atomik
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Fri Oct 24, 2008 7:02 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by atomik » Fri Jul 11, 2014 12:05 am

vianhtu wrote:replace "$tag = $this->getLanguage()->getTag();"
by $tag = JFactory::getLanguage()->getTag();
ok 100% working
THANK YOU it works for 3.3.1 as well!

Sasa Banker
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Oct 15, 2011 12:33 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by Sasa Banker » Thu Aug 14, 2014 2:48 pm

Working like a charm :D

User avatar
atomik
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Fri Oct 24, 2008 7:02 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by atomik » Fri Oct 03, 2014 2:01 pm

I am surprised, that this bug is still present in new releases. I have to repair it over and over after any upgrade :'(

gulp
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Thu Nov 10, 2011 11:34 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by gulp » Tue Oct 07, 2014 2:28 pm

Found this error after the latest update and install of JoomSEF.
Just replacing
$tag = $this->getLanguage()->getTag();
is not enough,
I've replaced both the lines like:

Code: Select all

$lang_code = $this->getLanguage()->getTag();
with:

Code: Select all

$lang_code = JFactory::getLanguage()->getTag();
What should be the danger to a patch like this ?
I'm not aware of what should happens ...

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by sovainfo » Tue Oct 07, 2014 4:00 pm

Considering you are using a different getLanguage() method you might end up with the wrong tag.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

gulp
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Thu Nov 10, 2011 11:34 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by gulp » Tue Oct 07, 2014 4:25 pm

In fact it doesn't works fine !
I hope in a good update on the next official release !

User avatar
atomik
Joomla! Apprentice
Joomla! Apprentice
Posts: 49
Joined: Fri Oct 24, 2008 7:02 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by atomik » Tue Oct 07, 2014 7:22 pm

I've posted this question http://forum.joomla.org/viewtopic.php?f=728&t=860808 on bug reporting forum few days ago and still NO ANSWER.
Does it mean, that nobody cares?

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by sovainfo » Tue Oct 07, 2014 8:45 pm

@gulp Have you tested all scenario's? Doubt that very much, the fact you get the desired tag in one situation doesn't mean it works fine. You would need to research which tag is returned by both functions.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!

gulp
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Thu Nov 10, 2011 11:34 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by gulp » Thu Oct 29, 2015 11:50 am

Hello,
I'm still facing this issue on J3.4.5.
I've tested each of the suggestion but none of these are working!

gulp
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Thu Nov 10, 2011 11:34 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by gulp » Mon Nov 02, 2015 11:34 am

No way to solve this issue with the next release ?

mhoerner
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Feb 15, 2008 6:05 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by mhoerner » Wed Nov 04, 2015 2:10 pm

I was having the same issue and when I updated to 3.4.5, the fix mentioned above didn't work either. I noticed that I was only having this issue on sites that ran JoomSEF. I submitted a support ticket with them and got the following response that fixed the issue:

We know about this problem, it is caused by the "Auto update URLs" option being enabled in JoomSEF's Configuration on the Advanced page. Just disable the option and the problem should go away.
I'm sorry for the inconvenience.

gulp
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 190
Joined: Thu Nov 10, 2011 11:34 am

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by gulp » Wed Nov 04, 2015 5:14 pm

WWWWOOOOOOWWWWW GREAT !! 8) 8)
Thank you so much, you saved me :D
How long will still wait Artio JoomSEF to solve this issue ? :eek:

mhoerner
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Feb 15, 2008 6:05 pm

Re: Update 3.2 Fatal error: Call to a member function getTag

Post by mhoerner » Wed Nov 04, 2015 6:26 pm

Glad it worked for you as well! Not sure why I didn't think to go straight to JoomSEF first but since the patch worked, didn't think anything of it until it didn't work.

I asked that same question as to how long until a fix would be provided and got the following response
We plan to fix this function eventually, but it is quite complicated to make it work correctly with all the options, so we'll probably remove it temporarily in next version until we manage to fix it.
Sounds like it could be a couple updates away, especially since this issue has been reported for some time now.


Locked

Return to “Migrating and Upgrading to Joomla! 3.x”