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) »
  • Strange dojo error in firebug - commonWidgets_en-us.js
Pages: [1]

Author Topic: Strange dojo error in firebug - commonWidgets_en-us.js  (Read 1897 times)

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Strange dojo error in firebug - commonWidgets_en-us.js
May 15, 2008, 05:54:29 pm
any ideas - permission seems to work and no error if i just plug it in to a browser ...

failed loading https://jicny.com/sites/all/modules/civicrm/packages/dojo/dojo/./nls/commonWidgets_en-us.js with error: Permission denied to call method XMLHttpRequest.opendojo.js (line 20)

Could not load 'dojo.nls.commonWidgets_en-us'; last tried './nls/commonWidgets_en-us.js'
[Break on this error] if(typeof dojo=="undefined"){(function(){if(typeof this["djConfig"]=="undefined"...
dojo.js (line 20)

[Exception... "'Error: Bundle not found: validate in dijit.form , locale=en-us' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Strange dojo error in firebug - commonWidgets_en-us.js
May 15, 2008, 09:31:43 pm
Please check if have correct Resource Url (Global Settings)  and UF Base url (civicrm.settings.php)

kurund
Found this reply helpful? Support CiviCRM

kwixson

  • Guest
Re: Strange dojo error in firebug - commonWidgets_en-us.js
June 24, 2009, 12:21:58 pm
Quote from: Kurund Jalmi on May 15, 2008, 09:31:43 pm
Please check if have correct Resource Url (Global Settings)  and UF Base url (civicrm.settings.php)

kurund

I have this error and I have checked the Resource URL and UF Base URL. Now what?

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Strange dojo error in firebug - commonWidgets_en-us.js
June 26, 2009, 04:08:41 pm
I have noticed this dojo bug and in my case it was a result of the url sometimes including a "www" and sometimes not.

Also including in this complex web is your secure SSL certificate.  Certificates are either good for www.domain.com or domain.com but generally not both.

When forcing secure URLs, it may be looking for the dojo in the improper URL and the combination of your SSL and your browser is probably generating some sort of security error and failing to load the javascript.

So what I tried to do when I ran into this problem was the following things:

1. Check which my SSL certficate is good for: www.domain.com or domain.com
2. Accordingly, set my CiviCRM base URL either with the "www" or not ... to match
3. Set up a redirect within .htaccess or httpd.conf (whatever you have access to) to redirect all traffic from the undesirable url to the desirable one.  Google "domain.com to www.domain.com rewrite" to get some examples of what to use.

So for instance, if your SSL certificate is jicny.com....

Set CiviCRM base URL to http://jicny.com
Set a rewrite rule to redirect all traffic to http://www.jicny.com to http://jicny.com

Hope this helps!



Try CiviTeacher: the online video tutorial CiviCRM learning library.

kwixson

  • Guest
Re: Strange dojo error in firebug - commonWidgets_en-us.js
July 01, 2009, 09:18:09 am
Note that if you are using Drupal, this rewrite code is already in the .htaccess file, you just need to uncomment it and adapt the domain name accordingly.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Strange dojo error in firebug - commonWidgets_en-us.js

This forum was archived on 2017-11-26.