Keyword

calendar.setup error when editing/creating fronten

More
11 years 4 months ago #124621 by Koze
Hi I ve tried every possible solution I ve found on the net and k2 forum but I cant seem to solve it out
I have joomla 2.2.2 and latest k2 2.6.8 downloaded from the link for latest updates I ve found over a topic here. The problem is tested also in j2.2.1 and k2 2.6.7 . In frontend when an authorized user tries to create or edit an article the alert box comes on 3 times with the calendar.setup error ... chek your code the modal window of the article remains there but empty j query is loaded everything else works fine only I think that the calendar.js and calendar-setup.js are loaded before the jquery but if thats the case I dont know how to load them after.. The real weird thing is that at my wamp server not the live site the calendar-setup.js and calendar.js are not loaded at all and its working fine...
Please Help!

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

More
11 years 4 months ago #124622 by Koze
the calendar-setup.js , calendar.js is not the problem I ve managed to remove them from loading in the page but the problem is still there..

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 months ago #124623 by Yiota
So you mean you are still getting the error even though the javascript files seem to be loading ok?

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

More
11 years 3 months ago #124624 by Koze
Καλημέρα Ναι αυτό είναι το πρόβλημα μου και δεν μπορώ να καταλάβω τι φταίει το παλεύω ένα μήνα τώρα... βρήκα το plugin που φορτώνει τα calendar και το απέκλεισα έτσι δεν φορτώνονται αλλα το πρόβλημα παραμένει. όλα τα άλλα στο κ2 δουλεύουν άψογα. Υπάρχει περίπτωση να με βοηθήσεις?

Yes this is my problem and I cant understand what is causing it. I found the plugin that loads the calendar javascripts unpuplish it but the problem remains... everything else that is related to k2 is working fine

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 months ago #124625 by Yiota

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

More
11 years 3 months ago #124626 by Koze
libraries/joomla/html/html.php doesnt exist in my libraries folder
and I dont have any problem from backend why should I edit the file administrator/components/com_k2/views/item/view.html ?

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

More
11 years 3 months ago #124627 by Koze
also I cannot add comments after the update at an article.. Pressing the button nothing happens

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 months ago #124628 by Yiota
You can add in the url path ?template=system and check if the add comment works then.
If it does it means that the issue comes from your template.
By the way are you using K2 overrides? Have you tried to Disable them and see how both frontend editing form and comments work?

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

More
11 years 3 months ago #124629 by Koze
?template=system doesnt work it loads the system template everything appears correctly but the comment is not added just the wheel keeps on spinning, and the same problem with the calendar-setup remains. My template has a K2 css styling I disabled it and no its not working either..

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 months ago #124630 by Yiota
Is a link available to your page so I can take a look?

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

More
11 years 3 months ago #124631 by Koze
of course I will make a temp admin account so you can have all the access rights how can I give it you ?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 months ago #124632 by Yiota
You can sent it through the contact form: getk2.org/contact-us

Thank you.

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

More
11 years 3 months ago #124633 by Koze
ok I sent the details the link is www.kenaktools.gr/%CE%BD%CE%B5%CE%B1

thank you very much

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 months ago #124634 by Yiota
Is there somewhere I can see the frontend editing popup? Where can I add an item to check on the error?

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

  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 3 months ago #124635 by Yiota
OK. The issue is with your template. If you take a look under
www.kenaktools.gr/%CE%BD%CE%B5%CE%B1/item/add?tmpl=component&template=system you will see that the form comes with no issue at all.
The only js that your template is loading extra in the popup are the following:

browser-engines.js
maximenuckmobile.js
jfbconnect.js?v=520

try to disable each of them and check again to narrow down the problem.

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

More
11 years 3 months ago #124636 by Koze
Thanks a lot I ll try to find it and post what I ve found here but at the form you said the new article is not saved if you try to add a test article and press save it just transfers you to the start page...

again thanks a lot

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

More
11 years 3 months ago - 11 years 3 months ago #124637 by Koze
ok the comments problem cames from a plugin called memberhome which is a very usefull plugin to have multiple homepages for different user groups but its poorly written if somebody has the same problem then at plugins/system/memberhome/memberhome.php at the end

delete after $defaultMenu = $menu->getDefault();

and replace with

if(!$user->guest && ($activeMenu == $defaultMenu) && $app->getClientId() === 0 ) {

if(JRequest::getVar('option', '')=='com_k2')
{


}else{

$app->redirect(JRoute::_("index.php?Itemid=".$menuId,false));



}
}
return true;
}
}
?>

still struggling with edit article which is indeed my template problem....

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

More
11 years 3 months ago #124638 by Koze
also now that I corrected this part if I try to add an article from the link /item/add?tmpl=component&template=system I also get the msgbox 3 times but the article is saved...

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

More
11 years 3 months ago #124639 by Koze
and if I select for an editor none then the error doesnt appear but the k2 popup remains white I dont see any error nor the screen for editing or adding new item

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

More
11 years 3 months ago #124640 by Koze
and finally
maximenuckmobile.js checked not a problem

jfbconnect.js?v=520 checked not a problem

I have a rockettheme template based on gantry
when default gantry template is loaded then its ok with browser-engines.js loaded and everything works ok
but with my template on I have the problem so I assume its not javascript but I cannot find it the debug is not showing anything......

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


Powered by Kunena Forum