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 CiviMember (Moderator: Deepak Srivastava) »
  • No calendar in user defined date field
Pages: [1]

Author Topic: No calendar in user defined date field  (Read 1555 times)

damaxl

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
  • CiviCRM version: 4.1.2 DE
  • CMS version: Drupal 7.12 / 7.14
  • MySQL version: 14.12
  • PHP version: 5.2.6
No calendar in user defined date field
September 30, 2011, 10:19:45 am
Hello,

we have an issue in the contact form when putting in data in a user defined date field. There's no calendar opening, when entering the field, however the calendar icon on the right of the field is displayed. In preview mode of the field the calendar is shown.

The next issue, when typing in the date by hand and saving, the date can't be saved. The field will be blank again.
We tried to type in the date in american format as well as in german format with no success.
 
Does anybody have an idea what this could be?

Thanks in advance!

Installation: Drupal 7.8 DE, CiviCRM 4.0.5 german translation

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: No calendar in user defined date field
October 02, 2011, 01:13:00 pm
Can you check via Firebug if you have any JS errors on your page?
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.

damaxl

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
  • CiviCRM version: 4.1.2 DE
  • CMS version: Drupal 7.12 / 7.14
  • MySQL version: 14.12
  • PHP version: 5.2.6
Re: No calendar in user defined date field
October 02, 2011, 04:24:28 pm
Oh dear!  :-\ I didn't thing of this. Ok there are errors after clicking on edit!

First error: There's one sites/default too much. But where does this come from?

"NetworkError: 404 Not Found - http://localhost/sites/default/sites/default/modules/civicrm/packages/ckeditor/ckeditor.js"


Second error: No idea where this comes from

$.datepicker is undefined
    $.datepicker.regional['de'] = {


Third error: subsequent error of first

CKEDITOR is not defined
   if ( CKEDITOR.instances['email_1_signature_html'] ) {



Forth error: Again one sites/default too much.

"NetworkError: 404 Not Found - http://localhost/sites/default/sites/default/modules/civicrm/packages/jquery/css/images/arrow.png"



After that I checked /sites/default/settings.php, but there's no entry with a path that contains /sites/default.
Do we have to set $base_url. Until now it's commented out.

Second check /sites/default/civicrm.settings.php:
$civicrm_root points to the right path and define( 'CIVICRM_UF_BASEURL'      , 'http://localhost/' ); is allright too.
« Last Edit: October 02, 2011, 04:36:52 pm by damaxl »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: No calendar in user defined date field
October 02, 2011, 04:47:48 pm
Where did you put the CiviCRM files? This path:

/sites/default/sites/default/modules/civicrm/packages/ckeditor/ckeditor.js

is not standard. The standard place to put CiviCRM (and any add-on module as well) is in sites/all/modules

I would suggest you move CiviCRM there and then flush all caches.
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.

damaxl

  • I post occasionally
  • **
  • Posts: 46
  • Karma: 0
  • CiviCRM version: 4.1.2 DE
  • CMS version: Drupal 7.12 / 7.14
  • MySQL version: 14.12
  • PHP version: 5.2.6
Re: No calendar in user defined date field
October 03, 2011, 03:07:30 am
Hello Hershel,

because of a central installation of Drupal with symlinks pointing to only one Drupal source, I can't put specific modules into the /sites/all directory to avoid that all sites use CiviCRM.
The installation in /sites/default works well so far.

At least I think I was able to solve the problems. We did move the drupal installation from /drupal to / four weeks ago with help of
http://wiki.civicrm.org/confluence/display/CRMDOC40/Moving+an+Existing+Installation+to+a+New+Server+or+Location

In topic 6 they write Delete files with cached settings and in fact, after doing topic 6 to 10 once more, everything works well. I'm afraid I have overlooked something.

But unfortunately there are still errors left:

First error
$.datepicker is undefined
    $.datepicker.regional['de'] = {

Does somebody know where to set this parameter?

Second Error
NetworkError: 404 Not Found - http:// localhost/sites/default/modules/civicrm/packages/jquery/jquery-ui-1.8.11/css/custom-theme/images/ui-bg_flat_40_70716b_40x100.png
I checked /sites/default/modules/civicrm/packages/jquery/jquery-ui-1.8.11/css/ and there is no subdirectory custom-theme. Does anybody know, where it could be found? Do I have to install something?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: No calendar in user defined date field
October 03, 2011, 05:29:20 am
I think this is a bug. Issue filed: http://issues.civicrm.org/jira/browse/CRM-8970
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.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: No calendar in user defined date field
October 05, 2011, 04:23:08 am
Please review the issue above, as it's marked as Resolved now.
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • No calendar in user defined date field

This forum was archived on 2017-11-26.