Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

JomsQuery error

10 years 8 months ago
Licenses:
JomSocial Expired Socialize Expired

Hello,
Everytimes the page of the group is displayed, we've got the following error:
ReferenceError: jomsQuery is not defined, see the attached file.
Can be seen on our live site, login with user aude, password same as described for JSuppor. Groupe's name: Politique
Cheers,
L

Attachments:
10 years 8 months ago
Licenses:

Hi.

I checked source of your site and it seems that file:

ROOT/components/com_community/assets/joms.jquery-1.8.1.min.js

is not loaded. Please, check if file is present in your system.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 8 months ago
Licenses:
JomSocial Expired Socialize Expired

Hello,
file is present. See the screen shot attached.

Cheers,
L

Attachments:
10 years 8 months ago
Licenses:

Hi.

Ok, then please, update your first post and add FTP credentials. I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 8 months ago
Licenses:
JomSocial Expired Socialize Expired

ok, details updated

10 years 8 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

This issue not caused by jomsocial, this is caused by your own modification code I think, because by default we dont have "jomsQuery" we only have "joms.JQuery".

I just helped you by fixing the code.

thank you

10 years 8 months ago
Licenses:
JomSocial Expired Socialize Expired

Hi,
we are sorry, but we are not aware of any code modification in relation with JomSocial group feature, we are not enough aware about php code.
Now we still have an error with message:
TypeError: joms.JQuery is not a function
jax.call('community', 'groups,ajaxUpdateCount', 'discussion', 3 );

Instead of ReferenceError: jomsQuery is not defined

Is it in relation with:
www.jomsocial.com/forum/technical-issues...is-not-defined#66954

Cheers,
L

10 years 8 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Ah you right you right, you remind me to the past.. I will mark this issue as bug

10 years 8 months ago
Licenses:
JomSocial Expired Socialize Expired

No problem.
should we apply your recommendations from:
www.jomsocial.com/forum/technical-issues...is-not-defined#66954

10 years 8 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

yeah you can remove it from now..

10 years 8 months ago
Licenses:
JomSocial Expired Socialize Expired

just to be sure:
is it all this part, at the end ?:
<script>

// When people are viewing the 'discussion' page longer than 5 seconds,'
jomsQuery('#community-group-dicussion').parent().bind('onAfterShow', function() {
jax.call('community', 'groups,ajaxUpdateCount', 'discussion', <?php echo $group->id; ?> );
});

// When people are viewing the 'discussion' page longer than 5 seconds,'
jomsQuery('#community-group-news').parent().bind('onAfterShow', function() {
jax.call('community', 'groups,ajaxUpdateCount', 'bulletin', <?php echo $group->id; ?> );
});

// expand / collapse about section
jomsQuery(".btn-about").click(function () {
jomsQuery(".cFocus-definition").slideToggle();
});

// override config setting
joms || (joms = {});
joms.constants || (joms.constants = {});
joms.constants.conf || (joms.constants.conf = {});

joms.constants.groupid = <?php echo $group->id; ?>;
joms.constants.conf.enablephotos = <?php echo ( isset($showPhotos) && $showPhotos == 1 && (( $isAdmin && $photoPermission == 1 ) || ( $isMember && $photoPermission == 2 )) ) ? 1 : 0 ; ?>;
joms.constants.conf.enablevideos = <?php echo ( isset($showVideos) && $showVideos == 1 && (( $isAdmin && $videoPermission == 1 ) || ( $isMember && $videoPermission == 2 )) ) ? 1 : 0 ; ?>;
joms.constants.conf.enablevideosupload = <?php echo $config->get('enablevideosupload');?>;
joms.constants.conf.enableevents = <?php echo ( isset($showEvents) && $showEvents == 1 && (( $isAdmin && $eventPermission == 1 ) || ( $isMember && $eventPermission == 2 )) ) ? 1 : 0 ; ?>;

</script>

10 years 8 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

just delete only this code :

// When people are viewing the 'discussion' page longer than 5 seconds,'
jomsQuery('#community-group-dicussion').parent().bind('onAfterShow', function() {
jax.call('community', 'groups,ajaxUpdateCount', 'discussion', <?php echo $group->id; ?> );
});

// When people are viewing the 'discussion' page longer than 5 seconds,'
jomsQuery('#community-group-news').parent().bind('onAfterShow', function() {
jax.call('community', 'groups,ajaxUpdateCount', 'bulletin', <?php echo $group->id; ?> );
});

// expand / collapse about section
jomsQuery(".btn-about").click(function () {
jomsQuery(".cFocus-definition").slideToggle();
});

Im waiting the developer for proper fix.. but for time being you can delete that block code.

thx

10 years 8 months ago
Licenses:
JomSocial Expired Socialize Expired

OK.
Error is not displayed anymore.
Thank you,
L

10 years 8 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

you're welcome

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW