Error 500 creating a calendar newsfeed view with ical

Created on 16 September 2024, 2 months ago

Problem/Motivation

I got a calendar view using views (date iCal module included) both as block and website working perfectly. Whenever I'm adding an iCal feed, I get an error 500.

Steps to reproduce

Adding a newsfeed is ok, at the moment I change the type of feed from "newsfeed" to "iCal feed", the system tells me: "Oops, something went wrong. Check your browser's developer console for more details."

Logfile shows

"Error: Class "Kigkonsult\Icalcreator\Vcalendar" not found in Drupal\date_ical\DateICal->feed() (line 24 of /hp/av/aa/bp/www/mysitename/modules/date_ical/src/DateICal.php)."

Developer tools tells me

"Failed to load resource: the server responded with a status of 500"

Tracing says:

#0 /hp/av/aa/bp/www/mysitename/modules/date_ical/src/Plugin/views/style/DateIcal.php(274): Drupal\date_ical\DateICal->feed(Array, Array)
#1 /hp/av/aa/bp/www/mysitename/core/modules/views/src/Plugin/views/display/Feed.php(191): Drupal\date_ical\Plugin\views\style\DateIcal->render(Array)
#2 /hp/av/aa/bp/www/mysitename/core/modules/views/src/ViewExecutable.php(1592): Drupal\views\Plugin\views\display\Feed->render()
#3 /hp/av/aa/bp/www/mysitename/core/modules/views/src/Plugin/views/display/Feed.php(167): Drupal\views\ViewExecutable->render()
#4 /hp/av/aa/bp/www/mysitename/core/modules/views/src/ViewExecutable.php(1689): Drupal\views\Plugin\views\display\Feed->execute()
#5 /hp/av/aa/bp/www/mysitename/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay('feed_1', Array)
#6 [internal function]: Drupal\views\Element\View::preRenderViewElement(Array)
#7 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(113): call_user_func_array(Array, Array)
#8 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/Render/Renderer.php(870): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#9 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/Render/Renderer.php(432): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
#10 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/Render/Renderer.php(248): Drupal\Core\Render\Renderer->doRender(Array, true)
#11 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/Render/Renderer.php(153): Drupal\Core\Render\Renderer->render(Array, true)
#12 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}()
#13 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/Render/Renderer.php(152): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#14 /hp/av/aa/bp/www/mysitename/core/modules/views/src/Plugin/views/display/Feed.php(110): Drupal\Core\Render\Renderer->renderRoot(Array)
#15 /hp/av/aa/bp/www/mysitename/core/modules/views/src/Routing/ViewPageController.php(56): Drupal\views\Plugin\views\display\Feed::buildResponse('termine', 'feed_1', Array)
#16 [internal function]: Drupal\views\Routing\ViewPageController->handle('termine', 'feed_1', Object(Drupal\Core\Routing\RouteMatch))
#17 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#18 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#19 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#20 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#21 /hp/av/aa/bp/www/mysitename/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#22 /hp/av/aa/bp/www/mysitename/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#23 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /hp/av/aa/bp/www/mysitename/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /hp/av/aa/bp/www/mysitename/core/modules/page_cache/src/StackMiddleware/PageCache.php(191): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /hp/av/aa/bp/www/mysitename/core/modules/page_cache/src/StackMiddleware/PageCache.php(128): Drupal\page_cache\StackMiddleware\PageCache->fetch(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /hp/av/aa/bp/www/mysitename/core/modules/page_cache/src/StackMiddleware/PageCache.php(82): Drupal\page_cache\StackMiddleware\PageCache->lookup(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /hp/av/aa/bp/www/mysitename/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /hp/av/aa/bp/www/mysitename/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#36 {main}

Any ideas?

Kind regards,
Frank

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ’¬ Support request
Status

Active

Version

4.0

Component
ViewsΒ  β†’

Last updated about 14 hours ago

Created by

πŸ‡©πŸ‡ͺGermany silverknight1971

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024