- Posts: 7
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Javascript errors when using Simple Image Gallery Plugin
Javascript errors when using Simple Image Gallery Plugin
- Jørgen Johanson
-
Topic Author
- Offline
- New Member
Less
More
15 years 7 months ago #73323
by Jørgen Johanson
Javascript errors when using Simple Image Gallery Plugin was created by Jørgen Johanson
Just installed Simple Image Gallery Plugin (Free) in my K2 installation (Joomla! version 1.5.14, K2 version is 2.1. The Simple Image Gallery Plugin (Free) version is 1.2.1k2, see also: k2community.joomlaworks.gr/forum/topics/k2-does-not-detect-simple ). When adding a gallery to an item I get Javascript errors and things go really bad in the backend (in Add/Edit Item all the tabs ("Image", "Image Gallery" etc.) stop working ):
Backend (Add/Edit Item):
IE8:
Message: '$tmp' is null or not an object
Line: 92
Char: 741
Code: 0
URI: www.jjohanson-test.com/media/system/js/mootools.js
Message: Object doesn't support this property or method
Line: 59
Char: 102
Code: 0
URI: www.jjohanson-test.com/media/system/js/mootools.js
Frontend (browsing item):
Message: Object expected
Line: 21
Char: 63
Code: 0
URI: www.jjohanson-test.com/media/system/js/mootools.js
Message: Object doesn't support this property or method
Line: 59
Char: 102
Code: 0
URI: www.jjohanson-test.com/media/system/js/mootools.js
I have noticed that Simple Image Gallery loads mootools.js, this means that mootols.js is avtually loaded twice (its also loaded by Joomla!)
Backend (Add/Edit Item):
IE8:
Message: '$tmp' is null or not an object
Line: 92
Char: 741
Code: 0
URI: www.jjohanson-test.com/media/system/js/mootools.js
Message: Object doesn't support this property or method
Line: 59
Char: 102
Code: 0
URI: www.jjohanson-test.com/media/system/js/mootools.js
Frontend (browsing item):
Message: Object expected
Line: 21
Char: 63
Code: 0
URI: www.jjohanson-test.com/media/system/js/mootools.js
Message: Object doesn't support this property or method
Line: 59
Char: 102
Code: 0
URI: www.jjohanson-test.com/media/system/js/mootools.js
I have noticed that Simple Image Gallery loads mootools.js, this means that mootols.js is avtually loaded twice (its also loaded by Joomla!)
Please Log in or Create an account to join the conversation.
- Valdis
-
- Offline
- Junior Member
Less
More
- Posts: 21
15 years 7 months ago #73324
by Valdis
Replied by Valdis on topic Javascript errors when using Simple Image Gallery Plugin
IMHO You are trying to do something with early version of SIG free hack which has more problems. Check this thread with couple of later (naming/version number for latest package is the same as in one You used; but content is fresher) temporary solutions for SIG free - k2community.joomlaworks.gr/forum/topics/simple-image-gallery-bug.
Regards,
Valdis
Regards,
Valdis
Please Log in or Create an account to join the conversation.
- Jørgen Johanson
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
15 years 7 months ago #73325
by Jørgen Johanson
Replied by Jørgen Johanson on topic Javascript errors when using Simple Image Gallery Plugin
Thanks! I tried the version you posted (plg_jw_sig-v.1.2.1r2k2_j1.5.zip), but no luck. I still got Javascript errors. I did a couple of hacks, and now it seems to work OK (both in the frontend and backend). I have attached the hacked version (still called plg_jw_sig-v.1.2.1r2k2_j1.5.zip).
The changes are:
- jw_sig.xml, line 9: 1.2.1r2k2 (changed version number, cosmetic)
- jw_sig.php, line 177: commented out (removed inclusion of mootools.js)
- jw_sig.php, line 333: commented out (removed inclusion of mootools.js)
Anyway, thanks again!
Valdis said:IMHO You are trying to do something with early version of SIG free hack which has more problems. Check this thread with couple of later (naming/version number for latest package is the same as in one You used; but content is fresher) temporary solutions for SIG free - k2community.joomlaworks.gr/forum/topics/simple-image-gallery....Regards,Valdis
The changes are:
- jw_sig.xml, line 9: 1.2.1r2k2 (changed version number, cosmetic)
- jw_sig.php, line 177: commented out (removed inclusion of mootools.js)
- jw_sig.php, line 333: commented out (removed inclusion of mootools.js)
Anyway, thanks again!
Valdis said:IMHO You are trying to do something with early version of SIG free hack which has more problems. Check this thread with couple of later (naming/version number for latest package is the same as in one You used; but content is fresher) temporary solutions for SIG free - k2community.joomlaworks.gr/forum/topics/simple-image-gallery....Regards,Valdis
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
15 years 7 months ago #73326
by Lefteris
Replied by Lefteris on topic Javascript errors when using Simple Image Gallery Plugin
Hi. The free version of SIG is not compatible yet with K2.
Please Log in or Create an account to join the conversation.
- Jørgen Johanson
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
15 years 7 months ago #73327
by Jørgen Johanson
Replied by Jørgen Johanson on topic Javascript errors when using Simple Image Gallery Plugin
Hello! Yes, that seems to be true. However, at the same time it is somewhat confusing that the "System Information" section under K2 "Information" has a line titled "Simple Image Gallery Plugin" (in addition to "Simple Image Gallery PRO Plugin") with values "Installed" and "Not installed". This seems to indicate that it might be possible to use the Simple Image Gallery Plugin ....
Lefteris Kavadas said:Hi. The free version of SIG is not compatible yet with K2.
Lefteris Kavadas said:Hi. The free version of SIG is not compatible yet with K2.
Please Log in or Create an account to join the conversation.
- Valdis
-
- Offline
- Junior Member
Less
More
- Posts: 21
15 years 7 months ago #73328
by Valdis
Replied by Valdis on topic Javascript errors when using Simple Image Gallery Plugin
Thx, Jorgen, tried with Your changes and it's working without problems for me as well; so, this one becomes latest working hack of SIG free 1.2.1 for k2 v.2 ;)
@Lefteris: We know. And while dealing in hacks we are still waiting for k2 compatible release of SIG free :D
Jørgen Johanson said:Thanks! I tried the version you posted (plg_jw_sig-v.1.2.1r2k2_j1.5.zip), but no luck. I still got Javascript errors. I did a couple of hacks, and now it seems to work OK (both in the frontend and backend). I have attached the hacked version (still called plg_jw_sig-v.1.2.1r2k2_j1.5.zip). The changes are:
- jw_sig.xml, line 9: 1.2.1r2k2 (changed version number, cosmetic)
- jw_sig.php, line 177: commented out (removed inclusion of mootools.js)
- jw_sig.php, line 333: commented out (removed inclusion of mootools.js)
Anyway, thanks again!
Valdis said:IMHO You are trying to do something with early version of SIG free hack which has more problems. Check this thread with couple of later (naming/version number for latest package is the same as in one You used; but content is fresher) temporary solutions for SIG free - k2community.joomlaworks.gr/forum/topics/simple-image-gallery....Regards,Valdis
@Lefteris: We know. And while dealing in hacks we are still waiting for k2 compatible release of SIG free :D
Jørgen Johanson said:Thanks! I tried the version you posted (plg_jw_sig-v.1.2.1r2k2_j1.5.zip), but no luck. I still got Javascript errors. I did a couple of hacks, and now it seems to work OK (both in the frontend and backend). I have attached the hacked version (still called plg_jw_sig-v.1.2.1r2k2_j1.5.zip). The changes are:
- jw_sig.xml, line 9: 1.2.1r2k2 (changed version number, cosmetic)
- jw_sig.php, line 177: commented out (removed inclusion of mootools.js)
- jw_sig.php, line 333: commented out (removed inclusion of mootools.js)
Anyway, thanks again!
Valdis said:IMHO You are trying to do something with early version of SIG free hack which has more problems. Check this thread with couple of later (naming/version number for latest package is the same as in one You used; but content is fresher) temporary solutions for SIG free - k2community.joomlaworks.gr/forum/topics/simple-image-gallery....Regards,Valdis
Please Log in or Create an account to join the conversation.
- Daniel Arnolf
-
- Offline
- New Member
Less
More
- Posts: 6
14 years 9 months ago #73329
by Daniel Arnolf
Replied by Daniel Arnolf on topic Javascript errors when using Simple Image Gallery Plugin
Perfect, works like a charm... thank you.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Javascript errors when using Simple Image Gallery Plugin