Although EOL of Drupal 6 this may could be still helpful for others. While updating to php 5.6 I got the error:

Creating default object from empty value in /path-to-drupal/sites/default/modules/calendar/includes/calendar_plugin_style.inc on line 83.

Comments

osopolar created an issue. See original summary.

osopolar’s picture

osopolar’s picture

Status: Active » Needs review
izmeez’s picture

Status: Needs review » Closed (duplicate)

I am closing this as a duplicate of #999514: Strict warning errors for views plugins. Declaration of calendar_plugin_display_page::options_submit() etc where I have added a patch that may be better to fix this issue in comment #18 of that issue. Thank you.

izmeez’s picture

Status: Closed (duplicate) » Needs review

On closer examination I realize this is a patch that may be for a different issue that I cannot reproduce. I shall restore it to status of needs review.

avpaderno’s picture

Status: Needs review » Closed (outdated)

I am closing this issue, since it's for a Drupal version no longer supported.

izmeez’s picture

Title: Creating default object from empty value in calendar_plugin_style.inc on line 83. » [calendar] Creating default object from empty value in calendar_plugin_style.inc on line 83.
Project: Calendar » Drupal 6 Long Term Support
Version: 6.x-2.x-dev »
Status: Closed (outdated) » Reviewed & tested by the community
Issue tags: +PHP 7.4

The patch in comment #2 is needed and works as expected for warnings with php 5.6 and 7.4 when editing the calendar view. For example editing the calendar view, month view and changing the style calendar settings to use abbreviated names will result in the warning. When the patch is applied the warning does not occur.

The patch looks good and solves the problem.