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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Javascript error on every page
Pages: [1]

Author Topic: Javascript error on every page  (Read 3934 times)

lockep

  • Guest
Javascript error on every page
November 11, 2008, 09:37:23 am
I have the following javscript error on every page in civiCRM I think it is related to other issues I am having like the country and state drop downs not working.  The error is below.

Line: 21
Char: 51616
Error: Bundle not found: validate in dijit.form, locale=en-us
Code: 0

If I click on previous error I see the following error.

Line: 21
Char: 4935
Error: Could not load 'dojo.nls.commonWidgets_en-us'; last tried './nls/commonWidgets_en-us.js'
Code: 0

I have checked the resource urls and they are correct.  I have also viewed the source and pasted all the java script urls in to the browser and they are all where they are supposed to be.

PLease help!!!!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Javascript error on every page
November 11, 2008, 09:49:19 am
Did some quick google-ing on that 1st error and it "might" be related to your locale / i18n issues. Check this forum post:

http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/it-possible-disable-internationalization

If that's not it, I'd try some more net searches on these errors.
Protect your investment in CiviCRM by  becoming a Member!

lockep

  • Guest
Re: Javascript error on every page
November 11, 2008, 12:06:34 pm
Well I upgraded from civicrm 2.0 to 2.1.1 and the problem I was having went away so I was happy........but then when I tried to add an individual I got the following long list of errors.

backTrace


/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 138
, handle,
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/PEAR.php, call_user_func, 912
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/DB.php, PEAR_Error, 966
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/PEAR.php, DB_Error, 574
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/DB/common.php, raiseError, 1903
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/DB/mysql.php, raiseError, 898
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/DB/mysql.php, mysqlRaiseError, 327
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/DB/common.php, simpleQuery, 1216
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php, query, 2394
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php, _query, 1587
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Core/DAO.php, query, 144
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Dedupe/Finder.php, query, 101
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Contact/Form/Individual.php, dupesByParams, 230
, formRule,
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm.php, call_user_func, 1591
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php, validate, 290
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php, validate, 148
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, handle, 232
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Utils/Wrapper.php, run, 114
/home/www/mywebsite/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 169
/home/www/mywebsite/administrator/components/com_civicrm/admin.civicrm.php, invoke, 45
/home/www/mywebsite/administrator/components/com_civicrm/admin.civicrm.php, civicrm_invoke, 22
/home/www/mywebsite/libraries/joomla/application/component/helper.php, require_once, 162
/home/www/mywebsite/administrator/includes/application.php, renderComponent, 130
/home/www/mywebsite/administrator/index.php, dispatch, 67
/home/www/mywebsite/administrator/index2.php, include, 14


 Sorry. A non-recoverable error has occurred.


--------------------------------------------------------------------------------

DB Error: unknown error

Database Error Code: Column 'id' in field list is ambiguous, 1052

Return to home page.

Error Details:


Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => SELECT id
                FROM dedupe JOIN civicrm_contact USING (id)
                WHERE contact_type = 'Individual'
                GROUP BY id HAVING SUM(weight) >= 20
                ORDER BY SUM(weight) desc [nativecode=1052 ** Column 'id' in field list is ambiguous]
    [type] => DB_Error
    [user_info] => SELECT id
                FROM dedupe JOIN civicrm_contact USING (id)
                WHERE contact_type = 'Individual'
                GROUP BY id HAVING SUM(weight) >= 20
                ORDER BY SUM(weight) desc [nativecode=1052 ** Column 'id' in field list is ambiguous]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT id
                FROM dedupe JOIN civicrm_contact USING (id)
                WHERE contact_type = 'Individual'
                GROUP BY id HAVING SUM(weight) >= 20
                ORDER BY SUM(weight) desc [nativecode=1052 ** Column 'id' in field list is ambiguous]"]
)


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 error on every page
November 11, 2008, 12:27:34 pm

civicrm 2.0 and over require mysql5.x. You'll need to upgrade your mysql version

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

taram

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
Re: Javascript error on every page
November 20, 2008, 01:49:13 pm
I was getting similar javascript errors but my resource url was wrong. Once I corrected it, everything is working beautifully.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Javascript error on every page

This forum was archived on 2017-11-26.