Keyword

[SOLVED] Re: K2 front-end save and close

  • Kelly Turner
  • Kelly Turner's Avatar Topic Author
  • Offline
  • New Member
More
12 years 10 months ago #66498 by Kelly Turner
[SOLVED] Re: K2 front-end save and close was created by Kelly Turner
Hi, I think I'm having the same trouble and I was wondering if you had ever found a solution for this. On my site, the "Save" button on the front end saves the edits but doesn't close the lightbox window. To actually see the changes, I have to click the "X" and then refresh the browser. The "Close" button brings up the actual webpage inside the lightbox window, which is really weird.

I have Joomla 2.5.4 and K2 version 2.5.7.

Thanks

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #66499 by Katharina
Replied by Katharina on topic Re: K2 front-end save and close
I'm not sure about it but you should check which PHP version is used. For the best results with a lot of newer extensions this should be at least PHP 5.3.

Please Log in or Create an account to join the conversation.

  • Kelly Turner
  • Kelly Turner's Avatar Topic Author
  • Offline
  • New Member
More
12 years 10 months ago #66500 by Kelly Turner
Replied by Kelly Turner on topic Re: K2 front-end save and close
I'm running PHP 5.2.11, but I'm on a shared host and can't upgrade...at least for now.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #66501 by Katharina
Replied by Katharina on topic Re: K2 front-end save and close
I had a lot of trouble because the PHP version was too low. But I'm not sure if this will solve your problems. If you use a backup solution like Akeeba Backup you can quick back up your site and unpack it on a different site with a higher PHP version. So you can find out if it's a K2 or PHP problem.

For testing I use this hoster: x10hosting.com/register. Not the perfect solution for a productive site but really great for testing. It's free with a lot of features. PHP version now is 5.3.8.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #66502 by hyp3rkyd
Replied by hyp3rkyd on topic Re: K2 front-end save and close

Kelly wrote: Hi, I think I'm having the same trouble and I was wondering if you had ever found a solution for this. On my site, the "Save" button on the front end saves the edits but doesn't close the lightbox window. To actually see the changes, I have to click the "X" and then refresh the browser. The "Close" button brings up the actual webpage inside the lightbox window, which is really weird.

I have Joomla 2.5.4 and K2 version 2.5.7.

Thanks


same problem here... with different php versions, in shared and local MAMP installations. The Save button does nothing.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #66503 by Geno Peppino
Replied by Geno Peppino on topic Re: K2 front-end save and close
Same here...

J! - 2.5.6
k2 - 2.5.7
PHP 5.3.14

Template Framework is Gavern.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #66504 by Lefteris
Replied by Lefteris on topic Re: K2 front-end save and close
Hi. Anyone having issues with save buttons please check your pages for javascript errors.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #66505 by Geno Peppino
Replied by Geno Peppino on topic Re: K2 front-end save and close
jQuery is Not Defined which leads to...

k2.js ->
var $K2 = jQuery.noConflict();

I don't know what any of that means though.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #66506 by Geno Peppino
Replied by Geno Peppino on topic Re: K2 front-end save and close
Also, here's this:

Uncaught ReferenceError: jQuery is not defined k2.js:9
Uncaught TypeError: Cannot call method 'create' of undefined chrome-extension://aonjhmdcgbgikgjapjckfkefpphjpgma/measureIt.js:120
2
Unsafe JavaScript attempt to access frame with URL http://.../index.php/login# from frame with URL http://.../index.php/login#. Domains, protocols and ports must match.
chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/contentscript.js:126
initPlugin chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/contentscript.js:126
(anonymous function) chrome-extension://lifbcibllhkdhoafpjfnlhfpfgnpldfl/contentscript.js:116
Uncaught TypeError: Property '$K2' of object [object Window] is not a function k2.js:403

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #66507 by Geno Peppino
Replied by Geno Peppino on topic Re: K2 front-end save and close
This will maybe narrow it down.
Attachments:

Please Log in or Create an account to join the conversation.

More
More
12 years 9 months ago #66509 by Lefteris
Replied by Lefteris on topic Re: K2 front-end save and close
K2 has an option for loading jQuery. If you disable that option and want to load jQuery yourself then ensure that it gets loaded before K2 javascript files.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #66510 by Geno Peppino
Replied by Geno Peppino on topic Re: K2 front-end save and close

Lefteris Kavadas wrote: K2 has an option for loading jQuery. If you disable that option and want to load jQuery yourself then ensure that it gets loaded before K2 javascript files.


I'm sorry, I should have mentioned that I already tried that.

If I simply turn it off in the parameters, it won't have any effect at all.

I've also tried running Easy jQuery Plugin, with virtually every combination, but that's been fruitless.

I use K2 Flawlessly on every website, all with the same template framework, and the same extensions. So I can't figure this out.

Thankfully I'm not alone. There's five of us who have taken the time to express their troubles. But I definitely need specialized assistance, because I've done all I know to do.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #66511 by Lefteris
Replied by Lefteris on topic Re: K2 front-end save and close
To get it more clear.... Check the page source to see if jQuery is loaded. If it is, make sure that k2.js is loaded after jQuery. If jQuery is not loaded you need to load it either by K2 settings or in your template. Also ensure that jQuery is not loaded more than one time.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #66512 by Geno Peppino
Replied by Geno Peppino on topic Re: K2 front-end save and close
Lefteris, I could kiss you. I checked the source code, and it was sticking out like a sore thumb.

GCalendar! I removed it, and K2 started working.

Now, I do use GCal on all my sites, so why this one has a conflict is beyond me. And why Easy JQuery didn't work is beyond me.

I'll keep messing with it.

Anyone else have GCalendar?

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #66513 by Geno Peppino
Replied by Geno Peppino on topic Re: K2 front-end save and close
If you're using GCAL, go to your gcalendar system plugin, and set JQuery to GCal "ONLY"!

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #66514 by Peter
Replied by Peter on topic Re: K2 front-end save and close

Geno Peppino wrote: If you're using GCAL, go to your gcalendar system plugin, and set JQuery to GCal "ONLY"!



I wish I had found this post a few days ago. It would have saved me a ton of headaches. Thank you for this solution!!!

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #66515 by Courtland Brower
Replied by Courtland Brower on topic Re: K2 front-end save and close
I have tried this with disabling K2's JQuery and adding it right under my mootools in behavior.php with this line...
function jquery() { JHTML::script('jquery.js','media/system/js/',false);}
and when I check my page for errors I only get one that is not related to jQuery
I am running Joomla 2.5.6 and K2 2.5.7
No matter what we do the save button will not close the box, did anyone ever get this fixed?

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #66516 by Courtland Brower
Replied by Courtland Brower on topic Re: K2 front-end save and close
I was able to get the window to close with "window.parent.location.reload();" but tho only problem with this is it doesn't wait for pictures to be uploaded before refreshing, desperate for an answer here. Really dont want to rebuild this site.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #66517 by marianafrade
Replied by marianafrade on topic Re: K2 front-end save and close
HELLO EVERYBODY,

i m having the same problem.
desperate help needed

var elements = [parent.$K2('#sbox-btn-close'), $K2('#toolbar-cancel a')];
Uncaught TypeError: Property '$K2' of object [object Window] is not a function
$K2.each(elements, function(index, element){

thank you

M.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum