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) »
  • No Tabs on Upgrade to CiviCRM 2.0
Pages: [1]

Author Topic: No Tabs on Upgrade to CiviCRM 2.0  (Read 2541 times)

tripp

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
No Tabs on Upgrade to CiviCRM 2.0
March 13, 2008, 05:47:32 pm
I have just started learning Drupal and CiviCRM in the last month.  I upgraded to CiviCRM 2.0 today and now have an interesting problem. I have Drupal and CiviCRM installed on a computer running Linux (Mepis 7.0).  When I view (with Firefox 2) an individual contact on that computer all of the tabs (Summary, Activities, etc) appear as normal.  When I access the site from my laptop (Windows XP and either Firefox 2.0 or IE 7), through my LAN, the tabs are not appearing.  Instead, there are one or two extra scroll bars on the right side of the contact page area.  Have any suggestions for me?  This did not occur with 1.9.  Thanks for the help.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: No Tabs on Upgrade to CiviCRM 2.0
March 14, 2008, 05:52:43 am
This suggests Dojo/JavaScript is not working on your install (in some cases).

Please check the paths at Administer CiviCRM → Global Settings → Resource URLs.

You may also want to go to Drupal’s Administer → Modules and Save configuration on that page (this will rebuild the module info in Drupal).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

tripp

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
Re: No Tabs on Upgrade to CiviCRM 2.0
March 14, 2008, 06:56:33 am
Piotr, thank you for your prompt response.  I followed your suggestions and this is what I discovered.  The Resource URLs were set to //localhost/drupal/ before I started.  When I change that to the internal IP //192.168.../drupal  then the computers switch the behavior - the laptop over LAN has the proper tabs but the computer where CiviCRM is installed shows no tabs.  Any other suggestions for me?  Actually, if it helps, a few weeks ago I tried the CiviCRM 2.0 beta and had this behavior so I went back to 1.9 and didn't have this behavior.  Thanks again for any suggestions.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: No Tabs on Upgrade to CiviCRM 2.0
March 14, 2008, 02:43:21 pm
The Resource URL needs to be accessible from any computer that you want to use CiviCRM. This means that "localhost/..." is only a valid if you are ONLY accessing CiviCRM from the same computer that is running the software. It sounds like the 192.168... IP is NOT accessible to a browser running on the computer where CiviCRM is installed. You can verify these issues by viewing source from a "problem page" - and then pasting the URL for any of the "resource" files directly into your browser location bar - and seeing what happens.

Example, when I view source on a CiviCRM page on my localhost install, one of the first lines is:
Code: [Select]
<style type="text/css">@import url(http://localhost/dgg/drupal/sites/all/modules/civicrm/css/civicrm.css);</style>

I can paste the url to civicrm.css in my browser location bar - and it will bring up civicrm.css in the browser window.
Protect your investment in CiviCRM by  becoming a Member!

tripp

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
Re: No Tabs on Upgrade to CiviCRM 2.0
March 14, 2008, 03:14:02 pm
Thanks, Dave.  I will be able to check this later this weekend.  Is this a different setup in 2.0 since my 1.9 worked fine?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: No Tabs on Upgrade to CiviCRM 2.0
March 14, 2008, 04:22:19 pm
As far as I know, this constraint is the same in 1.9 as 2.0. Basically, the Resource URL sets the base url to point to css and js files. So either it's a URL that is accessible from a given browser / computer, or it's not...
Protect your investment in CiviCRM by  becoming a Member!

tripp

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
Re: No Tabs on Upgrade to CiviCRM 2.0
March 17, 2008, 01:45:43 pm
Dave,  I did paste in the resource files.  What I find is that all of them are loading (on my "client" laptop computer; this is when the resource url setting is //localhost/drupal/...) except the ones in this section:

Code: [Select]
<script type="text/javascript" src="http://localhost/drupal/sites/all/modules/civicrm/packages/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true, usePlainJson: true" ></script>
<script type="text/javascript" src="http://localhost/drupal/sites/all/modules/civicrm/packages/dojo/dojo/commonWidgets.js"></script>
<style type="text/css">@import url(http://localhost/drupal/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css);</style>

It seems their commonality is //.../modules/civicrm/packages/...

Any explanation why that would be the case?

tripp

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
Re: No Tabs on Upgrade to CiviCRM 2.0
March 17, 2008, 03:48:03 pm
Thanks for the help, I got it solved.   I had to change my civicrm.settings.php file to:

Code: [Select]
define( 'CIVICRM_UF_BASEURL'      , 'http://192.168.1.2/drupal/' );
and also set my Resource URLs to match that:

Code: [Select]
http://192.168.1.2/drupal/sites/all/modules/civicrm/
So, again, thanks for all your suggestions and time.

Tripp

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • No Tabs on Upgrade to CiviCRM 2.0

This forum was archived on 2017-11-26.