Uncaught TypeError

Status
Not open for further replies.

mattlamb

New Member
Hi

I have an error in my JS /media/com_fabrik/js/element.js:759 (with joomla debug on to turn off compression - same error exists with debug off but in the element-min.js)

Uncaught TypeError: Cannot read property 'getParent' of null

I think this is the cause of strange behaviour i am having, Ie google map element won't render map,
Radio button group not rendering as buttons at all just text which you can't click.
Yes/No element not rendering as buttons..
Date pickers not showing
etc.

I am running github code from yesterday. Using bootstrap_tabs for detail view.

Visible on my site (you have login + superadmin)
/venue-list/details/1/1
and to see the button errrors
/venue-list/form/1/1-qbe-stadium
 
ok so i have made a copy of the menu item to load the same list in protostar template.
/venue-list-proto/details/1/1
/venue-list-proto/form/1/1-qbe-stadium

The JS error still exists.
However it seems to have fixed the button groups rendering, but not the other issues - maps, date pickers etc.

thanks,
Matt
 
Hmmm, for some reason your tab A tags have full URL's, rathert than just #group-tabX

Try this ... change line 758 to this ...

Code:
document.getElement('a[href$=#' + tab_div.id + ']');

... so it'll match href's ending in that pattern, rather than equal to it.

I'm hoping the other issues should clear up once we get rid of that error.

-- hugh
 
I added the $ to line 758, and yes, that seems to have solved everything.

Thanks!
Will that get updated in the github?
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top