- Posts: 14
COMMUNITY FORUM
calendar.setup error when editing/creating fronten
- Koze
-
Topic Author
- Offline
- New Member
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.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
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
-
- Visitor
getk2.org/community/New-to-K2-Ask-here-first/180363-Calendarsetup-Nothing-to-setup-no-fields-foun#188592
Please Log in or Create an account to join the conversation.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
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.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
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.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
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.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
again thanks a lot
Please Log in or Create an account to join the conversation.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
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.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Koze
-
Topic Author
- Offline
- New Member
- Posts: 14
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.