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 CiviEvent (Moderator: Yashodha Chaku) »
  • Double trouble!
Pages: [1] 2

Author Topic: Double trouble!  (Read 3680 times)

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Double trouble!
March 09, 2011, 12:28:10 pm
Hi,
I'm trying to create a new event. This was possible before, but after integrating with the Drupal modules Date and Calendar, it seems that changing from standard date to the actual start date is impossible?! According to firebug, the date-field is read-only! Only the time-field is editable.   :o

Also, if I create an event using the default date, and then try to edit the date later, using the "Info and Settings" link from the "Manage event" page, I get an un-themed page? ???

What is it that I have done wrong?  :-\

I've read the post http://forum.civicrm.org/index.php/topic,13209.msg56672.html#msg56672, and consequently deleted the template_c catalog's content, but no sigar for me...  :'(
Sadly, I could not find any other forum topics or google hits on anything that resembled my problems...

So, has anyone seen this kind of problem before, and managed to come up with a good solution?
I should say I'm using the newest version of both Drupal and CiviCRM, and has not changed from the standard Drupal theme, Garland.

Really, any help at all is very very very much appreciated!

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Double trouble!
March 10, 2011, 11:54:43 am
Ok, I probably was a bit imprecise at one point... Guess I was a bit "out of myself" due to the frustration of this not working as it should, even after several days of googling and searching through the module files... Bah  :-\

I'm using:
  • drupal 6.20
  • civicrm 3.3.5
  • views 6.x-2.12
  • Date 6.x-2.7
  • Calendar 6.x-2.4
All other modules are also of the currently most recent versions, but I do not know if they need be mentioned?

Again, any help at all is more than appreciated!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Double trouble!
March 10, 2011, 12:47:37 pm
You are saying that the date field when creating an event in CiviCRM is read-only?

If not, please clarify which page and which field.
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.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Double trouble!
March 11, 2011, 10:54:15 am
Quote from: hershel on March 10, 2011, 12:47:37 pm
You are saying that the date field when creating an event in CiviCRM is read-only?

Yes, that is correct!  :) At least, I cannot edit the field (except from clearing it with the "clear"-link to the right of the date/time fields), and then if inspecting the HTML element with firebug, it shows as a read-only field.

And also, when trying to edit an event, the theme I'm using is mysteriously vanished? It is all very confusing..

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Double trouble!
March 13, 2011, 04:11:15 am
Hmm, I do not know. Perhaps try disabling the other modules one at a time and see if you can pinpoint the issue. It sounds odd.
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.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Double trouble!
March 13, 2011, 04:28:54 am
I've actually tried that by now, but still no luck.. :/

I was looking at the advanced Date preferences though, and was wondering if it may be something there? What I've got in this list per now is:

  • activityDate
  • activityDateTime
  • birth
  • creditCard
  • custom
  • mailing
  • searchDate

Do you know if there may be some event-date format missing? Or is it perhaps "covered" in the activityDate or activityDateTime?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Double trouble!
March 13, 2011, 04:31:29 am
To see if anything is missing or unusual in your install, compare to the demo: http://drupal.demo.civicrm.org/

You also tried using Garland as your theme to see if that helps?
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.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Double trouble!
March 13, 2011, 04:44:00 am
Oh! That was new to me :) Knew about the demo site of course, but never thought about if it could be useful for debugging errors :D

I see that the date field on the demo site is of class="dateplugin hasDatepicker", while my own is of class="dateplugin". Don't know, but that sounds to me like it could be the problem? I am however totally unaware of how to fix that...

I also see that the date is covered by activityDateTime, so the format should be ok...

Any ideas? Btw, thanks a lot for helping! :)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Double trouble!
March 13, 2011, 04:56:53 am
What I would do next is search all of this site's code (modules and themes etc.) for the text "hasDatepicker." I ran the same search in a 3.3.5 CiviCRM code base and found it four times:

Code: [Select]
packages/jquery/jquery-ui-1.8.5/js/jquery-ui-1.8.5.custom.min.js:b);for(var c in b)if(b[c]==null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.5"}});var y=(new Date).getTime();d.extend(L.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=
packages/jquery/jquery-ui-1.8.5/development-bundle/ui/jquery.ui.datepicker.js: markerClassName: 'hasDatepicker',
packages/jquery/jquery-ui-1.8.5/development-bundle/ui/minified/jquery.ui.datepicker.min.js:b);for(var c in b)if(b[c]==null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.5"}});var y=(new Date).getTime();d.extend(L.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=
packages/jquery/jquery-ui-1.8.5/development-bundle/ui/jquery-ui-1.8.5.custom.js: markerClassName: 'hasDatepicker',

I would check yours to see you have those files actually.
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.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Double trouble!
March 13, 2011, 10:50:16 am
Humm.. Sorry for having to leave, it was my wife calling, so in order to maintain home peace.. Well, I guess you figure..  ::)

Anyway, I'm back "at the job", and still struggling. I searched for the files you mention, and they're all there.
There also were some similar files on other locations. Do you think that could cause trouble?

I believe that there is some database trouble, but I have no backing for that statement. And I haven't got a faintest clue as to where to look, I'm afraid.. I am using Garland by the way. Haven't changed from the standard theme, other than for a moment to check if that would "cure" this and other problems I had before. It never did, so I've stuck to Garland all the way for now.

It is all very peculiar this. And probably as always when things are really really difficult to figure out, the answer is quite simple. Time will show, I guess...  :-\

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Double trouble!
March 13, 2011, 11:12:40 am
So then run my search on your codebase and see what it shows. If you have Linux (desktop or ssh to the server) run:

Code: [Select]
grep -r 'hasDatepicker' *
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.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Double trouble!
March 14, 2011, 01:37:24 pm
Sorry, I probably wasn't too clear.. I did the search, and found all the files you mention. Unfortunately, I haven't as of yet ssh possibilities on the webhotel that I'm using, so I did a very freaky download of all files to my local computer and did the search there (on windows7. I know, I know, but the computer I'm using is bought and paid for by the company that I work for, so, no Linux...).

Anyway, as I said in my previous post, all files were there, and even a few more with the same name, but in different folders.

Do you think that more files will create a problem?

I attached an image of the result of the search. Couldn't figure out how to copy-paste the result on Windows...

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Double trouble!
March 14, 2011, 01:44:42 pm
All those files have 'hasDatepicker' in them?

I would consider replacing your CiviCRM files, just to be sure. I would REMOVE what you have and replace with a fresh copy.
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.

Vandalf

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 0
Re: Double trouble!
March 14, 2011, 02:19:18 pm
Wouldn't that remove what is currently in the system? I mean config's that has been made and such?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Double trouble!
March 14, 2011, 02:21:45 pm
No sir, not at all. Config files are in sites/default. Core files are in sites/all/modules and it's 100% safe to replace them. Delete them first to avoid any double files, just in case...
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] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Double trouble!

This forum was archived on 2017-11-26.