Hi,
I'm new to this, so I apologize in advance if this is covered somewhere and I just couldn't find it.

I'm running Drupal 5.17 and 5.x-2.0-rc versions of Date and Calendar. I've created a custom field with repetitions and they are showing up correctly in the calendar view, super! (great relief after trying to get this working with Events).

When I try to make an exception to my repeat I get the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in /myserverpath/modules/date/date_repeat/date_repeat_calc.inc on line 409

and nothing is committed.

The date and rule I'm using are:
Repeats every Saturday every week until Sun Apr 19 2009
and I'm trying as a test to put in an except of 2008-04-26

Thanks,
David

Comments

karens’s picture

Status: Active » Fixed

I've made a number of recent changes to the Date Repeat logic and I think this is working correctly in the very latest -dev version.

biscuit.tech’s picture

Thanks, it's sort of fixed using -dev from April 22 for Date and April 23 for Calendar.

I now get this error:

Fatal error: Maximum execution time of 30 seconds exceeded in /myserverpath/includes/common.inc on line 736

Here's the function I have between lines 734 through 761:

function t($string, $args = 0) {
  global $locale;
  if (function_exists('locale') && $locale != 'en') {
    $string = locale($string);
  }
  if (!$args) {
    return $string;
  }
  else {
    // Transform arguments before inserting them
    foreach ($args as $key => $value) {
      switch ($key[0]) {
        // Escaped only
        case '@':
          $args[$key] = check_plain($value);
        break;
        // Escaped and placeholder
        case '%':
        default:
          $args[$key] = theme('placeholder', $value);
          break;
        // Pass-through
        case '!':
      }
    }
    return strtr($string, $args);
  }
}
biscuit.tech’s picture

Sorry for the potential confusion, but when I tried setting another exception I got a different error:

Fatal error: Maximum execution time of 30 seconds exceeded in /myserverpath/modules/date/date_repeat/date_repeat_calc.inc on line 353

- David

biscuit.tech’s picture

Deleting all previously created nodes, deactivating and reinstalling the modules and then adding the nodes back in creates a node that I can now have an exception for.

Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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