Hi,

I'm using Drupal 7.26, Date 2.7, subuser 2.0-alpha3

I've date field (field_date) in one of the user profile (created using profile2 module), which accepts date and time from user. In the project I'm working on some user roles (promoter) has access to create new user account. If Admin or user with administer permissions is creating an account and settings field_date value as custom date and time it allows user creation. But if user with role as promoter and normal access to create user tries creating a new user and set custom date and time in field_date field date module throws an error as below:

Notice: Undefined index: time in date_popup_input_date() (line 536 of /var/www/drupal/sites/all/modules/contrib/date/date_popup/date_popup.module).
Notice: Undefined index: time in date_popup_process_time_part() (line 433 of /var/www/drupal/sites/all/modules/contrib/date/date_popup/date_popup.module).

I've tried debugging the input (not debug in detailed) and found that the $element passed to above function doesn't contains time key and its value.

Did anyone found similar issue.

CommentFileSizeAuthor
create-new-user-date-error.png25.39 KByogeshchaugule8
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yogeshchaugule8’s picture

Status: Active » Fixed

I got it working, it was happening only on user registration page not on create content page.

The issue was caused because I've wrap the "roles", "status", and "notify" in $form['account'] with

tag to hide them using hook_form_alter, to fix this I've hide them using CSS.

Status: Fixed » Closed (fixed)

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