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) »
  • Javascript paths not correct - how to fix?
Pages: [1]

Author Topic: Javascript paths not correct - how to fix?  (Read 1247 times)

bob_bingham

  • Guest
Javascript paths not correct - how to fix?
August 27, 2009, 07:17:56 am
Hi,
Funny thing: check out what Civicrm is outputting for the paths to some of the javascript:
<script type="text/javascript" src="packages/jquery/jquery-ui.js"></script>

All the javascript paths happen to be document relative like this - problem is that with Drupal using the rewrite engine, http://<mysite>/civicrm/packages/jquery/jquery-ui.js doesn't output a javascript page at all, but rather a civicrm html page.....and this means that the javascripts aren't being loaded.

what I need is the paths to be like this:
/sites/all/modules/civicrm/packages/jquery/jquery-ui.js

I have tried changing this on the configuration screen under Resource URLS, and have checked the settings in civicrm.settings.php. I have also deleted the templates_c to have the system rebuild them....

All to no avail....

Any suggestions of how to resolve this?



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 paths not correct - how to fix?
August 27, 2009, 09:24:40 am

please get on IRC (web link at top of this page)

will be easier and faster for us to debug. If u have ssh access will make it a whole lot easier :)

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

bob_bingham

  • Guest
Re: Javascript paths not correct - how to fix?
August 27, 2009, 02:01:26 pm
lobo helped resolve this once he heard that I had tweaked the config_backend field by hand during migration.

Currently, the cursed config_backend field in thecivicrm_domain table had a value of "N;"
Setting the field to NULL fixed the javascript paths problem.

Don't know quite what to say but that the mysterious dual locations of the settings (both in the settings file and in this database field) caused much pain in migrating to a new server - the settings in the config_backend field were causing a segmentation fault in the Apache webserver (white screen - only note of cause was a segmentation fault in the apache error log)

Anyway, on to (hopefully) less frustrating things.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Javascript paths not correct - how to fix?

This forum was archived on 2017-11-26.