Support Forum

  • Page:
  • 1

jTweet & fatal JS error?

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi

Have run into a problem on my Community Builder Member list page that might(?) be related to jTweet. Here's the page:
artdollsonly.com/index.php?option=com_comprofiler&task=userslist&Itemid=30

There should be a link to "Search Users" with the text at the top in about the middle of the page, but it's not working. (This becomes "List all" in search mode.) I asked over at the CB forum, and this was the response:

--
It's at the top of your page and displaying properly, but the JS isn't working because you've a Fatal JS error on your site.
Code:
Uncaught TypeError: Object #<an Object> has no method 'tweet'

No idea what it's coming from, sorry.
--

I'm thinking this perhaps has something to do with jTweet?

I'm not familiar with JS and am pretty elementary with changing any code, but am willing to try!

Many thanks,
Melody
  • AllegroMelody's Avatar
  • AllegroMelody
  • 12 Month Developer
  • 534 posts
  • 1 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hi Melody,

The issue is caused by the Community Builder loading the jQuery Library:

artdollsonly.com/components/com_comprofiler/js/jquery-1.4.2/jquery-1.4.2.min.js

jQuery has an issue if there is more than one version of the library on the page and thats the reason why we created the JB LIbrary plugin. You can use that to strip out the reference if you have the latest version of the plugin. Just by setting the use unique jQuery to yes should fix this issue.

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Thanks, Anthony.

Please forgive my ignorance - I can't figure this out (I have tried!)

I went to the JB Library plugin, which I installed last month with the Avanti template when I started building the site. Looks like v1.1.1 is what I installed, and there is 1.1.2 now available. I tried installing that (should it just replace the old one when I install - I don't know that it did?) but don't see a difference in the plugin parameters, and don't see anything that gives me a "unique JQuery" option. Am I looking in the correct place? Should I be somewhere else?

Many thanks,
Melody
  • AllegroMelody's Avatar
  • AllegroMelody
  • 12 Month Developer
  • 534 posts
  • 1 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hi Melody,

If you dont see that option then it sounds like it didnt install. Just to be sure you can try uninstalling the JB Library plugin and then downloading the latest from the download area and then reinstalling again. That will definitely do it.

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Thank you.

Okay, figured out how to uninstall the plugin, and installed the newest version, just downloaded.

Changed "Enable Unique jQuery" to Yes.

Link still doesn't work. Also tried "Strip other scripts" - no difference.

I would be okay with deleting the "Search Users" link if I could figure out how to do that!
  • AllegroMelody's Avatar
  • AllegroMelody
  • 12 Month Developer
  • 534 posts
  • 1 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hey Melody,

The link problem might not be related to the js error. There is only one jQuery loading on the site now and no errors as far as I can see. Are you stripping any other scripts that CB needs? It looks like the links depends on certain js scripts to work but nothing that is loading on the page will do it.
Let me know.

Cheers,
Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Hi Jason

Once again, please forgive my ignorance, but I don't know how to "strip scripts" (other than clicking on "yes" in the jQuery Library Settings).

thanks,
Melody
  • AllegroMelody's Avatar
  • AllegroMelody
  • 12 Month Developer
  • 534 posts
  • 1 Thanks
  • Karma: 2
Last Edit: 13 years 9 months ago by AllegroMelody.
The administrator has disabled public write access.
Hey Melody,

Sorry, should have been more clear. Are there any custom scripts specified in the box below it?
You can turn that setting to strip custom scripts off. Unique jQuery should be sufficient for you.
Try that and let me know. I'm not confident that it will fix it but atleast we'll know what the playground looks like.

Cheers,
Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
"Strip other scripts" is set to No and there have not been any script names in the field. (I've tried it both "yes" and "no" with no difference).

thanks!
  • AllegroMelody's Avatar
  • AllegroMelody
  • 12 Month Developer
  • 534 posts
  • 1 Thanks
  • Karma: 2
The administrator has disabled public write access.
Hey Melody,

The problem is actually just in the css. The button is sitting behind the Title there.

You can fix it by adding a css rule to your file
/templates/zen_avanti/css/theme.css

div.cbUserListTitle {
width:47%;
}

That should get it working again.

Cheers,
Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Ahhhh - it works now!

I have to learn more about CSS. That's next on my list.

Many, many thanks!!!!

Melody
  • AllegroMelody's Avatar
  • AllegroMelody
  • 12 Month Developer
  • 534 posts
  • 1 Thanks
  • Karma: 2
The administrator has disabled public write access.
Thanks Melody - glad we finally got to the bottom of it.

Give us a shout if you need any more help.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I too am having the same issue and although the CSS fix did get my search button working I am still getting the errors and double loading of java scrpits.. I do not have it online for you to see.. sorry, I am working on my local server. Its loading 1.3.2 and 1.4.2 .. If I disable the plugin Community builder gets no errors but then the front page slide show on the foliolife template does not work and gets the error, if I activate the plug-in the slide show works but community builder errors.. any help would be great.
  • LDJones's Avatar
  • LDJones
  • Previous Member
  • 13 posts
  • Karma: 1
The administrator has disabled public write access.
NEVER MIND.. unistalled and reinstalled the plug-in.. all is great now.
  • LDJones's Avatar
  • LDJones
  • Previous Member
  • 13 posts
  • Karma: 1
The administrator has disabled public write access.
B) Thanks for letting us know
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers