Hi, the latest 7.x-2.x-dev release form 18th Jul breaks the calendar module, I get this error:

  • Notice: Undefined property: stdClass::$node.changed in calendar_build_nodes() (linea 686 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Notice: Undefined property: stdClass::$node.changed in calendar_build_nodes() (linea 687 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: DateTime::getTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->__construct() (linea 172 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 225 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setDate(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 226 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTime(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 227 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: date_timezone_set(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 701 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: date_format(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 703 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: DateTime::getTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->__construct() (linea 172 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 225 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setDate(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 226 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTime(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 227 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: date_timezone_set(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 716 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: date_format(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 718 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Notice: Undefined property: stdClass::$node.changed in calendar_build_nodes() (linea 686 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Notice: Undefined property: stdClass::$node.changed in calendar_build_nodes() (linea 687 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: DateTime::getTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->__construct() (linea 172 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 225 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setDate(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 226 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTime(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 227 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: date_timezone_set(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 701 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: date_format(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 703 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: DateTime::getTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->__construct() (linea 172 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 225 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setDate(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 226 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTime(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 227 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: date_timezone_set(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 716 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: date_format(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 718 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Notice: Undefined property: stdClass::$node.changed in calendar_build_nodes() (linea 686 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Notice: Undefined property: stdClass::$node.changed in calendar_build_nodes() (linea 687 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: DateTime::getTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->__construct() (linea 172 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 225 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setDate(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 226 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTime(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 227 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: date_timezone_set(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 701 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: date_format(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 703 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: DateTime::getTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->__construct() (linea 172 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (linea 241 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 225 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setDate(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 226 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: DateTime::setTime(): The DateTime object has not been correctly initialized by its constructor in DateObject->setTimezone() (linea 227 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/date/date_api/date_api.module).
  • Warning: date_timezone_set(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 716 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).
  • Warning: date_format(): The DateTime object has not been correctly initialized by its constructor in calendar_build_nodes() (linea 718 di /home/ao2/public_html/test_site/profiles/d7/modules/contrib/calendar/calendar.module).

using git bisect I came to this commit:

066e132cd67f04677548b146f83c698f156db900 is the first bad commit
commit 066e132cd67f04677548b146f83c698f156db900
Author: Karen Stevenson <karen@elderweb.com>
Date:   Sun Jul 17 14:11:13 2011 -0500

    Issue #1147620 by KarenS with an assist from tim.plunkett, Fix the query so it will locate dates that span days or months by checking the intersection of the date range and the query range. Also add an option to the argument so you can do a simple query for either the from or to date when checking the whole range isn't the right solution.

:040000 040000 28c8298ce06f8d7c97c56473d0277553b9516871 818be63892890d625ddea51181aa69ce4bfe2735 M      date_views

I don't know if the issue needs to be fixed in calendar, but I posted it here because it can be worked around in date with:

git checkout 066e132~1

Thanks,
Antonio

Comments

KarenS’s picture

Status: Active » Postponed (maintainer needs more info)

I am working on the 7.3 version of Calendar, this may break 7.2 further (it is already fairly broken). If you see a problem in the 7.3 version of Calendar, that needs to be addressed. That is going to be the new recommended version very soon.

roninsa’s picture

Hi I updated date to the latest dev version and was experiencing problems with calendar 7.x-2.x-dev similar to what Antonio has previously described. I tired calendar-7.x-3.x-dev version but no block calendar shows. I visit views->calendar to edit and get following error messsages:

Display "Defaults" has an invalid style plugin.

Error: Display calendar_1 refers to a plugin named 'calendar', but that plugin is not available.

skolesnyk’s picture

Roninsa, had the same issue. Then I found out from the Calendar page that 7-3.dev plugins aren't compatible with 7-2.dev and views will have to be recreated from the start. Had to roll back to 7-2.dev.

"Note that it is a major change, the plugins and handlers are changed, so views created in 7.2 won't work in 7.3 and vice versa. "

KarenS’s picture

Status: Postponed (maintainer needs more info) » Fixed

Yes, you have to delete custom calendars and recreate them. If you are using default calendars or calendars created using the Date wizard you just have to revert them.

skolesnyk’s picture

How do you revert them? 'cause after going back from 3.x-dev to 2.x-dev I lost some styling in my calendar navigation plugin. E.g., monthly view block has no style "has-events" for cells days with events.

KarenS’s picture

Each view has options to do things like 'delete', 'disable', 'revert'. For the calendar views you have to select the option to 'revert'. You can't 'go back from 3.x-dev to 2.x-dev', you need to stay on one branch. Go to the 7.3 branch and stay there, don't try to go back and forth.

skolesnyk’s picture

My view was created in 2-x.dev. I mistakenly installed 3-x.dev over 2.x-dev. After seeing 'no plugin' message, I realised error, deleted calendar directory and uploaded 2-x.dev again. That's when css got a bit messed up.

KarenS’s picture

You will have to move to 7.3 anyway. I am not spending time debugging 7.2 problems, I just don't have time.

skolesnyk’s picture

Ok. Do you think 7.3x-dev is ready to be deployed for production site?

KarenS’s picture

Neither 7.2 nor 7.3 are marked as production-ready, but 7.3 is at least as good as 7.2.

xlyz’s picture

subscribing

Status: Fixed » Closed (fixed)

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

pacome’s picture

subscribing

skolesnyk’s picture

AFAIK, developer suggested moving on to 3.x-dev.

rsgracey’s picture

Still having this issue, too.

Warning: DateTime::getTimezone(): The DateTime object has not been correctly initialized by its constructor in DateObject->__construct() (line 273 of /data1/project01/drupal/sites/all/modules/date/date_api/date_api.module).
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (line 365 of /data1/project01/drupal/sites/all/modules/date/date_api/date_api.module).
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (line 365 of /data1/project01/drupal/sites/all/modules/date/date_api/date_api.module).
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (line 365 of /data1/project01/drupal/sites/all/modules/date/date_api/date_api.module).
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (line 365 of /data1/project01/drupal/sites/all/modules/date/date_api/date_api.module).
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (line 365 of /data1/project01/drupal/sites/all/modules/date/date_api/date_api.module).
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (line 365 of /data1/project01/drupal/sites/all/modules/date/date_api/date_api.module).
Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in DateObject->format() (line 365 of /data1/project01/drupal/sites/all/modules/date/date_api/date_api.module).
sokrplare’s picture

I've opened a new issue for this to track - #1605158: Date Context:The DateTime object has not been correctly initialized by its constructor in date_context_date_condition->execute(). If you can comment on the issue with what version of the Date module you're running that would be helpful. Hopefully we can solve it together!