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 »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Accordion not expandable
Pages: [1] 2

Author Topic: Accordion not expandable  (Read 6633 times)

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Accordion not expandable
September 12, 2011, 02:46:14 am
Hi!

I can't expand the Accordion tabs in most reports (some do work though). Firebug gives me the following output:


datepicker is undefined

datepicker.regional['de'] =
uncaught exception: Unexpected literal at position 2


I'm using CiviCRM 4.0.5 with Drupal 7.7.
I cleared all caches and deleted the templates_c directory, with no success.

Any hints?
thanks, tosca

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Accordion not expandable
September 12, 2011, 03:03:14 am
Can you check on the net tab if all the javascript are loaded (the line is red if it failed loading it)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Accordion not expandable
September 12, 2011, 03:20:59 am
Thanks for your help.

Yes, I get  '200 OK'  for all .js files!
« Last Edit: September 12, 2011, 03:22:54 am by tosca »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Accordion not expandable
September 12, 2011, 07:29:58 am
Seems the German language setting may be the issue. Can you try enabling that on the demo site at http://d7.demo.civicrm.org/ and see if you can reproduce this error?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Accordion not expandable
September 12, 2011, 09:08:01 am
I compared the output of the demo site to that of mine and got the same 'datepicker' error. However the accordion tabs work on the demo site.
I do get another error on my site though. Here's the output (I used opera's console):

Code: [Select]
Uncaught exception: Unexpected literal at position 2
Error thrown at line 16, column 26206 in <anonymous function: resolveWith>(d, f) in http://www.wienertafel.at/crm/sites/default/files/js/js_HW798avjZ6JnUwy6UVmuXSBLkZlkZmP2OqPTPfzY6-8.js:
    throw g
called from line 16, column 18354 in <anonymous function: ready>(a) in http://www.wienertafel.at/crm/sites/default/files/js/js_HW798avjZ6JnUwy6UVmuXSBLkZlkZmP2OqPTPfzY6-8.js:
    y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")
called from line 16, column 30039 in <anonymous function: A>() in http://www.wienertafel.at/crm/sites/default/files/js/js_HW798avjZ6JnUwy6UVmuXSBLkZlkZmP2OqPTPfzY6-8.js:
    c.removeEventListener("DOMContentLoaded",A,!1),d.ready()

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Accordion not expandable
September 12, 2011, 09:33:55 am
That error would appear to be from a Drupal module. Seems you have JS caching turned on for Drupal. Can you turn that off and then look for the error message?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Accordion not expandable
September 12, 2011, 09:38:19 am
Sorry, I should've thought of that. Here's the output:
Code: [Select]
Uncaught exception: Unexpected literal at position 2
Error thrown at line 16, column 26206 in <anonymous function: resolveWith>(d, f) in http://www.wienertafel.at/crm/sites/all/modules/civicrm/packages/jquery/jquery.js?lrf4s3:
    throw g
called from line 16, column 18354 in <anonymous function: ready>(a) in http://www.wienertafel.at/crm/sites/all/modules/civicrm/packages/jquery/jquery.js?lrf4s3:
    y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")
called from line 16, column 30039 in <anonymous function: A>() in http://www.wienertafel.at/crm/sites/all/modules/civicrm/packages/jquery/jquery.js?lrf4s3:
    c.removeEventListener("DOMContentLoaded",A,!1),d.ready()

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Accordion not expandable
September 12, 2011, 10:07:28 am
I'm not sure about your particular issue, but if you do find a JS error on the demo site, I think you should open an Issue (via the Issue Tracker link at the top of this page) and mention this thread. Perhaps fixing that will also fix your issue.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Accordion not expandable
September 12, 2011, 10:35:23 am
I found an additional error Firebug didn't show at first:
Code: [Select]
Linked script not loaded
jquery.dataTables.min.js

Maybe this helps identifying the issue.  :)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Accordion not expandable
September 12, 2011, 10:40:54 am
That would sound like you are missing a file actually. Can you re-upload your core CiviCRM files?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Accordion not expandable
September 12, 2011, 10:52:57 am
I re-uploaded the files but that didn't fix it. The strange thing is that the path is perfectly right and the permissions should work too.

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: Accordion not expandable
September 12, 2011, 10:54:39 am

what browser?

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

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Accordion not expandable
September 12, 2011, 10:57:49 am
It's happening with Opera 11.51, Firefox 3.6/6.0.2  and IE9!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Accordion not expandable
September 12, 2011, 11:01:16 am
The path is correct and the permissions are correct? Can you access it directly in your browser, as in

mysite.com/sites/all/modules/civicrm/packages/jquery/plugins/DataTables-1.7.6/media/js/jquery.dataTables.min.js

Your URL may differ slightly, but that's the idea.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Accordion not expandable
September 12, 2011, 11:13:02 am
Ok, I got a 404 error for the file in question while other files in the same directory worked. I found the file jquery.dataTables.min.js.gz in the directory and renamed it. Now I can access the file and the loading error is gone.  The other jquery error is still there though, and the tabs won't open!

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Accordion not expandable

This forum was archived on 2017-11-26.