I am getting the same error as in #2468589: Undefined index in date_repeat_merge() in date_repeat_form.inc . At first I thought this might be a Date module problem, but the OP mentioned he is using open atrium too. And he mentions "Seems to be a problem with the Drupal "Edit node" page not producing the correct form submission data." Don't know if that's due to openatrium though. Will investigate further, but just wanted to let you know (and get a drupal issue# for my own uses.)

Quick&dirty steps to reproduce:
plan an event, check 'repeats', repeats: 'Monthly' , on the 'Nth' , check some months.
Save -> wait -> WSOD + following error in dblog + content is not saved.

Notice: Undefined index: BYDAY_DAY in date_repeat_merge() (line 833 of /home/marck/workspaces/intranet/httpdocs/profiles/openatrium/modules/contrib/date/date_repeat/date_repeat_form.inc).

Comments

firfin’s picture

StatusFileSize
new7.15 KB
new8.65 KB

I was able to reproduce this on a clean install. Part of the problem seems to be that the 'day' selection part of the form doesn't show up, so naturally it isn't filled out either.

Steps to reproduce:
- Create content -> Event
- Check 'repeat' in the 'event date' settings
- set 'Repeats' to monthly (or yearly)
- The select form element for the day is missing.

I have attached screenshots.

Missing select (from another site where date is installed)
<select id="edit-field-date-und-0-rrule-monthly-byday-bymonth-child-byday-day" name="field_date[und][0][rrule][monthly][BYDAY_BYMONTH_child][BYDAY_DAY]" class="form-select"><option value="SU">Sunday</option><option value="MO">Monday</option><option value="TU">Tuesday</option><option value="WE">Wednesday</option><option value="TH">Thursday</option><option value="FR">Friday</option><option value="SA">Saturday</option></select>

mpotter’s picture

Not sure what would be causing this. We don't do anything specific in Atrium to hide that field. But I reproduced the issue. In the HTML I can see a Label for the missing field where the Select input is missing. Anybody have a clue why this might happening? Is this a known issue in the date module? Or maybe something the base Radix theme is doing?

firfin’s picture

Title: Errors when planning repatable events on Nth day of month » Errors when planning repeatable events on Nth day of month
camhoward’s picture

I ran into this issue on a new OA 2.44 install today. I tried to create a repeating event on the first Monday of each month and there is no select list for the day of the week.

Following mpotter's question about "maybe something the base Radix theme is doing?" I changed them theme to Bartik and the day of the week select list promptly displayed when creating or editing an event with a repeating schedule.

When I switched back to the Open Atrium Radix 7.x-3.15 (default theme) the repeating dates displayed correctly on the calendar but the day of the week drop down no longer displayed when editing the event.

So it does appear it may be theme-related. Any thoughts on how to fix it?

mpotter’s picture

Status: Active » Fixed

Thanks for narrowing this down to the theme. Turns out it was a bug in the Radix base theme. I posted this issue: #2568163: radix_form_element doesn't handle #title_display "after" correctly to the Radix queue and came up with a patch that is added in commit d210ead to oa_radix.

camhoward’s picture

Hi Mike,

Thanks very much for the quick patch in #2568163: radix_form_element doesn't handle #title_display "after" correctly! It works for me when applied to Open Atrium 2.44.

Cam

Status: Fixed » Closed (fixed)

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