I got this error in some of the nodes of my website:

Notice: Trying to get property of non-object in calendar_systems_form_alter()‎ (line 334 in /sites/all/modules/calendar_systems/calendar_systems.module

If you google it, you may find a lot of sites with similar issue.
I think it must have a simple solution.

Comments

sinasalek’s picture

Status: Active » Postponed (maintainer needs more info)

The information you provided is not enough to find the problem. try it on a clean Drupal installation

behzad’s picture

Clearing Drupal cache solved your problem.

Sirote’s picture

- Add the following code right after "$timezones = &$drupal_static_fast['timezones'];" in "/includes/common.inc" file

// Calendar Systems module new hook (The actual hook is hook_format_date this one is only a workaround to 
  // prevent incompatibility with modules that already have a function called module_name_format_date)
  foreach (module_implements('format_date_calendar_systems') AS $module) {
    $function = $module .'_format_date_calendar_systems';
    $r = $function($timestamp, $type, $format, $timezone, $langcode);
    
    if ($r != FALSE) {
      return $r;
    }
  }
sinasalek’s picture

#2563773: Calendar Systems Module Bug Closed as duplicated of this issue

sinasalek’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
sinasalek’s picture

Status: Closed (duplicate) » Closed (fixed)

Fixed, you can the latest dev snapshot when it became available (within an hour)

sinasalek’s picture

sinasalek’s picture

sinasalek’s picture

sinasalek’s picture