You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a feed for a calendar was created but the calendar has since deleted, when you try to go into the Feed Me section of the control panel you get the following error (in dev mode):
Solspace\Calendar\Variables\CalendarVariable::calendar(): Return value must be of type ?Solspace\Calendar\Models\CalendarModel, false returned
in /var/www/vendor/solspace/craft-calendar/packages/plugin/src/Variables/CalendarVariable.php at line 171
Full stack trace below.
Steps to reproduce
Have both Feed Me and Solspace Calendar plugin installed.
Create a calendar.
Create a feed for that calendar and save it.
Delete the calendar.
Open the Feed Me section in the control panel.
Additional info
Craft version: 5.5.10
PHP version: 8.3.10
Database driver & version: MySQL 8.0.32
Plugins & versions: Calendar Pro 5.0.13 and Feed Me 6.6.1
Hi, thanks for getting in touch! This should ideally be fixed by Solspace. Can you please raise this with Solspace in their Calendar plugin repo?
The error occurs because the calendar() method in the CalendarVariable is typed to return null or CalendarModel, but using a reset() on an empty array will return false.
Description
If a feed for a calendar was created but the calendar has since deleted, when you try to go into the Feed Me section of the control panel you get the following error (in dev mode):
Full stack trace below.
Steps to reproduce
Additional info
Full Stack Trace:
The text was updated successfully, but these errors were encountered: