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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 3.1.2 - 3.1.3 Drupal 6.14 UI issues
Pages: [1]

Author Topic: 3.1.2 - 3.1.3 Drupal 6.14 UI issues  (Read 5329 times)

bpayst

  • I’m new here
  • *
  • Posts: 16
  • Karma: 3
3.1.2 - 3.1.3 Drupal 6.14 UI issues
March 02, 2010, 11:49:31 am
I upgraded from 3.1.2 to 3.1.3 on Drupal 6.14 and the tabs on contact pages no longer appear and some pages appear to be rendering incomplete content. This is viewing with Safari and Firefox on OS X 10.6. I cleared the templates_c directory, purged the Drupal caches, and everything else I could think of.

Rolling the module back to the 3.1.2 release restored everything back to normal.

synchlayer

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
Re: 3.1.2 - 3.1.3 Drupal 6.14 UI issues
March 22, 2010, 02:36:47 pm
I've had pretty much the same issues with the same setup and am about to also roll back to 3.1.2

I also can't enter any text or numbers into date fields or access the pop-up calendars for any date searches.

On the advanced search page
 <YOUR_URL>/civicrm/contact/search/advanced&reset=1
all of the tabs ("Address fields," "Relationships," etc.) no longer expand - each of them instead goers to this link
 <YOUR_URL>civicrm/contact/search/advanced&reset=1
which means nothing happens and you're stuck on this page.

I tested this in multiple browsers and the same thing happened, this is the same whenever tabs appear throughout the site

I went through all the steps here
http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Drupal+Sites+to+3.1
to check everything, the only thing I haven't tried for the calendar is disabling Drupal's Date Popup module as I need that for another dependency.

bpayst

  • I’m new here
  • *
  • Posts: 16
  • Karma: 3
Re: 3.1.2 - 3.1.3 Drupal 6.14 UI issues
April 20, 2010, 07:04:42 pm
Having the same issue with 3.1.4 as well. Can't seem to find a fix. Any thoughts would be appreciated. Rolling the module files back to 3.1.2 brings back the tabs without having to clear caches or remove anything from templates_c.
« Last Edit: April 20, 2010, 07:19:07 pm by bpayst »

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: 3.1.2 - 3.1.3 Drupal 6.14 UI issues
April 20, 2010, 08:28:06 pm
I'm having very similar trouble on a 3.1.2 - > 3.1.4 upgrade.

Tabs aren't displaying on event management, contribution management and profile pages.

I haven't been able to find any errors while monitoring the page load in firebug.

Screenshot shows bullets on profile management page in place of expected tabs.
Clicking those links leads to pages where I cannot edit content. On the pages that load when I click on thoe links, JavaScript and CSS aren't loaded, so the pages (which are meant to load as snippets) aren't functional.

Suggestions would be appreciated.

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: 3.1.2 - 3.1.3 Drupal 6.14 UI issues
April 20, 2010, 08:49:33 pm
One observation on a simple page.    Settings - Resource URLs
On 3.1.4 the help popups aren't working. On 3.1.2 they worked.  This seems related to the issues raised above.

On 3.1.2:

Javascripts loaded as follows:
Quote
<script type="text/javascript" src="https://<site>/sites/all/modules/civicrm/packages/jquery/jquery.js"></script>
<script type="text/javascript" src="https://<site>/sites/all/modules/civicrm/packages/jquery/jquery-ui.js"></script>
<style type="text/css">@import url("https://<site>/sites/all/modules/civicrm/packages/jquery/themes/smoothness/jquery-ui.css");</style>

<script type="text/javascript" src="https://<site>/sites/all/modules/civicrm/packages/jquery/plugins/flexigrid.js"></script>

<style type="text/css">@import url("https://<site>/sites/all/modules/civicrm/packages/jquery/css/flexigrid.css");</style>

<script type="text/javascript" src="https://<site>/sites/all/modules/civicrm/packages/jquery/plugins/jquery.autocomplete.js"></script>
<style type="text/css">@import url("https://<site>/sites/all/modules/civicrm/packages/jquery/css/jquery.autocomplete.css");</style>

<script type="text/javascript" src="https://<site>/sites/all/modules/civicrm/packages/jquery/plugins/tree_component.min.js"></script>
<script type="text/javascript" src="https://<site>/sites/all/modules/civicrm/packages/jquery/plugins/css.js"></script>


On 3.1.4 the order of loading is different and see some other drupal js loaded first, specifically /misc/jquery.js and  /misc/drupal.js.  In 3.1.2 the civi JS's were loaded first:

   
Quote
<script type="text/javascript" src="/misc/jquery.js?h"></script>

<script type="text/javascript" src="/misc/drupal.js?h"></script>
<script type="text/javascript" src="/sites/all/modules/extlink/extlink.js?h"></script>
<script type="text/javascript" src="/sites/all/modules/og/og.js?h"></script>
<script type="text/javascript" src="/sites/all/modules/ubercart/uc_file/uc_file.js?h"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/jquery.js?h"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/jquery-ui.js?h"></script>
<script type="text/javascript" src="/sites/all/modules/civicrm/drupal/../packages/jquery/plugins/flexigrid.js?h"></script>

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: 3.1.2 - 3.1.3 Drupal 6.14 UI issues
April 21, 2010, 05:43:47 am
Seems to be a theme conflict. When I switch from our default theme,  pixture reloaded (which uses color module) to garland, the pages render fine.

