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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Problem with dojo.js path
Pages: [1]

Author Topic: Problem with dojo.js path  (Read 2084 times)

dougall

  • Guest
Problem with dojo.js path
April 29, 2008, 02:57:08 am
Hi,

I'm using Civicrm 2.0.2. I've been having problems with the error "dojo is not defined" on some pages. Two previous posts in the forum concerning this suggest checking : Admin CiviCRM >> Global Settings >> URL setting , so I did this and it seems to be correct.

When checking the HTML of several CiviCRM pages (at random) I noticed the following inside the document HEAD:
Code: [Select]
</script><script type="text/javascript" src="http://smaug.roundpoint.co.uk/content/sites/all/modules/civicrm/packages/dojo/dojo.js">

I assuming this should read "...packages/dojo/dojo/dojo.js" instead, however I'm not sure where in civicrm this is set.

When searching the civicrm files for instances of "packages/dojo/dojo.js" the only result is
Quote
templates/CRM/Contact/Page/View/Print.tpl:27:<script type="text/javascript" src="{$config->resourceBase}packages/dojo/dojo.js"></script>

Which (again) should presumably read "packages/dojo/dojo/dojo.js" (maybe I should file an issue?) but doesn't affect all the other pages which still read "packages/dojo/dojo.js".

Any clues how/where I can start to resolve this?
(Perhaps I'm being daft again)

Thanks

...Dougall

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: Problem with dojo.js path
April 29, 2008, 01:08:50 pm

most likely  you have two versions of civicrm in your modules directory. civicrm / drupal get confused and intermix files between those two versions

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

dougall

  • Guest
Re: Problem with dojo.js path
April 30, 2008, 04:29:18 am
thanks lobo, you're spot on as ever :-)

there was an old version of civicrm on our test server which had been (unhelpfully) renamed to something completely different

as an aside, the file templates/CRM/Contact/Page/View/Print.tpl (line 27) still contains:
Code: [Select]
<script type="text/javascript" src="{$config->resourceBase}packages/dojo/dojo.js"></script>

which looks incorrect, but may not matter (i have no idea whether this template is actually used by civi)

thanks again
...dougall

« Last Edit: April 30, 2008, 04:36:51 am by dougall »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Problem with dojo.js path
May 01, 2008, 04:43:21 am
Yeah - that file is used when you click the "Print" button while viewing a contact - and there's several duplicate invalid paths in there (but they don't break the page as far as I can tell). We'll fix for 2.1.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Problem with dojo.js path

This forum was archived on 2017-11-26.