Comments

gerhardbaumeister’s picture

StatusFileSize
new59.07 KB

and here the different SQL-Statements with the missing where-clause.
See attachment

and the php-error-message:

Notice: Undefined index: field_data_field_termin.field_termin_value_value in date_views_argument_handler->admin_summary() (Zeile 110 von /var/www/html/drupal/sites/all/modules/date/date_views/includes/date_views_argument_handler.inc).

gerhardbaumeister’s picture

Component: Miscellaneous » Code
StatusFileSize
new215.27 KB

Did an update today, but the same behavior.

ctools 7.x-1.x-dev 2011-Mar-17
views 7.x-3.x-dev 2011-Mar-18
date 7.x-2.x-dev 2011-Mar-14
calendar 7.x-2.x-dev 2011-Mar-14

see attachment.

Anticosti’s picture

Same issue/setup here
Subscribing...

gerhardbaumeister’s picture

Priority: Normal » Major
StatusFileSize
new346.29 KB

Calendar for english sites only?

Update

ctools 7.x-1.x-dev 2011-Mar-19
views 7.x-3.x-dev 2011-Mar-20
date 7.x-2.x-dev 2011-Mar-20
calendar 7.x-2.x-dev 2011-Mar-14

does not work on localized sites.
See attachement.

Webgrafic’s picture

Same problem with:

ctools 7.x-1.x-dev 2011-Mar-19
views 7.x-3.x-dev 2011-Mar-21
date 7.x-2.x-dev 2011-Mar-21
calendar 7.x-2.x-dev 2011-Mar-21

gerhardbaumeister’s picture

Update

Same problem with:

ctools 7.x-1.x-dev 2011-Mar-19
views 7.x-3.x-dev 2011-Mar-22
date 7.x-2.x-dev 2011-Mar-21
calendar 7.x-2.x-dev 2011-Mar-21

Tahiera’s picture

ctools 7.x-1.0-alpha3

views 7.x-3.x-alpha1

date 7.x-2.0-alpha1

calendar 7.x-2.x-dev

I enabled the core Locale module but did not configure it at all.
I did not enable Content translation.

Suddenly, no events showed up in my calendar in any view.

My date field is called field_date. In Views, when I went to add it under arguments, it had two tickboxes for fields instead of one:
Fields: field_date (field_date) - value
Fields: field_date (field_date) - value2

I tried adding a new date field, but again it appeared twice.

I disabled the Locale module.
Now my calendar events appear in Month view only,
And underneath the eventname it says 'field_date' instead of displaying a date.

Edit: I just noticed that all the dates on the calendar were also moved back one day. It may be a Date issue.

gerhardbaumeister’s picture

In the meantime i think, we adress the wrong module.

That might be a issue of views or date or locale. But i´m new to Drupal and not able to understand or debug php.
So i don´t know where to post this issue. I don´t want to crosspost.
It would be nice, if the maintainer gives us a hint, where to post this issue to get the propper attention.
I appreciate the work of the maintainers and i would like to support and test as much as i can. But without any request for more info, all i can do so far, is to update the modules daily and check the issue. But I´m on pins and needles, because i can´t go into production with my site as long as this issue exist.

The latest views module has no impact.
The same bahavior with:

ctools 7.x-1.x-dev 2011-Mar-19
views 7.x-3.x-dev 2011-Mar-23
date 7.x-2.x-dev 2011-Mar-21
calendar 7.x-2.x-dev 2011-Mar-21

Hope an expert can adress the right module.

syntax-2’s picture

Look at this: http://drupal.org/node/1101186
It's very similar problem...

clauded’s picture

subscribing

gerhardbaumeister’s picture

Did a little research to related issues.
Hope this helps to localize the Problem.

http://drupal.org/node/1102664
Related to Date
issue with multi-language, switching the Language to German

http://drupal.org/node/1091128
Related to Calendar
closed(duplicate) to this thread