I'll continue to investigate, but would appreciate any suggestions or hints of where to look to debug.

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: 3.1.2 - 3.1.3 Drupal 6.14 UI issues
April 30, 2010, 02:57:05 pm
My issue sounds like the one described here, with respect to superfish menus.
http://forum.civicrm.org/index.php/topic,12912.0.html

I'll try the upgrade again soon.

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.2 - 3.1.3 Drupal 6.14 UI issues
May 22, 2010, 02:36:47 am
Hi all.  Here's the thing with Jquery and CiviCRM, there are conflicts with themes and modules, having fixed these conflicts on a few occasions myself, here are some general guidelines for the debug process:

1. Give yourself an evening to take your site down (put it in maintainance mode) and take a deep breath.  This could take a couple hours.

2. Modules and themes that use Jquery are sometimes coded incorrectly, assuming that they are the only thing on your site that will use Jquery.  What a poor assumption.  Example: with fix: http://www.danetsoft.com/resolve-conflict-civicrm-jquery-plugins

3. View source.  Look at the .js calls in the <head> section on your site, these are all the <script called by Drupal $scripts; tag.   Compare your source with the source from the CiviCRM demo site or other working CiviCRM site.  What is difference about the source on your non-working version?  Is there anything more or less on yours?  This is like Sesame Street, which of these things is not like the other? Does your theme have any shenanigans that is causing jquery.js being called more than once?

4. Get it to work on Garland theme.  This narrows it down to your theme (sort of, see #5).  Garland's what the CiviCRM development team tests with.  If it works on Garland, CiviCRM team says it works.  HOWEVER many times the Custom theme (particuarly old, more complex, or bossy ones) 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.

5. Just cause it works on Garland doesn't necessarily mean it's your theme's problem.  It could be a Block that is used in your Custom theme that is not used in Garland.  Disable all blocks that use Jquery or have custom code in them.

6. Disable all modules that use Jquery besides CiviCRM.  Refresh a page.  did your error go away?  If so, yay!!!  Now enable them one by one, then refreshing a page, checking to see if the site breaks as each are enabled.  If you are not sure if a module uses jQuery, disable it anyway, unless it is a module that might change your content permissions (like Node Access, etc), which almost never use jQuery and could hose your site.  If disabling a module gives you a WSOD (that's the white screen of death, folks) or some wacky error so you can't renable it, go here for more instructions and roll up your sleves and load up phpMySQLAdmin http://drupal.org/node/157632

7. Install Firefox, and Use Javascript Error console.   Are there any Javascript errors?  What are they?  what file, line?  Look at the error, look at the line of code.

8. Remember that CiviCRM is like an Alpha Dog.  CiviCRM is the boss.  The core team won't say this but I will: Barking at CiviCRM and how it broke your theme isn't going to do you any good.  :-) You might like your little Jquery do-hickey plugin that you made, or installed or found on some site.  You might like your cool looking theme, but maybe it is old or maybe it sucks.  If it is messing with CiviCRM, it needs to submit to the master, not the other way around.  CiviCRM is #1 priority.  I had a text-resizer module that wasn't working well with CiviCRM jQuery the other day.  Guess what? That's too bad, the module got removed.

9. View and edit your theme files.  page.tpl.php and template.php are your prime suspects.  If you have narrowed it down to your theme's problem, it's time to get familiar with your theme, technically speaking, if you haven't already.  This may be a little out of your comfort zone, but see if anything is wacky in there.  Look for any .js files or things like that.  If necessary, comment out blocks of code until the errors stops, narrow down the culprit.  You can also hard-code your $scripts tag (see #3) by taking the <scripts from one site and putting them on yours.) does this fix it?

10. Remember this is like Sherlock Holmes, you need to eliminate all possibilities until only one remains.  Be methodical.  Take notes.  

Hope this helps.  I just fixed a jQuery upgrade error this week going from 3.1.2 to 3.1.5 and it took me 3 hours.  Good luck.  You can do it!
« Last Edit: May 22, 2010, 03:03:47 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: 3.1.2 - 3.1.3 Drupal 6.14 UI issues
May 25, 2010, 12:25:51 pm
I found that for me this issue was a superfish one related to superfish in the pixture_reloaded theme.   Unchecking superfish in the theme configuration made the tabs load.

This was helpful in solving my superfish-pixture_reloaded-civicrm issue:  http://drupal.org/node/761034.

It just requires a minor change to the superfish js.  Change

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

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

bpayst

  • I’m new here
  • *
  • Posts: 16
  • Karma: 3
Re: 3.1.2 - 3.1.3 Drupal 6.14 UI issues
July 26, 2010, 10:12:56 am
The Jquery change to a theme's JS file also fixed this for me.

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: 3.1.2 - 3.1.3 Drupal 6.14 UI issues
August 01, 2010, 08:33:41 pm
I've finally been able to test this. The Superfish JS change resolved the issue for me too.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 3.1.2 - 3.1.3 Drupal 6.14 UI issues

This forum was archived on 2017-11-26.