- Posts: 3
COMMUNITY FORUM
Uncaught TypeError on save
- ben hamlett
- Topic Author
- Offline
- New Member
Less
More
12 years 11 months ago #57005
by ben hamlett
Uncaught TypeError on save was created by ben hamlett
Heya all, I just installed the latest version of K2 on my joomla 1.5 fresh install & for some reason everytime I try to save anything in the backend admin area it just wont.
I checked firebug and see that the error is todo with k2.js
"Uncaught TypeError: Object #<Object> has no method 'submitbutton'"
Please, can anyone help me solve this error?
I checked firebug and see that the error is todo with k2.js
"Uncaught TypeError: Object #<Object> has no method 'submitbutton'"
Please, can anyone help me solve this error?
Please Log in or Create an account to join the conversation.
- ben hamlett
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
12 years 11 months ago #57006
by ben hamlett
Replied by ben hamlett on topic Re: Uncaught TypeError on save
I solved it,
I had to comment out lines 426 to 435 in k2.js
// If we are in Joomla! 1.5 define the functions for validation
/*if (typeof(Joomla) === 'undefined') {
var Joomla = {};
Joomla.submitbutton = function(pressbutton){
submitform(pressbutton);
}
function submitbutton(pressbutton) {
Joomla.submitbutton(pressbutton);
}
}*/
I had to comment out lines 426 to 435 in k2.js
// If we are in Joomla! 1.5 define the functions for validation
/*if (typeof(Joomla) === 'undefined') {
var Joomla = {};
Joomla.submitbutton = function(pressbutton){
submitform(pressbutton);
}
function submitbutton(pressbutton) {
Joomla.submitbutton(pressbutton);
}
}*/
Please Log in or Create an account to join the conversation.
- Lance Thompson
- Offline
- New Member
- Making the Web Work For You
12 years 6 months ago #57007
by Lance Thompson
Lance Thompson - Blue Sky Web Worx
Web Design, SEO, Graphic Design
www.BlueSkyWebWorx.com
Replied by Lance Thompson on topic Re: Uncaught TypeError on save
Hi Ben,
Where did you find the k2.js file? I found two but neither were more than 100 lines and didn't contain the code you mentioned.
Thanks!
Where did you find the k2.js file? I found two but neither were more than 100 lines and didn't contain the code you mentioned.
Thanks!
Lance Thompson - Blue Sky Web Worx
Web Design, SEO, Graphic Design
www.BlueSkyWebWorx.com
Please Log in or Create an account to join the conversation.
- Fiweh Yaad
- Offline
- New Member
Less
More
- Posts: 1
12 years 3 months ago #57008
by Fiweh Yaad
Replied by Fiweh Yaad on topic Re: Uncaught TypeError on save
Lance,
I had the same issue and I followed the instructions. The file is located at the following in version 2.5.7 :
joomla directory/media/k2/assets/js/k2.js
line 451
It worked for me, so good luck.
I had the same issue and I followed the instructions. The file is located at the following in version 2.5.7 :
joomla directory/media/k2/assets/js/k2.js
line 451
It worked for me, so good luck.
Please Log in or Create an account to join the conversation.
- Nolan Lawrence
- Offline
- New Member
Less
More
- Posts: 1
12 years 2 months ago #57009
by Nolan Lawrence
Replied by Nolan Lawrence on topic Re: Uncaught TypeError on save
Worked for me too, Thanks for the fix!!!!! :silly:
Please Log in or Create an account to join the conversation.