×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Falang error

Falang error 8 years 2 months ago #34971

  • Kai Roen
  • Kai Roen's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I am using FaLang and Hotspots, but when I add more languages, the menuitem will not work.
I get an error in Joomla frontend: Call to a member function getChildren() on null

Noticed that the field "Required Setting" in translation does not work. I am not sure if this is related to FaLang or HotSpots.

Falang error 8 years 2 months ago #34972

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Kai,
I believe that this is more a FaLang issue. We use getChildren to get the array with our categories. Here is the code:
$cats = JCategories::getInstance('Hotspots')->get()->getChildren(true);

This is the defualt joomla "way" to deal with categories. My guess is that FaLang has some added code to go around the langauge issues. Can you contact them and let them know of the issue. Let me know what they say. (Also give them a link to this thread. If they want they can contact me for assistance)

Regards,
Daniel

Falang error 8 years 2 months ago #35007

  • Kai Roen
  • Kai Roen's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
But what about this issue, posted by you?
github.com/joomla/joomla-cms/pull/6440

Falang error 8 years 2 months ago #35008

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Kai,
In my code I have this:
		// Hack around joomla bug: https://github.com/joomla/joomla-cms/pull/6440
		$categories = JCategories::getInstance('Hotspots', array('blabla'))->get()->getChildren(true);

The hack is there since I reported the issue on github. There is a bug in joomla, but on a normal installation without falang, we shouldn't be hitting this error.
  • Page:
  • 1
Time to create page: 0.138 seconds