http://drupal.org/node/1091022
Related to Calendar
seems to be a duplicate to this thread

http://drupal.org/node/1103564
Related to Views
Talks about CCK Data field, don´t know if this match to this tread

http://drupal.org/node/1090196
Related to Calendar
KarenS set the category to support request but Problem with site language still exist

http://drupal.org/node/1101896
Related to Calendar
no options FOR a date argument

http://drupal.org/node/1033464
Related to Calendar
datetime field is not showing up under the "Date Fields" check boxes

http://drupal.org/node/1011624
Related to Date
Automatically closed -- issue fixed for 2 weeks with no activity
But not solved

http://drupal.org/node/1102258
Related to Date
KarenS set this to fixed, but did´nt respond to the language issue

gerhardbaumeister’s picture

StatusFileSize
new166.18 KB

And here another Groundhog Day:

Updated to:

ENTITY 7.x-1.0-beta8 2011-Mar-21
CTOOLS 7.x-1.x-dev 2011-Mar-24
VIEWS 7.x-3.x-dev 2011-Mar-24
DATE 7.x-2.x-dev 2011-Mar-23
CALENDAR 7.x-2.x-dev 2011-Mar-24

with no result

clauded’s picture

I think we have more than one problem here and probably more than one module is affected :

1-when using a different language from english, we can't select date fields in views contextual filter's
2-displaying a calender view that's working fine in english in another language will display errors like :

Notice : Undefined index: field_data_field_date_evenement.field_date_evenement_value_value dans calendar_build_nodes() (ligne 603 dans /var/www/ccqm/sites/all/modules/calendar/calendar.module).
Notice : Undefined index: field_data_field_date_evenement.field_date_evenement_value_value dans calendar_build_nodes() (ligne 613 dans /var/www/ccqm/sites/all/modules/calendar/calendar.module).

Also note that when switching languages, only events created for that language will be displayed (I guess that's normal behavior).

gerhardbaumeister’s picture

@clauded
"Also note that when switching languages, only events created for that language will be displayed (I guess that's normal behavior)."

That´s why i posted http://drupal.org/node/1103982.
If this would be a normal behavior, what about multi-language sites? The events will be grouped by languages?

I would be glad to solve the first issue:

"1-when using a different language from english, we can't select date fields in views contextual filter's"

syntax-2’s picture

I've solved this problem with reloading language translation file for Views module with small modification #1103564: No CCK date fields in Contextual filters after local translation is installed

gerhardbaumeister’s picture

@syntax

Thanks for your suggestion.

I hope there is another way than the localized name to identify Date-fields for building the Form .

But I will give it a chance. Can you please give me the exact path of your po-file? It seems i have no translation file for the views module installed.

And can you give me a similar screenshot like mine in #12 - about the contextual Filter, one in english and one in polish?

Is there another one who had sucess with @syntax´s hack?

Tried to get into debugging with drupal for firebug - but wasted hours. Can´t manage this yet. Seems to be a long way to be able to understand what happens.

syntax-2’s picture

StatusFileSize
new122.25 KB
new144.71 KB

@gerhardbaumeister

My screenshots was exactly like yours. I have two date values (generated by Date Tools with Callendar)

Fields: Date (field_date) - value
Fields: Date (field_date) - value2

I prepared German *.po file for you, try it first ;-) My, Polish, is attached too.

Don't forget check option: Strings in the uploaded file replace existing ones, new ones are added. The plural format is updated.

It works: http://hdrsoft.pl/calendar-date :-)

clauded’s picture

@gerhardbaumeister
If you have a multi-language site, you will have have to create one event for each language. So if your site is in english and german, you will create two events at the same date/time but in different language (this make sense if you want to display events in different language otherwise how do you translate this?). On the other hand, maybe an option in the calendar or the view module to ignore language would help...

gerhardbaumeister’s picture

StatusFileSize
new24.71 KB

@syntax
unbelievable - your workaround works :-)

That should be a very valuable hint for the maintainer to fix the problem.

