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 Drupal Modules (Moderator: Donald Lobo) »
  • CiviCRM javascript on Drupal is (sometimes) broken
Pages: [1]

Author Topic: CiviCRM javascript on Drupal is (sometimes) broken  (Read 1275 times)

cyboreal

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Drupal
  • MySQL version: 5.x
  • PHP version: 5.2.x
CiviCRM javascript on Drupal is (sometimes) broken
February 22, 2011, 11:53:43 am
I am running CiviCRM 3.3.5 on Drupal 6.18 with the CiviCRM Theme module installed and configured so that my site uses a custom theme but the CiviCRM pages use Garland. I am finding that the Javascript elements of the CiviCRM user interface is broken on some pages, but not on others. For instance, the advanced search (/civicrm/contact/search/advanced&reset=1) works as expected, with collapsible sections expanding and collapsing when clicked, as expected.

But on other pages, such as editing a contact or writing a new email in CiviMail, the collapsible sections do not work and neither do the text areas that are for HTML text. In a previous version, these areas were displayed with a WYSIWYG editor, but the editor does not show.

I've turned off javascript caching and I can see in the page source that /misc/jquery.js?v is being loaded, as is /modules/acquia/civicrm/drupal/../packages/jquery/jquery.js?v

Any ideas how I can get jquery to work as expected on all the CiviCRM pages? Simple, quick & painless would be great  :)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviCRM javascript on Drupal is (sometimes) broken
February 22, 2011, 11:59:04 am
1. You could try using Firebug to see if you can find the error or the missing file

2. You could try putting CiviCRM in sites/all/modules instead of where it is. You would have to adjust the settings file and also reset the backend config, but this may help.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

cyboreal

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 3.2.3
  • CMS version: Drupal
  • MySQL version: 5.x
  • PHP version: 5.2.x
Re: CiviCRM javascript on Drupal is (sometimes) broken
February 22, 2011, 12:49:52 pm
Hi hershel, thanks for the suggestions. This is the same setup mentioned in this post (http://forum.civicrm.org/index.php/topic,18537) which would not work when running CiviCRM from the usual location. As everything else appears to be working, I decided to symbolically link the current location of the civicrm installation to /sites/all/modules. I'm sure it's not recommended, but apparently something is hard-coded to be looking there because javascript appears to be working now. I'm sure it broke something else, but I haven't found it yet... Thanks again!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviCRM javascript on Drupal is (sometimes) broken
February 22, 2011, 03:03:24 pm
Ah, I see. Yes, I had a feeling something was hard coded regarding this location.

> Thanks again!

My pleasure.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • CiviCRM javascript on Drupal is (sometimes) broken

This forum was archived on 2017-11-26.