When I goto the admin/config/content/scheduler and hit save, I get the following:

Date format cannot be longer than 20 characters but is currently 21 characters long.
Default time cannot be longer than 20 characters but is currently 22 characters long.

Notice: Use of undefined constant SCHEDULER_DATE_FORMAT - assumed 'SCHEDULER_DATE_FORMAT' in scheduler_admin() (line 12 of modules/all/scheduler/scheduler.admin.inc).
Notice: Use of undefined constant SCHEDULER_DATE_FORMAT - assumed 'SCHEDULER_DATE_FORMAT' in scheduler_admin() (line 16 of modules/all/scheduler/scheduler.admin.inc).
Notice: Use of undefined constant SCHEDULER_DATE_LETTERS - assumed 'SCHEDULER_DATE_LETTERS' in scheduler_admin() (line 22 of modules/all/scheduler/scheduler.admin.inc).
Notice: Use of undefined constant SCHEDULER_TIME_LETTERS - assumed 'SCHEDULER_TIME_LETTERS' in scheduler_admin() (line 23 of modules/all/scheduler/scheduler.admin.inc).
Notice: Use of undefined constant SCHEDULER_DEFAULT_TIME - assumed 'SCHEDULER_DEFAULT_TIME' in scheduler_admin() (line 84 of modules/all/scheduler/scheduler.admin.inc).

Comments

SocialNicheGuru created an issue. See original summary.

jonathan1055’s picture

Title: Date format cannot be longer than 20 characters but is currently 21 characters long. » Undefined constant SCHEDULER_DATE_FORMAT

Hi SocialNicheGuru,
Thanks for reporting this, sorry you are having a problem. This is a strange bug, because it works fine for me (obviously) - an error such as missing constants would be impossible to ignore. I have changed the title, as the message is simply counting the string length of the contant name, which becomes the assumed value.

So, we need to find out why your constants are not being defined. Some questions:

  1. You set the issue version as 7.x-1.x-dev, is that actually the version you are using? or are you on the old 7.x-1.3 or maybe you have just upgraded to 1.4?
  2. What version of Drupal and PHP are you using?
  3. When you go to admin/config/content/scheduler did you see the full correct page with all entries? If so, what value ia shown in the 'date entry' field?
  4. Does this happen for you on a clean fresh install of Drupal7 and Scheduler (if you have the means to try that)

It must be something to do with your environment / set-up / othe modules, as there is nothing directly wrong with the definition of these constants in the code.
Jonathan

jonathan1055’s picture

Status: Active » Closed (works as designed)

Closing this as no response in two months.