Keyword

Problem with Add Item Window in frontend

More
10 years 6 months ago #126391 by tex14
Hi

when I click (from K2 user module) the link to add item, it open a new window rather than a modal popup.
Create item and save works, but "close" button doesn't work.

In userblock.php, I tried to remove class=modal, but no result.
Il tried to change the Jquery library in K2 parameters, but no result.

My template is bleez3 from joomla 3.2.3, K2 2.6.8.

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

More
10 years 6 months ago #126392 by Lefteris
Replied by Lefteris on topic Re: Problem with Add Item Window in frontend
Hi. Probably there is a javascript error in your site causing all this. A link to your site would be very helpful.

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

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

More
10 years 6 months ago #126393 by tex14
template is Beez3.

I try this : creativeprogramming.it/en/articles/item/29
but it doesn't work for me.

I installed jQuery Easy plugin to test different settings and try to detect conflict but result is the same.

you can see urlz.fr/j9N and log with test/testtest
add item link is "Ajouter un nouvel élément"

help is welcome :-)

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

More
10 years 6 months ago #126394 by Lefteris
Replied by Lefteris on topic Re: Problem with Add Item Window in frontend
jQuery fails to load from ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js . This is causing several javascript errors. You first need to fix those errors so we can go further. Since you are under Joomla! 3 you don't need the jQuery easy plugin. Uninstall it. Joomla! 3 has jQuery built in and all extensions should load it from there as K2 does when it detects it's under Joomla! 3.

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

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

More
10 years 6 months ago #126395 by tex14
thanks.

I did some tests and watched javascript console.

in k2 parameters

1/ jquery library : don't load

if I go to "add an item" (no modal window opens)

Error: ReferenceError: jQuery is not defined
Fichier Source : xxxmedia/k2/assets/js/k2.noconflict.js

Error: ReferenceError: jQuery is not defined
Fichier Source : ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js

Error: TypeError: $K2 is not a function
Fichier Source :xxx/media/k2/assets/js/k2.js?v=2.6.8&sitepath=/xxx


2/
jquery library : load 1.8.2 local
no error but no modal window opens


3/
I set template protostar
modal window opens !
why ? something's wrong in Beez3 ?
modal class problem ? javascript's loading order ?

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

More
10 years 6 months ago #126396 by Lefteris
Replied by Lefteris on topic Re: Problem with Add Item Window in frontend
As i already told you for some reason jQuery is not loaded. Set K2 to load it and it will load the system jQuery for you.

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

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

More
10 years 6 months ago - 10 years 6 months ago #126397 by tex14
I set K2 to load the last jquery v.1.10.x remote in K2 parameters
but no better results.

and when i go to the page to display a K2 category items I have often an error :
"A script on this page may be busy or not responding"
Script : xxurlxxx/media/jui/js/jquery.js:4086

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

More
10 years 6 months ago #126398 by Lefteris
Replied by Lefteris on topic Re: Problem with Add Item Window in frontend
Now i saw that most of the errors is gone. There is only one left. You can see it in your browser console. It is coming from line 61 of file lchaille.o2switch.net/bonsplansducoin/templates/beez3/javascript/md_stylechanger.js. This is file of Beez template. That explains why the issue is template specific. You need to somehow fix this. I suggest create a new template based on Beez. Also note that Beez is a core template. Any changes you do there will get lost in future updates. Finally an other thing you need to look at is that your site is loading one extra instance of jQuery lchaille.o2switch.net/bonsplansducoin/components/com_comprofiler/js/jquery-1.5.2/jquery-1.5.2.js?v=2a4d30584331ea30. This seems to be loaded by the com_comprofiler. It should not load jQuery again it should use the system's jQuery. Ask com_comprofiler developers for help regarding this.

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

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

More
10 years 6 months ago #126399 by tex14
I deleted content function at line 61 of d_stylechanger.js. I dont need it. (font size).
I renamed the folder "jquery-1-5-2" in com_comprofiler so it cant load anymore.

And now modal opens !! no conflict.

thank you for your help!



The page "K2" (top menu) loads quickly. It's a list of k2 items from a category.
But when user is connected, the page takes long seconds to load, can freeze browser or display an popup error :
"a script on this page may be busy or not responding. You can stop the script now, or continue to see if the script will complete.
media/jui/js/jquery.js:538"

why ?

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

More
10 years 6 months ago #126400 by Lefteris
Replied by Lefteris on topic Re: Problem with Add Item Window in frontend
It seems that the extension that is causing this is named Payplans. Both the component and the system plugin generate a lot of database queries. Ask the developers of this extension for help. I am sure that i you disable this extension the page will load as fast as it does for guests.

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

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


Powered by Kunena Forum