- Posts: 17
COMMUNITY FORUM
Uncaught TypeError: Cannot call method 'getContent
- Tracey Hood
- Topic Author
- Offline
- New Member
Less
More
10 years 11 months ago #120319
by Tracey Hood
Uncaught TypeError: Cannot call method 'getContent was created by Tracey Hood
When i click save from the front end K2.js triggers the following error:
Uncaught TypeError: Cannot call method 'getContent' of undefined K2
And does not submit the article.
Thoughts?
Uncaught TypeError: Cannot call method 'getContent' of undefined K2
And does not submit the article.
Thoughts?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 10 months ago #120320
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Uncaught TypeError: Cannot call method 'getContent
Hello Keyon,
Which version of Joomla! and K2 are you using?
Are you using an override and have you tried with the default template?
Which version of Joomla! and K2 are you using?
Are you using an override and have you tried with the default template?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Tracey Hood
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
10 years 10 months ago #120321
by Tracey Hood
Replied by Tracey Hood on topic Re: Uncaught TypeError: Cannot call method 'getContent
I am using Joomla 3.2 and K2 2.6.7.
I am new to k2 so I am using everything from the default install.
When you mentioned default template are you talking about the default Joomla template.
I am new to k2 so I am using everything from the default install.
When you mentioned default template are you talking about the default Joomla template.
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 10 months ago #120322
by Yiota
Replied by Yiota on topic Re: Uncaught TypeError: Cannot call method 'getContent
By default template we mean the K2 default template. If you are using any overrides disable them in order to locate the issue.
Please Log in or Create an account to join the conversation.
- Tracey Hood
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
10 years 10 months ago #120323
by Tracey Hood
Replied by Tracey Hood on topic Re: Uncaught TypeError: Cannot call method 'getContent
Ok I am either a super noob at this or .... I am a super noob at this. Where would I check to see if any overrides are installed or what template I am using for K2? I know where to go for the Joomla template not the K2 one.
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 10 months ago #120324
by Yiota
Replied by Yiota on topic Re: Uncaught TypeError: Cannot call method 'getContent
You need to check under templates/your_template/html/com_k2/. If the folder exists in that path it means that you are using K2 template overrides. To Disable them just rename, by adding an _ (underscore) at the end of the folder name, the com_k2 folder.
That way you will force K2 to use the default template files through the component.
That way you will force K2 to use the default template files through the component.
Please Log in or Create an account to join the conversation.
- Tracey Hood
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
10 years 10 months ago #120325
by Tracey Hood
Replied by Tracey Hood on topic Re: Uncaught TypeError: Cannot call method 'getContent
Thanks. Now that I understand this, I can confirm I am using no overrides.
Please Log in or Create an account to join the conversation.
- Yiota
- Visitor
10 years 10 months ago #120326
by Yiota
Replied by Yiota on topic Re: Uncaught TypeError: Cannot call method 'getContent
Do you use any content plugins? If yes, please try to Disable them one by one and check again.
Please Log in or Create an account to join the conversation.
- Tracey Hood
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
10 years 10 months ago - 10 years 10 months ago #120327
by Tracey Hood
Replied by Tracey Hood on topic Re: Uncaught TypeError: Cannot call method 'getContent
No content plugins enabled. Other thoughts? Currently I am debating on uninstalling K2 and trying to re-install it to see if there is an issue with that.
Please Log in or Create an account to join the conversation.
- Tracey Hood
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
10 years 10 months ago #120328
by Tracey Hood
Replied by Tracey Hood on topic Re: Uncaught TypeError: Cannot call method 'getContent
So the uninstalling and reinstalling worked!
Please Log in or Create an account to join the conversation.