?
avatar brunowego
brunowego
4 Nov 2012

Try use more languages in Joomla! 3.0 but I get this error with breadcrumbs module.

( ! ) Notice: Trying to get property of non-object in ..\modules\mod_breadcrumbs\helper.php on line 43

Thanks!

avatar brunobatista brunobatista - open - 4 Nov 2012
avatar javigomez
javigomez - comment - 4 Nov 2012

Hi Bruno

Can you add testing instructions so we could reproduce the issue?

  • what is your enviroment
  • what languages have you installed
  • what steps should we do in order to get that same error

Thanks for reporting. ^_^

avatar brunobatista
brunobatista - comment - 29 Dec 2012

Now I use Joomla! 3.0
Languages: Ingles and Portuguese.
Normal steps.

avatar brunobatista
brunobatista - comment - 29 Dec 2012
avatar brunobatista
brunobatista - comment - 29 Dec 2012

SOLVED

Need add to $app->getMenu()->getDefault() the current language.

$app->getMenu()->getDefault($lang->getTag())

avatar brunobatista brunobatista - close - 29 Dec 2012
avatar zero-24 zero-24 - close - 29 Dec 2012
avatar javigomez
javigomez - comment - 30 Dec 2012

Hi Bruno,

I haven't reproduced the error, it would be awesome if you could provide more details to reproduce it. You say "normal steps" but instead could you do it like:

  • install joomla,
  • install portuguese
  • do an english article
  • ...

If is a CMS bug it will be better if you could write all this explanation in the tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103

That will make sure that the Bug Squad takes cares for it and contribute to the core your solution. Thanks very much.

Your report is very important for the Joomla project. So if you prefer to write the text in portuguese because is easy for you, you can do it, and we can find someone to translate it to english.

avatar javigomez
javigomez - comment - 30 Dec 2012
avatar hao203
hao203 - comment - 14 Feb 2014

Help me, brunobatista
Using your code can't solve my problem! My problem was the same to yours.
When I change the code in line 43, the page display this:
( ! ) Notice: Undefined variable: lang in D:\web\wamp\www\Joomla\modules\mod_breadcrumbs\helper.php on line 43

avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?
Build staging

Add a Comment

Login with GitHub to post a comment