Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Problem with CB activity and main template.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 3 months ago - 9 years 3 months ago #268582 by timstohr
Hey guys,

I am having a problem with the CB activity module. Whereever I publish it, the menu of my main template does not work anymore.

How can I get both to work?

Bye

Tim

PS: munich.international-friends.net/index.php/events
Last edit: 9 years 3 months ago by krileon.

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

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 3 months ago #268583 by timstohr
Replied by timstohr on topic Problem with CB activity and main template.
Sorry forgot to precise, the dropdown does not work on the pages where CB activity is... On the other ones, where the module is not displayed, it works...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #268620 by krileon
Replied by krileon on topic Problem with CB activity and main template.
Press F12 to open the developer console. Next click the Console tab and refresh the page. You'll notice the below error.

Code:
Uncaught TypeError: jQuery(...).mobileMenu is not a function

The jQuery plugin your menu is trying to use isn't loaded. No idea what any of that has to do with CB Activity though.

Looks like you're using some sort of optimizer or compression extension. Disable it, purge cache, and see if issue persists. CB Activity it self does not appear to be causing any sort of jQuery errors, but something called "rocketscript" is altering all your headers.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 3 months ago #268621 by timstohr
Replied by timstohr on topic Problem with CB activity and main template.
Hey Kyle,

It definitely is CB activity and only the newest version of CB activity.

Here is an exact copy with rocketscript disabled: testmunich.international-friends.net/index.php/events

Here is a not 100% copy of it with rocketscript enabled and the old CB activity (here it works): saigon.international-friends.net/index.php/events

And finally here is a the live and buzzing one that does not work: munich.international-friends.net/index.php/events

Another reason why it has to do with CB activity... The menu does not work on the homepage either when you login (CB activity only displayed to registered users there) as well as on the event page. All other pages it works.

MobileMenu is the mobile version and is not present (I have no idea why you get this error though).

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #268638 by krileon
Replied by krileon on topic Problem with CB activity and main template.
There are absolutely no fatal JS errors coming from CB Activity. CB Activity jQuery also appears entirely functional. Your page however has other things failing. See the below.

Here is an exact copy with rocketscript disabled: testmunich.international-friends.net/index.php/events

IN: /cometchat/cometchatjs.php
ON: Line 225
ERROR:
Code:
Uncaught TypeError: Cannot read property 'scrollBars' of undefined

And finally here is a the live and buzzing one that does not work: munich.international-friends.net/index.php/events

In addition to the above this page also has the below.

IN: inline-d5017a95e0.js
ON: Line 3
ERROR:
Code:
Uncaught TypeError: jQuery(...).mobileMenu is not a function

None of these are coming from CB Activity. Both of the above are also failing to load the below file.

/includes/js/joomla.javascript.js

Switch to default Joomla template and see if issue persists. Only way this could happen is a jQuery conflict due to the above usages not using either Joomla API or a proper namespaced loading behavior, which would fail on any CB page that loads jQuery and regardless of CB Activity version.

You also have a warning directly from rocket loader below.

IN: rocket.js
ON: Line 4
Code:
Modernizr 1.6ish: miniModernizr for Isotope detected. This version is known to cause issues with async JavaScript loaders. Please upgrade to at least 2.6: http://modernizr.com/

If headers are being forced to async load it will break load orders as well as none of those headers are designed for async behavior, which could also be the issue (CB Activity jQuery forced to async when it shouldn't).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: nant

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

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 3 months ago #268640 by timstohr
Replied by timstohr on topic Problem with CB activity and main template.
Found the reason. Thanks...

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

Moderators: beatnantkrileon
Powered by Kunena Forum