Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
KarenS CreditAttribution: KarenS commentedI 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.
Comment #2
roninsa CreditAttribution: roninsa commentedHi 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.
Comment #3
skolesnyk CreditAttribution: skolesnyk commentedRoninsa, 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. "
Comment #4
KarenS CreditAttribution: KarenS commentedYes, 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.
Comment #5
skolesnyk CreditAttribution: skolesnyk commentedHow 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.
Comment #6
KarenS CreditAttribution: KarenS commentedEach 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.
Comment #7
skolesnyk CreditAttribution: skolesnyk commentedMy 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.
Comment #8
KarenS CreditAttribution: KarenS commentedYou will have to move to 7.3 anyway. I am not spending time debugging 7.2 problems, I just don't have time.
Comment #9
skolesnyk CreditAttribution: skolesnyk commentedOk. Do you think 7.3x-dev is ready to be deployed for production site?
Comment #10
KarenS CreditAttribution: KarenS commentedNeither 7.2 nor 7.3 are marked as production-ready, but 7.3 is at least as good as 7.2.
Comment #11
xlyz CreditAttribution: xlyz commentedsubscribing
Comment #13
pacome CreditAttribution: pacome commentedsubscribing
Comment #14
skolesnyk CreditAttribution: skolesnyk commentedAFAIK, developer suggested moving on to 3.x-dev.
Comment #15
rsgracey CreditAttribution: rsgracey commentedStill having this issue, too.
Comment #16
sokrplare CreditAttribution: sokrplare commentedI'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!