Thank you very much for your support.

The main question still remains:

Why depends the List of possible fields with the type node(date) in the Form contextual filters on the translation (respectively no translation) of the msgid "Fields" in Drupal localized sites?

gerhardbaumeister’s picture

@clauded
i think that´s offtopic in this thread.
Let´s got to http://drupal.org/node/1103982 for the multilanguage dates.

boobaa’s picture

Status: Active » Needs review
StatusFileSize
new602 bytes

Attached patch solves this issue at the roots: date_views.module is the one responsible for this nasty bug.

clauded’s picture

Awsome! Patch #21 solves everything for me. Thanks!

boobaa’s picture

Project: Calendar » Date

Whoops, looks like I've forgotten to submit it to the _proper_ queue.

arlinsandbulte’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

andrenoronha’s picture

I'm kinda confused.

I dont know what happened to the calendar view, but everytime i try to edit it I get a white page with error messages like:

Notice: Undefined property: date_views_argument_handler::$granularity in calendar_plugin_style->query()

and i cant edit the view.

I have desactivated and uninstalled the calendar and date views modules and still get these errors.

My modules versions:

Calendar: 7.x-2.0-alpha1
Date: 7.x-2.x-dev 2011-Apr-30
Views: 7.x-3.0-beta3
CTools: 7.x-1.0-alpha4

what am I missing here?

thanks

arlinsandbulte’s picture

@a.luiz.n
Use the latest -dev versions. Some of those alphas and betas are more than a month old, and there have been lots of changes since then.

andrenoronha’s picture

I'm using now the latest dev version of the 4 of them.
And when I try to edit the calendar view I get a white page. When I press the back button I got error messages like:

Notice: Undefined property: date_views_argument_handler::$granularity in calendar_plugin_style->query()

I have also unstalled views...

I dont know what's wrong.
At my local site it's working...
I dont know what's the difference... php version? database?

andrenoronha’s picture

Hey, nevermind.
I exported the good views from my local site and imported in my production one.

Thanks =]

andreas.klein’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha1
StatusFileSize
new2.4 KB

Works for me with modules versions:

Calendar: 7.x-1.0-alpha3
Date: 7.x-2.0-alpha1
Views: 7.x-3.0-alpha1
CTools: 7.x-1.0-alpha2

i attache the date_views/includes/date_views_fields.inc file. Just replace..
For good practice visit this tutorial:
http://www.drupaltherapy.com/date_d7

regards from germany..

alienzed’s picture

I just want to confirm that in all the latest dev versions, this is still broken. I'd be happy to provide debug info, but I'm assuming it's a known issue given the attention it's being given...

andreas.klein’s picture

subscribe

frist’s picture

subscribing

eglobal’s picture

StatusFileSize
new1.77 KB

Here is another version of data_views_field.inc file that worked for me. Almost the same as posted in 5/10. might be the upgrade?

fuse’s picture

Status: Closed (fixed) » Needs work

Latest dev version of Date module still gives problems with "locale".
No custom CCK date fields show up in the views contextual filter Date fields(s).

The following line of code is the cause:

 if ($handler->definition['group'] == t('Content') && isset($handler->definition['field_name'])) {

If I check the value for $handler->definition['group'] is says 'Inhoud' (dutch translation for "Content") but although de "Content" string is translated a var_dump() of t('Content') still gives 'Content' as its translation.

I am not sure how to slove this issue.

fuse’s picture

I found out that "administration language" module is causing the problem. When selecting "Administration pages (admin) " as option, the date view breaks.

Not sure if this is a "date" or "adaministration language" issue.

karens’s picture

Status: Needs work » Fixed

I tried changing the method of identifying Field module fields in the field list to eliminate the dependency on the group name. In addition to problems with translations it might miss other field values that use different group names.

Status: Fixed » Closed (fixed)
Issue tags: -calendar view argument localized

Automatically closed -- issue fixed for 2 weeks with no activity.