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 errors in CiviCRM install
Pages: [1]

Author Topic: Javascript errors in CiviCRM install  (Read 2843 times)

nvisioncurtis

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 0
Javascript errors in CiviCRM install
August 26, 2009, 08:34:43 am
Hi All,

I could really really use some help with tackling the javascript errors.

First,
I am seeing Javascript errors when ever I navigate to the CiviCRM module. I list these below.  The module appears to work however... How concerned should I be about these errors??

Second,
At this time I wish to only use Contribute to collect donations on my Drupal website.  I will not require the user to create an account in order to make a donations.  Can someone please clarify the minimum config for this functionality? Currently I only have the main CiviCRM module loaded. Are other modules required here???

I am using Drupal 6 and CRM - v2.2


Javascript errors consist of  Bundle not found loading dijit, locale=en-us
  Code 0
  Url www.vetshealings.org/civicrm/dasboard

And
  Could not load 'dojo.nls.commonWidgets_en-us'
  Code 0


Many thanks!



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: Javascript errors in CiviCRM install
August 26, 2009, 11:41:24 pm
Can you recheck if you have correct base url in civicrm.settings.php and also correct resource url.

Kurund
Found this reply helpful? Support CiviCRM

nvisioncurtis

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 0
Re: Javascript errors in CiviCRM install
August 27, 2009, 07:11:38 am
Hi Kurund,

I checked the civicrm.settings.php it appears to be correct.  If it wasn't  I think Civi would balk more... I did change the baseurl to include the "www".

   define( 'CIVICRM_UF_BASEURL'      , 'http://www.vetshealing.org/' );

The $civicrm_root  also appears correct.

Where would I find the resource url you mentioned?

Could this be a conflict with other modules?
« Last Edit: August 27, 2009, 07:17:18 am by nvisioncurtis »

nvisioncurtis

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 0
Re: Javascript errors in CiviCRM -- One more thing
August 27, 2009, 07:35:40 am
in Firefox error console the main error the keeps repeating is this one.

Error: Could not load 'dojo.nls.commonWidgets_en-us'; last tried './nls/commonWidgets_en-us.js'
Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dojo/dojo.js
Line: 20

I have checked to see if the dojo lib is there is it doess appear to be there as far as I can tell.
>>  do I need to turn on other Civi Modules in Drupal other then the main module? 
« Last Edit: August 27, 2009, 07:42:37 am by nvisioncurtis »

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: Javascript errors in CiviCRM install
August 27, 2009, 08:14:04 am
Quote
define( 'CIVICRM_UF_BASEURL'      , 'http://www.vetshealing.org/' );

Can you change this to define( 'CIVICRM_UF_BASEURL'      , 'http://vetshealing.org/' ); and do http://vetshealing.org/civicrm/menu/rebuild?reset=1

HTh

Kurund
Found this reply helpful? Support CiviCRM

nvisioncurtis

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 0
Re: Javascript errors in CiviCRM install
August 27, 2009, 09:04:12 am
Kurund,

I really appreciate your help! I reset that and ran the rebuild link but It did not make a difference.

I also cleared Firefox's error console and loaded a CiviCRM page to see what errors are generated

Here is the contents of that consle window.  The last two look more serious.



Warning: Error in parsing value for property 'font-weight'.  Declaration dropped.

Source File: http://vetshealing.org/sites/all/modules/civicrm/css/skins/aqua/theme.css

Line: 13

 

Security Error: Content at http://www.vetshealing.org/civicrm/dashboard?reset=1 may not load data from http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dojo/nls/commonWidgets_en-us.js.

 

Error: Could not load 'dojo.nls.commonWidgets_en-us'; last tried './nls/commonWidgets_en-us.js'

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dojo/dojo.js

Line: 20

 

Error: Could not load 'dojo.nls.commonWidgets_en-us'; last tried './nls/commonWidgets_en-us.js'

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dojo/dojo.js

Line: 20

 

Warning: Expected declaration but found '#background'.  Skipped to next declaration.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 251

 

Warning: Expected declaration but found '#display'.  Skipped to next declaration.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 306

 

Warning: Unknown property 'zoom'.  Declaration dropped.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 332

 

Warning: Error in parsing value for property 'filter'.  Declaration dropped.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 368

 

Warning: Expected declaration but found '#background'.  Skipped to next declaration.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 515

 

Warning: Expected declaration but found '#background-image'.  Skipped to next declaration.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 562

 

Warning: Expected declaration but found '#background-image'.  Skipped to next declaration.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 562

 

Warning: Error in parsing value for property 'filter'.  Declaration dropped.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 627

 

Warning: Unknown property 'zoom'.  Declaration dropped.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 637

 

Warning: Expected color but found 'invert'.  Expected end of value for property but found 'invert'.  Error in parsing value for property 'outline'.  Declaration dropped.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 667

 

Warning: Unknown property 'zoom'.  Declaration dropped.

Source File: http://vetshealing.org/sites/all/modules/civicrm/packages/dojo/dijit/themes/tundra/tundra.css

Line: 769

 

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

Error: $("pngfix, div#pngfix, span#pngfix, div#after-footer, span#after-footer").pngFix is not a function
Source File: http://www.vetshealing.org/civicrm/dashboard?reset=1
Line: 58





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: Javascript errors in CiviCRM install
August 27, 2009, 09:07:51 am
Can you jump onto #civicrm irc channel, will be easier to help.

Kurund
Found this reply helpful? Support CiviCRM

nvisioncurtis

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 0
Re: Javascript errors in CiviCRM install
August 27, 2009, 09:58:44 am
Fixed!  thank you Kurund.


There was an incorrect resource url on http://www.vetshealing.org/civicrm/admin/setting/url?reset=1
so instead of http://www.vet.....  it was  http://vet...


nvisioncurtis

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 0
Re: Javascript errors in CiviCRM install
August 27, 2009, 10:23:22 am
Hi Kurund,

I have notice odd behavior here,
it seems that if a user accesses the site without the 'www.' prefix  as many of do the errors return, particularly the could not load common widgets ... error

>> Is there away to redirect in Drupal the user to the www.vets... URL  if they enter with no www in the URL?


and as mentioned offline, there are a lot of css property errors with civiCRM module paths.
I've never  noticed these errors being reported before in IE as they are.

>> Is this normal for CicCRM?

Thanks Again,



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 errors in CiviCRM install
August 27, 2009, 11:04:03 am

check the .htaccess file within the drupal root directory

there are examples in that file of how to redirect a url from www.example.com to example.com (and vice versa)

thanx

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

nvisioncurtis

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 0
Re: Javascript errors in CiviCRM install
August 27, 2009, 12:17:53 pm
Yes, you were correct.  There is an example there thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Javascript errors in CiviCRM install

This forum was archived on 2017-11-26.