The Website Encountered an Unexpected Error. Please Try Again Later. Drupal 8.6.10
any attempt to display a content with a engagement field with "add to cal" format trigger the
"The website encountered an unexpected error. Delight endeavor again subsequently."
Please suggest, this module looks exactly to what i was looking for.
thanks in advance
thierry
Support from Acquia helps fund testing for Drupal
Source: https://www.drupal.org/project/addtocal/issues/3192938
Comments
Hi @geufroi - what is the field type of your field (date, datetime, daterange, etc)? Could you please paste the error log output from /admin/reports/dblog?
howdy @wxactly,
thanks for willing to aid me on this.
basically I juste created a content blazon with a "date" field type.
then I specified it's a date&fourth dimension i.
and I employ "add to cal" for the format.
whenever i want to brandish a record of such content blazon I become the white page with the warning.
...
by the style here is the log output
Error : Class 'Spatie\CalendarLinks\Link' not found dans Drupal\addtocal\Plugin\Field\FieldFormatter\AddtocalView->viewElements() (/Applications/MAMP/htdocs/drupal/modules/addtocal/src/Plugin/Field/FieldFormatter/AddtocalView.php ligne 212)
#0 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Cadre/Field/FormatterBase.php(89): Drupal\addtocal\Plugin\Field\FieldFormatter\AddtocalView->viewElements(Object(Drupal\datetime\Plugin\Field\FieldType\DateTimeFieldItemList), 'fr')
#1 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Cadre/Entity/Entity/EntityViewDisplay.php(263): Drupal\Core\Field\FormatterBase->view(Object(Drupal\datetime\Plugin\Field\FieldType\DateTimeFieldItemList), 'fr')
#ii /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(340): Drupal\Cadre\Entity\Entity\EntityViewDisplay->buildMultiple(Array)
#iii /Applications/MAMP/htdocs/drupal/core/modules/node/src/NodeViewBuilder.php(24): Drupal\Core\Entity\EntityViewBuilder->buildComponents(Array, Array, Array, 'full')
#4 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Cadre/Entity/EntityViewBuilder.php(282): Drupal\node\NodeViewBuilder->buildComponents(Array, Array, Array, 'full')
#5 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(239): Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array)
#6 [internal function]: Drupal\Cadre\Entity\EntityViewBuilder->build(Array)
#seven /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Assortment, Array)
#eight /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Render/Renderer.php(781): Drupal\Core\Return\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#9 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Render/Renderer.php(372): Drupal\Cadre\Return\Renderer->doCallback('#pre_render', Assortment, Array)
#10 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Array, false)
#11 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Render/MainContent/HtmlRenderer.php(241): Drupal\Core\Render\Renderer->render(Assortment, faux)
#12 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Render/Renderer.php(573): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Return\MainContent\{closure}()
#xiii /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(242): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#14 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Cadre/Render/MainContent/HtmlRenderer.php(132): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#fifteen /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Cadre\Render\MainContent\HtmlRenderer->renderResponse(Assortment, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#sixteen [internal function]: Drupal\Cadre\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#17 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#xviii /Applications/MAMP/htdocs/drupal/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Outcome\ViewEvent), 'kernel.view')
#19 /Applications/MAMP/htdocs/drupal/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#20 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Asking), one, true)
#22 /Applications/MAMP/htdocs/drupal/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Cadre\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), ane, true)
#23 /Applications/MAMP/htdocs/drupal/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->laissez passer(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), ane, true)
#25 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Cadre/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /Applications/MAMP/htdocs/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), i, true)
#27 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/DrupalKernel.php(706): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /Applications/MAMP/htdocs/drupal/index.php(nineteen): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Asking))
#29 {main}
Indeed, I installed everything manually.
your post is rising hope !
In fact i had besides an result with the regular module calendar which led to thje same error likewise. May be this is the same issue.
I will attempt with composer.
Cheers VERY MUCH
thierry
hi, i am a complete newbie with composer.
I did manage to install a regular drupal with composer.
when i run the post-obit command
composer crave 'drupal/addtocal:2.x-dev@dev'
I get this error bulletin
[InvalidArgumentException]
Could not observe a matching version of package drupal/addtocal. Check the pac
kage spelling, your version constraint and that the package is available in
a stability which matches your minimum-stability (stable).
what did I exercise incorrect ? thanks ;-)
Sounds like
minimum-stability: stable
is set in your composer.json file. You'll demand to set it todev
to install dev branches, or setting it tobeta
should allow you to install the beta version of this module (composer crave drupal/addtocal:^2.0@beta
).Composer docs hither: https://getcomposer.org/physician/04-schema.medico#minimum-stability
Nosotros volition be releasing a stable 2.0 version at some point, simply hopefully this helps unblock in the meantime :)
howdy there,
I indeed managed to use composer properly on my local machine and install addtocal eight.x-1.1
I faced both difficulties for me to use properly composer and having issue with dev or beta version not installing.
I am not knowledgable enough to experiment with patches.
Thank you to @wxactly and @aritrika.d for reacting to my mail.
Comment #11
mmjvb Credit Attribution: mmjvb every bit a volunteer commented
Really, it is none of the above!
The version constraint used is invalid. You don't mix branch with stability. When using a branch the minimum stability is not relevant. minimum stability is simply considered when using a proper constraint. Using stability in your constraint overrides minimum stability for your site. No patch needed every bit the minimum stability in root is the only i considered.
examples:
2.10-dev To get that detail co-operative
^2@dev To get the most recent release higher up 2, currently 2.0.0-beta3
^2 To get the most contempo release higher up ii respecting minimum stability for your site
Although there is not demand for minimum stability in the module itself, information technology is not relevant to this support asking. No bug report for this module!
Also recommend to use the proper syntax, rather than the developer shortcut (packet:version). The proper syntax has a divide version constraint. The shortcut is not recognized everywhere, resulting in the error message when non valid.
Thanks @mmjvb - yeah, this ticket has gone off the rails a bit. The patch higher up doesn't do annihilation to accost the original trouble, and it sounds similar @geufroi was able to get a stable version of this module working.
Hi all,
is it possible to install calendar-links via Ludviq ? I cannot apply composer on my prod site.
Comment #15
mmjvb Credit Attribution: mmjvb every bit a volunteer commented
@coaston Assuming yous mean Ludwig, information technology tin can exist used to install whatsoever module. It just requires to have an ludwig.json, which yous can provide yourself. Suggest to create a support issue for that project requesting a ludwig.json, providing the one you created.
@mmjvb thank yous, will do so.
Simply can yous tell me the folder name where the lib should be downladed? Like /lib/calendar-lists/... but this one does not work.
Comment #17
Greg Boggs
Credit Attribution: Greg Boggs commented
Y'all don't need to install composer in production. You only need to install composer on your ain estimator.
1. Re-create your website files to your reckoner
2. Install composer (If yous're on windows in that location's a downloadable installer)
iii. Run composer require drupal/addtocal
4. Copy all the files back to your web hosting
Comment #eighteen
mmjvb Credit Attribution: mmjvb as a volunteer commented
Again, suggest to create an upshot in the project y'all are talking about. Doesn't sound related to this issue! Put a link to that issue here.
Maybe then it is possible to answer the question yous have, currently it doesn't brand sense as you did not provide the needed details. You need to put your question in the right context, otherwise it is anybodies gauge.
Yes this one, i got the same mistake message. Only tnx to @devad information technology has been resolved. Perfect plugin!
Comment #22
mmjvb Credit Attribution: mmjvb equally a volunteer commented
Y'all already found the answer to your question, merely for others: modules/[module]/lib/[package]/[version]
where bundle is [provider]-[library]
[module]: addtocal
[provider]: spatie
[library]: calendar-links
[version]: v1.v.0
.../modules/addtocal/lib/spatie-calendar-links/v1.five.0