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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CiviCRM 3.1.5 Dashboard - Javascript issue Drupal
Pages: [1]

Author Topic: CiviCRM 3.1.5 Dashboard - Javascript issue Drupal  (Read 1150 times)

yetimonkey

  • Guest
CiviCRM 3.1.5 Dashboard - Javascript issue Drupal
July 02, 2010, 07:15:27 am
I recently upgraded to 3.1.5. I'm not doing custom coding with CiviCRM. Just basic install. I'm using a custom template in Drupal that I built, but it is not doing anything outside of being a static CSS driven website. When I go to the Dashboard and click Configure your dashboard, nothing happens. The error log shows ReferenceError: Can't find variable: cj and ReferenceError: Can't find variable: jQuery

I've been researching and it seems that Drupal calls on it's jQuery, while CiviCRM calls on it's jQuery. So I assume that is the issue??? Any thoughts of things I could try? I just want to get to the information in Dashboard. Help, please.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: CiviCRM 3.1.5 Dashboard - Javascript issue Drupal
July 02, 2010, 07:36:47 am
1. make sure that within the CiviCRM configuration your Resource URLs (under Global Configuration) are correct.  Can CiviCRM find Jquery?  Not fixed by that?  Continue on........

if the jquery.js file is called twice during the load, it can cause problems.  best to do some debugging.

1. switch your site to Garland theme and completely disable your custom them.  Wait, go one step further.  temporarily remove your custom theme from your server altogther (save a back up of course)
2. does the error occur anymore?
3. if no, then your theme needs to be changed.

If theme's not the problem, then take another approach.

1. go there: http://drupal.demo.civicrm.org/civicrm/dashboard
2. view Source on the demo webpage
3. go to your own website
4. view Source on your own website
5. compare how all the CSS and JS are loaded in the header portion of the page.  How are they different?  Maybe it is something in your jquery file



Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CiviCRM 3.1.5 Dashboard - Javascript issue Drupal

This forum was archived on 2017-11-26.