CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Dashlets wont load - Java script error
Pages: [1]

Author Topic: Dashlets wont load - Java script error  (Read 1253 times)

bighudsonnut

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 2
    • Hudson Essex Terraplane Club site
  • CiviCRM version: 4.6.3
  • CMS version: Joomla 3.4.1
  • MySQL version: 5.5.42
  • PHP version: 5.5.23
Dashlets wont load - Java script error
March 30, 2013, 08:47:44 am
I have had this problem for a while.  I just don't load any dashlets and I have been fine.  I have been trying to research this issue on my own and just have been hitting brick walls. 

Problem: Anytime I place a dashlet on my Dashboard, the loading symbol sits there and spins and will not load.  I have to close the browser and wait 15 minutes and then try and catch the Configure Dashboard icon before it loads the dashlet to remove it. 

In firebug, the following error just keeps rolling: TypeError: can't access dead object chrome://aolpricecheck/content/jquery-1.4.4.min.js Line 126.  This of course is using my Firefox browser.

For Civi up through 4.2.7, it defaults to no dashlet.  In 4.3 beta 5, there is a CiviCRM News that is loaded so it is locked from the site until I can get the Configure Dashboard to come up to remove it.

My hosting is with Hostgater which has the memory I need but not the Max execution time (set to 30).  I have loaded my site onto a completely different server that meets all the CiviCRM requirements, but dashlets still don't load.  I think I have some type of Java script error, but I cannot figure it out.  It will not load in any browser I have IE, FF or Chrome. 

Any thoughts?


bighudsonnut

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 2
    • Hudson Essex Terraplane Club site
  • CiviCRM version: 4.6.3
  • CMS version: Joomla 3.4.1
  • MySQL version: 5.5.42
  • PHP version: 5.5.23
Re: Dashlets wont load - Java script error
March 30, 2013, 08:19:41 pm
I just found this answer for what seems to be the same issue I have, but on Drupal.  Anyone know how this would apply to Joomla!

http://stackoverflow.com/questions/6271831/drupal-civicrm-javascript-conflict

"CiviCRM uses the jQuery object as cj instead of $ in order to avoid conflicts with the Drupal JQuery library. In theory, they are fine using different versions because they are namespaced differently (which jQuery supports officially using noConflict()).

The conflict you have probably comes from your modifications causing either Drupal or CiviCRM to load its jQuery library at a different point in the bootstrap, or making it try to load jQuery more than once. This would make the operation to convert $ into cj pick up the Drupal jQuery object after it has already been instantiated, rather than before, leaving Drupal and/or CiviCRM without the libraries it needs being attached to the $ object (are you using # instead of $?).

Search for all code that uses noConflict() everywhere on the page in question and its JavaScript includes. You should only find it in one place. Compare with the demo.civicrm.org pages to see the difference and you'll probably find an extra one in there somewhere. Best hope for fixing it is to adjust the load order of your custom modules in the Drupal system table, or else set the second noConflict() call to run conditionally on there not being a cj object already."

bighudsonnut

  • I post occasionally
  • **
  • Posts: 84
  • Karma: 2
    • Hudson Essex Terraplane Club site
  • CiviCRM version: 4.6.3
  • CMS version: Joomla 3.4.1
  • MySQL version: 5.5.42
  • PHP version: 5.5.23
Re: Dashlets wont load - Java script error
February 25, 2015, 12:53:58 pm
I posted a possible solution to this on another post here:

http://forum.civicrm.org/index.php/topic,23950.msg152420.html#msg152420

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Dashlets wont load - Java script error

This forum was archived on 2017-11-26.