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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • javascript-related issues after Drupal 7 + CiviCRM 4.0 fresh install via drush
Pages: [1]

Author Topic: javascript-related issues after Drupal 7 + CiviCRM 4.0 fresh install via drush  (Read 1600 times)

chiebert

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
javascript-related issues after Drupal 7 + CiviCRM 4.0 fresh install via drush
April 21, 2011, 10:44:00 pm
First real bug-related post here - I apologise if I get things in the wrong place.

Just finished a fresh install of Drupal 7, and the CiviCRM 4.0 via drush (civicrm.drush.inc v. 3.4 and drush 4.4), and I'm noticing several js-related issues right away:

1. On loading mysite/civicrm/dashboard, Safari's (5.0.5 Mac) activity window shows four loading errors, as follows:
Quote
h t t p://default/sites/all/modules/civicrm/packages/ckeditor/ckeditor.js
h t t p://default/sites/all/modules/civicrm/packages/jquery/css/images/arrow.png
h t t p://default/sites/all/modules/civicrm/packages/OpenFlashChart/js/json/openflashchart.packed.js
h t t p://default/sites/all/modules/civicrm/packages/OpenFlashChart/js/swfobject.js
All four lines complain: 'A server with the specified hostname could not be found'. Note that the actual Drupal site hostname is replaced with the word 'default'. BTW, I'm running this installation under MAMP with a locally-resolved hostname 'd7civi'.

2. On any of the Contact -> Add new xxx pages, none of the collapsible tab headers respond to mouse clicks on Safari (5.0.5 Mac) and Firefox (3.6.12 Mac) (these are the only ones I've tested on so far). The only thing that works is the 'collapse/expand all tabs' link. On those pages, the ckeditor and jquery/css/images lines show up with the error above.

Other tidbits: I'm running ckeditor 3.5.3 in the Drupal site (sites/all/libraries). And I'm running the default 'seven' theme in D7.

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: javascript-related issues after Drupal 7 + CiviCRM 4.0 fresh install via drush
April 22, 2011, 07:05:49 am

seems like its not loading the jquery/css. can you try the following:

1. load that path from your browser and see if u get the file

2. check the urls under

administer civicrm >> global settings >> urls

and fix them

might be an issue with the drush install for D7

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

chiebert

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: javascript-related issues after Drupal 7 + CiviCRM 4.0 fresh install via drush
April 22, 2011, 08:23:28 am
Bingo! re. configuring the global resource URLs. I had just gotten up and with a full night's sleep was almost on the right track when I read your reply. Thanks! The errors are gone, and the collapsible tabs are working.

You're right, the
Code: [Select]
drush civicrm-install is probably to blame. This is my first time really putting the pieces together, so I'll try a fresh install without drush, to confirm.

Craig

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • javascript-related issues after Drupal 7 + CiviCRM 4.0 fresh install via drush

This forum was archived on 2017-11-26.