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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • Upgrade from 3.0.1 to 3.2 beta4 breaks contact tabs
Pages: [1]

Author Topic: Upgrade from 3.0.1 to 3.2 beta4 breaks contact tabs  (Read 3684 times)

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Upgrade from 3.0.1 to 3.2 beta4 breaks contact tabs
July 20, 2010, 07:12:31 am
Hello,

    We upgraded a civicrm 3.0.1 Drupal 6.17 to 3.2-beta4 and had a couple of problems. Thought i'd post
this here to see if anyone has seen them before and have any hints.

Steps followed - http://wiki.civicrm.org/confluence/display/CRMUPCOMING/Upgrade+Drupal+Sites+to+3.2

After upgrading to 3.2 the following things broke down

- Tabs for Contact View.
   http://www.example.com/civicrm/contact/view?reset=1&cid=1278

- On clicking the any of the tabs on the above mentioned page it generates the url with snippet=1.
   (for e.g. for Membership tab the url is : http://www.example.com/civicrm/contact/view/membership?reset=1&snippet=1&force=1&cid=1278)
   the theme is broken on this page
   Now if I remove "&snippet=1" from the url, it displays page with proper formatting.
   http://www.example.com/civicrm/contact/view/membership?reset=1&force=1&cid=1278

Have anyone seen something like this ? I double checked the Base Directory and Base URL settings as per instructions but no luck :(
"Verify and Update Base Directory and Base URL Settings in the Database - If you are seeing problems with missing images or page styling, you may need to adjust the
  Base Directory and Base URL Settings in the database. You can do this from: Administer CiviCRM » Configure raquo; Update Directory Path and URL"

Thanks.

Yashesh Bhatia

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 3.0.1 to 3.2 beta4 breaks contact tabs
July 20, 2010, 08:37:27 am
yasheshb,

Looks like your javascript / jquery is broken. Can you try clearing drupal cache and also try deleting templates_c folder.

Hth
Kurund
Found this reply helpful? Support CiviCRM

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: Upgrade from 3.0.1 to 3.2 beta4 breaks contact tabs
July 23, 2010, 05:00:21 am
Kurund:

  Thanks for the reply and assistance in resolving the issue during the Mumbai meetup.
The problem was in the Marinelli Theme js

http://drupal.org/project/marinelli

specifically the file marinellidropdown.js

the fix was to ensure that the $ alias can be used within the js file as per
http://docs.jquery.com/Plugins/Authoring#Custom_Alias

thx.

yashesh bhatia.

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: Upgrade from 3.0.1 to 3.2 beta4 breaks contact tabs
July 23, 2010, 06:15:56 am
btw - using this plugin - http://www.filamentgroup.com/lab/update_automatically_preload_images_from_css_with_jquery/
also breaks down civicrm js for contact tabs.



Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 3.0.1 to 3.2 beta4 breaks contact tabs
July 24, 2010, 01:18:17 pm
I think above fix should also work for this. So you need to add

Quote
(function($){

 plugin code ......

})(jQuery);

Kurund
« Last Edit: July 24, 2010, 01:20:59 pm by Kurund Jalmi »
Found this reply helpful? Support CiviCRM

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: Upgrade from 3.0.1 to 3.2 beta4 breaks contact tabs
July 26, 2010, 01:18:49 am
kurund:

  i changed the plugin code earlier but it's invoked from drupal's template.php using

Code: [Select]
// retrieve custom theme settings
$preload = theme_get_setting('cssPreload'); // print the js file if we choose css image preload
if($preload == '1'){
        drupal_add_js(drupal_get_path('theme','marinelli').'/js/preloadCssImages.jQuery_v5.js'); // load the javascript
        drupal_add_js('$(document).ready(function(){jQuery.preloadCssImages();});','inline');
}

so looks like the drupal_add_js is also breaking down for it.  However, on a related note, another intent of the post was to let users know that
the above plugin also breaks the civicrm contact tabs, which means that any poorly written plugin can breakdown civicrm 3.2 leaving little room for
margin of error and in case anyone sees this problem they can rectify it.

thx.

yashesh

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.2 Release Testing »
  • Upgrade from 3.0.1 to 3.2 beta4 breaks contact tabs

This forum was archived on 2017-11-26.