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) »
  • Bad Javascript and civiCRM basepath
Pages: [1]

Author Topic: Bad Javascript and civiCRM basepath  (Read 5711 times)

phayes

  • Guest
Bad Javascript and civiCRM basepath
January 23, 2008, 09:00:03 am
Hi there. Just getting CiviCRM installed and i'm running into two issues which may or may not be related

1) Dispite a basepath of c:/..../stv/sites/all/modules/civicrm/    civiCRM is still loading images from c:/.../stv/modules/civicrm    So naturally it is not finding them. To make it happy i have made a copy of civicrm in the second directory - but i have a feeling there is a better way to fix this.

2) Javascript errors:
a)  Calendar is not defined
     [Break on this error] Calendar._DN = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",...
     calendar-lang.php (line 1)

b)  on_load_init_blocks is not defined
     [Break on this error] on_load_init_blocks( showBlocks, hideBlocks );
     index.php (line 74)

c)  dojo is not defined
     [Break on this error] dojo.require('dojo.widget.TabContainer');dojo.require('dojo.widget.ContentPane...
     index.php (line 54)

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Bad Javascript and civiCRM basepath
January 23, 2008, 08:57:41 pm
It looks like all the issues come from a wrong resource URL – note that CiviCRM gets its resources through HTTP, not disk access, so you need to properly set your resource URL in the Global Settings part of Administer CiviCRM.
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Bad Javascript and civiCRM basepath

This forum was archived on 2017-11-26.