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) »
  • 3.1.4 + Javascript + themes = problems
Pages: [1]

Author Topic: 3.1.4 + Javascript + themes = problems  (Read 4180 times)

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
3.1.4 + Javascript + themes = problems
April 29, 2010, 03:01:20 pm
For better exposure I'm reposting this from another thread that started out on a slightly different topic.

Today I upgraded a Drupal site from 2.2 to 3.1.4, and installed 3.1.4 on another. The Javascript effects of CiviCRM are not working on either site (tabbed display of info for a contact, help tips, etc.). As per a suggestion on another thread I have flushed the Drupal cache and deleted sites/default/files/civicrm/templates_c with no luck.  There are no errors appearing -- features just don't work.

Since these are sites under development I had a lot of opportunity to test various themes (although not all I had installed). Problem themes discovered so far are

ZeroPoint
Hariyali
Antsin Blog Buzz
White Jazz
Acquia Slate

Another user noted problems with pixture_reloaded.

I haven't yet identified a theme that works properly in 3.1.4 ...

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: 3.1.4 + Javascript + themes = problems
April 29, 2010, 11:57:58 pm
Quote
I haven't yet identified a theme that works properly in 3.1.4 ...

you might want to check 'Garland' theme.

kiran
You Are Designed To Choose... Defined By Choice.

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: 3.1.4 + Javascript + themes = problems
April 30, 2010, 08:07:44 am
Garland doesn't work for me either. I've tested in 2 browsers. Both have Javascript enabled.

I have a production site running 3.0.3 (Newsflash theme) that works fine in these browsers - both the tabbed display and the help tips.

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: 3.1.4 + Javascript + themes = problems
May 03, 2010, 12:18:31 pm
So anyone know what needs to happen here? Should I simply go back to a 3.0.x version, and if so which?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: 3.1.4 + Javascript + themes = problems
May 03, 2010, 12:21:14 pm

would be great if you can try debugging and figuring out why it does not work with garland. going back to a 3.0.x solution is potentially a short term fix :(

please post your findings

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: 3.1.4 + Javascript + themes = problems
May 03, 2010, 02:13:28 pm
Not really familiar with the development process here, and no experience with this codebase or recent changes. Are any 3.1 releases known to work with Javascript in Drupal themes?

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: 3.1.4 + Javascript + themes = problems
May 13, 2010, 09:58:42 am
On a couple test sites I've now been able to use 3.1.2 without a problem, at least in those themes (ZeroPoint, Hariyali). Both themes use suckerfish menus. The Javascript incompatibility appears to have surfaced for the first time in 3.1.3, as nearly as I can tell. (Maybe others have more / different info.)

kgilnack

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
    • a beautiful mix of Drupal & CiviCRM.. when things are going right
Re: 3.1.4 + Javascript + themes = problems
May 13, 2010, 02:29:59 pm
I upgraded our Drupal site to 3.1.4 from 2.2..5 last night and am experiencing the same problems with our Zen based custom theme.

When loading the Advanced Search page with Firebug, I get this error:
Quote
$("ul.nice-menu").superfish is not a function
http://providers.org/sites/default/files/js/eee08964112da94aaf737c1fef8aca77.js
Line 7329

In this thread: http://drupal.org/node/761034 I found the following suggestion:
Quote
To resolving this, just simply change the superfish.js in pixture_reloaded > sf > js folder
$(document).ready(function() {
  $('#superfish-inner ul').superfish();
});

to
jQuery(document).ready(function($) {
  $('#superfish-inner ul').superfish();
});

Hope that help.

However, I don't have pixture_reloaded as a theme and I'm not sure if the advice applies here, or where to apply it.

It was also suggested to me that the path that CiviCRM was using to get to the javascript files could be incorrect and to check the page source.  It looks to me that they're pulling them from where they should be; the paths (on Advanced Search's source) are:
src="/sites/default/files/js/eee08964112da94aaf737c1fef8aca77.js"
src="/sites/all/themes/providers/menu.js"
src="/sites/all/modules/civicrm/packages/ckeditor/ckeditor.js"
src="/sites/default/files/js/a6700c0a880ea276dfe4d96636f9ee02.js"

As I often disclaim, I'm not a developer, but am pretty good at following simple instructions if there are things I can test or more information I can share to help diagnose this.

Thanks!

Here are possibly related threads:
  • broken jquery, dashlets, action links = png fix conflict http://forum.civicrm.org/index.php?topic=12609.0
  • 3.1.4, pixture_reloaded and Javascript problem http://forum.civicrm.org/index.php?topic=12912.0
  • 3.1.2 - 3.1.3 Drupal 6.14 UI issues  http://forum.civicrm.org/index.php/topic,12510.0.html

PS: Yes, I deleted templates_c, cleared caches, and checked resource URLs.

kgilnack

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
    • a beautiful mix of Drupal & CiviCRM.. when things are going right
Re: 3.1.4 + Javascript + themes = problems
May 13, 2010, 02:33:51 pm
I should have tested this before posting my last entry, but deactivating Nice Menus fixed this for me.  Still unclear on how I can fix Nice Menus to get along with CiviCRM 3.1.4.  Suggestions would be greatly appreciated.

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: 3.1.4 + Javascript + themes = problems
May 22, 2010, 02:20:03 am
May not be relevant any longer but just for posterity....

Garland works. It's that the CiviCRM development team tests with.

HOWEVER many times the Custom theme must be completely disabled for Garland to work.  This means more than clicking the default to Garland and clicking 'Save'.

To disable your Custom theme you must at the very least uncheck the box next to the theme to disable it.  Furthermore, sometimes Custom themes are so stubborn that you must backup the custom theme locally, then remove the Custom theme from the server completely.

If Garland still doesn't work:
  1. disable all modules having anything to do with Jquery (except for CiviCRM)
  2. disable all blocks that contain any Jquery or PHP code
  3. disable all custom PHP or Javascript in your CiviCRM custom tpl or php

More info: http://forum.civicrm.org/index.php/topic,12510.msg59322.html#msg59322
« Last Edit: May 22, 2010, 02:44:05 am by Stoob »
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) »
  • 3.1.4 + Javascript + themes = problems

This forum was archived on 2017-11-26.