The Website Encountered an Unexpected Error Please Try Again Later Drupal 8 Clear Cache
any attempt to brandish a content with a date field with "add to cal" format trigger the
"The website encountered an unexpected error. Delight try again later."
Delight propose, this module looks exactly to what i was looking for.
give thanks you lot in advance
thierry
Pantheon is proud to support Drupal and open source
marasonterver2002.blogspot.com
Source: https://www.drupal.org/project/addtocal/issues/3192938
Comments
Hi @geufroi - what is the field blazon of your field (date, datetime, daterange, etc)? Could you lot please paste the error log output from /admin/reports/dblog?
hi @wxactly,
thank you for willing to help me on this.
basically I juste created a content type with a "date" field blazon.
then I specified it's a date&time one.
and I apply "add to cal" for the format.
whenever i desire to display a record of such content type I get the white page with the warning.
...
by the way hither 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/core/lib/Drupal/Core/Field/FormatterBase.php(89): Drupal\addtocal\Plugin\Field\FieldFormatter\AddtocalView->viewElements(Object(Drupal\datetime\Plugin\Field\FieldType\DateTimeFieldItemList), 'fr')
#ane /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Entity/Entity/EntityViewDisplay.php(263): Drupal\Core\Field\FormatterBase->view(Object(Drupal\datetime\Plugin\Field\FieldType\DateTimeFieldItemList), 'fr')
#2 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(340): Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple(Assortment)
#iii /Applications/MAMP/htdocs/drupal/core/modules/node/src/NodeViewBuilder.php(24): Drupal\Core\Entity\EntityViewBuilder->buildComponents(Assortment, Array, Array, 'total')
#4 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Entity/EntityViewBuilder.php(282): Drupal\node\NodeViewBuilder->buildComponents(Array, Array, Array, 'full')
#v /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(239): Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array)
#6 [internal role]: Drupal\Core\Entity\EntityViewBuilder->build(Array)
#seven /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
#eight /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Return/Renderer.php(781): Drupal\Core\Render\Renderer->doTrustedCallback(Assortment, Assortment, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#9 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Core/Return/Renderer.php(372): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
#10 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Cadre/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Assortment, false)
#11 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Render/MainContent/HtmlRenderer.php(241): Drupal\Cadre\Render\Renderer->render(Array, imitation)
#12 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Render/Renderer.php(573): Drupal\Cadre\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#13 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(242): Drupal\Cadre\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#14 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Return/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/Cadre/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Assortment, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Cadre\Routing\CurrentRouteMatch))
#sixteen [internal function]: Drupal\Core\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\Outcome\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#18 /Applications/MAMP/htdocs/drupal/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->acceleration(Object(Symfony\Component\HttpKernel\Event\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/cadre/lib/Drupal/Cadre/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), i, truthful)
#21 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), ane, true)
#22 /Applications/MAMP/htdocs/drupal/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Asking), ane, truthful)
#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\Asking), 1, true)
#25 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), i, true)
#26 /Applications/MAMP/htdocs/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Cadre\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Core/DrupalKernel.php(706): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Asking), 1, true)
#28 /Applications/MAMP/htdocs/drupal/index.php(19): Drupal\Cadre\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#29 {main}
Indeed, I installed everything manually.
your postal service is rising hope !
In fact i had besides an issue with the regular module calendar which led to thje same error likewise. May exist this is the same issue.
I will effort with composer.
Thank Y'all VERY MUCH
thierry
hi, i am a consummate newbie with composer.
I did manage to install a regular drupal with composer.
when i run the following command
composer require 'drupal/addtocal:ii.x-dev@dev'
I get this error bulletin
[InvalidArgumentException]
Could not detect 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 do wrong ? thank you ;-)
Sounds like
minimum-stability: stableis set in your composer.json file. You'll need to prepare it todevto install dev branches, or setting it tobetashould permit y'all to install the beta version of this module (composer crave drupal/addtocal:^ii.0@beta).Composer docs here: https://getcomposer.org/doc/04-schema.md#minimum-stability
Nosotros volition be releasing a stable 2.0 version at some point, but hopefully this helps unblock in the meantime :)
hi there,
I indeed managed to use composer properly on my local motorcar and install addtocal eight.x-one.1
I faced both difficulties for me to use properly composer and having upshot with dev or beta version non installing.
I am not knowledgable plenty to experiment with patches.
Cheers to @wxactly and @aritrika.d for reacting to my post.
Comment #11
mmjvb Credit Attribution: mmjvb as 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 only considered when using a proper constraint. Using stability in your constraint overrides minimum stability for your site. No patch needed as the minimum stability in root is the only ane considered.
examples:
ii.10-dev To become that particular branch
^2@dev To get the nearly recent release higher up 2, currently 2.0.0-beta3
^2 To get the most contempo release to a higher place two respecting minimum stability for your site
Although at that place is not need for minimum stability in the module itself, it is non relevant to this back up request. No issues report for this module!
As well recommend to use the proper syntax, rather than the developer shortcut (parcel:version). The proper syntax has a separate version constraint. The shortcut is not recognized everywhere, resulting in the error message when not valid.
Cheers @mmjvb - yeah, this ticket has gone off the rails a fleck. The patch above doesn't do anything to address the original problem, 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 use composer on my prod site.
Comment #xv
mmjvb Credit Attribution: mmjvb equally a volunteer commented
@coaston Assuming you mean Ludwig, it can be used to install any module. It just requires to have an ludwig.json, which you lot tin can provide yourself. Advise to create a support event for that projection requesting a ludwig.json, providing the i you lot created.
@mmjvb thanks, volition practice then.
Just tin can you tell me the binder name where the lib should be downladed? Like /lib/calendar-lists/... only this one does not work.
Comment #17
Greg Boggs
Credit Attribution: Greg Boggs commented
Y'all don't demand to install composer in production. Y'all but need to install composer on your own estimator.
1. Copy your website files to your estimator
ii. Install composer (If you're on windows there'south a downloadable installer)
3. Run composer require drupal/addtocal
four. Copy all the files back to your web hosting
Comment #xviii
mmjvb Credit Attribution: mmjvb every bit a volunteer commented
Again, suggest to create an upshot in the projection you are talking most. Doesn't audio related to this event! Put a link to that issue here.
Perhaps and then it is possible to answer the question you have, currently it doesn't make sense every bit you did not provide the needed details. You lot need to put your question in the right context, otherwise it is anybodies guess.
Yes this one, i got the same error message. But tnx to @devad it has been resolved. Perfect plugin!
Comment #22
mmjvb Credit Attribution: mmjvb as a volunteer commented
Y'all already found the reply to your question, merely for others: modules/[module]/lib/[parcel]/[version]
where packet is [provider]-[library]
[module]: addtocal
[provider]: spatie
[library]: calendar-links
[version]: v1.5.0
.../modules/addtocal/lib/spatie-agenda-links/v1.5.0