The Website Encountered an Unexpected Error. Please Try Again Later. After Drupal Install
any effort to display a content with a date field with "add to cal" format trigger the
"The website encountered an unexpected error. Please try again later."
Delight advise, this module looks exactly to what i was looking for.
cheers in advance
thierry
Back up from Acquia helps fund testing for Drupal
Source: https://www.drupal.org/project/addtocal/issues/3192938
Comments
Howdy @geufroi - what is the field type of your field (engagement, datetime, daterange, etc)? Could yous please paste the error log output from /admin/reports/dblog?
hi @wxactly,
thanks for willing to help me on this.
basically I juste created a content type with a "date" field type.
then I specified it'southward a date&fourth dimension one.
and I apply "add to cal" for the format.
whenever i want to display a tape of such content type I go the white page with the alert.
...
by the style here is the log output
Error : Course 'Spatie\CalendarLinks\Link' non 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')
#1 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Core/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(Array)
#3 /Applications/MAMP/htdocs/drupal/core/modules/node/src/NodeViewBuilder.php(24): Drupal\Cadre\Entity\EntityViewBuilder->buildComponents(Array, Array, Array, 'full')
#4 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Entity/EntityViewBuilder.php(282): Drupal\node\NodeViewBuilder->buildComponents(Assortment, Array, Assortment, 'total')
#5 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Core/Entity/EntityViewBuilder.php(239): Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array)
#6 [internal function]: Drupal\Cadre\Entity\EntityViewBuilder->build(Array)
#7 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Assortment, Array)
#8 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Render/Renderer.php(781): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Return #pre_ren...', 'exception', 'Drupal\\Cadre\\Ren...')
#9 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Render/Renderer.php(372): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Assortment)
#x /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Return/Renderer.php(200): Drupal\Core\Render\Renderer->doRender(Assortment, faux)
#eleven /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(241): Drupal\Core\Render\Renderer->return(Assortment, false)
#12 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/Render/Renderer.php(573): Drupal\Cadre\Return\MainContent\HtmlRenderer->Drupal\Cadre\Render\MainContent\{closure}()
#13 /Applications/MAMP/htdocs/drupal/cadre/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/Return/MainContent/HtmlRenderer.php(132): Drupal\Core\Render\MainContent\HtmlRenderer->set up(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#15 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Cadre\Render\MainContent\HtmlRenderer->renderResponse(Assortment, Object(Symfony\Component\HttpFoundation\Asking), Object(Drupal\Core\Routing\CurrentRouteMatch))
#16 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Upshot\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#17 /Applications/MAMP/htdocs/drupal/cadre/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Result\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#18 /Applications/MAMP/htdocs/drupal/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#nineteen /Applications/MAMP/htdocs/drupal/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), one)
#20 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), ane, truthful)
#21 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Cadre\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /Applications/MAMP/htdocs/drupal/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /Applications/MAMP/htdocs/drupal/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(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), i, true)
#25 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), ane, truthful)
#26 /Applications/MAMP/htdocs/drupal/vendor/stack/architect/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /Applications/MAMP/htdocs/drupal/core/lib/Drupal/Cadre/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\Request))
#29 {master}
Indeed, I installed everything manually.
your post is rise hope !
In fact i had also an issue with the regular module calendar which led to thje same error every bit well. May be this is the aforementioned result.
I will try with composer.
Thank you 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 following command
composer require 'drupal/addtocal:two.x-dev@dev'
I get this error message
[InvalidArgumentException]
Could non observe a matching version of bundle drupal/addtocal. Check the pac
kage spelling, your version constraint and that the parcel is bachelor in
a stability which matches your minimum-stability (stable).
what did I do incorrect ? thanks ;-)
Sounds like
minimum-stability: stable
is set up in your composer.json file. You'll need to gear up information technology todev
to install dev branches, or setting information technology tobeta
should permit y'all to install the beta version of this module (composer require drupal/addtocal:^2.0@beta
).Composer docs hither: https://getcomposer.org/doc/04-schema.dr.#minimum-stability
Nosotros volition exist releasing a stable 2.0 version at some signal, simply hopefully this helps unblock in the meantime :)
hi there,
I indeed managed to utilize composer properly on my local machine and install addtocal 8.x-1.ane
I faced both difficulties for me to utilize properly composer and having effect with dev or beta version not installing.
I am non knowledgable enough to experiment with patches.
Thanks to @wxactly and @aritrika.d for reacting to my post.
Comment #xi
mmjvb Credit Attribution: mmjvb as a volunteer commented
Actually, information technology is none of the above!
The version constraint used is invalid. Yous 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 merely one considered.
examples:
ii.ten-dev To go that particular co-operative
^2@dev To become the near recent release above 2, currently 2.0.0-beta3
^2 To go the well-nigh recent release above 2 respecting minimum stability for your site
Although there is non need for minimum stability in the module itself, information technology is not relevant to this back up request. No problems report for this module!
Also recommend to use the proper syntax, rather than the developer shortcut (package:version). The proper syntax has a split version constraint. The shortcut is not recognized everywhere, resulting in the mistake message when not valid.
Cheers @mmjvb - yes, this ticket has gone off the rails a bit. The patch above doesn't do anything to address the original trouble, and information technology sounds similar @geufroi was able to go a stable version of this module working.
Hi all,
is it possible to install agenda-links via Ludviq ? I cannot use composer on my prod site.
Comment #fifteen
mmjvb Credit Attribution: mmjvb as a volunteer commented
@coaston Assuming you mean Ludwig, it can be used to install any module. It simply requires to have an ludwig.json, which you tin provide yourself. Advise to create a support outcome for that projection requesting a ludwig.json, providing the one you created.
@mmjvb cheers, will do so.
But can yous tell me the binder proper name where the lib should be downladed? Similar /lib/agenda-lists/... simply this one does non work.
Annotate #17
Greg Boggs
English language
Portland Oregon
Credit Attribution: Greg Boggs commented
You don't need to install composer in production. You only need to install composer on your own computer.
1. Re-create your website files to your reckoner
2. Install composer (If you're on windows at that place's a downloadable installer)
3. Run composer require drupal/addtocal
4. Copy all the files back to your web hosting
Comment #xviii
mmjvb Credit Attribution: mmjvb as a volunteer commented
Again, suggest to create an outcome in the project you lot are talking about. Doesn't audio related to this consequence! Put a link to that issue here.
Perhaps and then it is possible to answer the question you have, currently it doesn't brand sense as you did non provide the needed details. You need to put your question in the correct context, otherwise information technology is anybodies guess.
Aye this one, i got the same mistake message. But tnx to @devad information technology has been resolved. Perfect plugin!
Comment #22
mmjvb Credit Attribution: mmjvb as a volunteer commented
You already establish the answer to your question, but for others: modules/[module]/lib/[package]/[version]
where package is [provider]-[library]
[module]: addtocal
[provider]: spatie
[library]: agenda-links
[version]: v1.5.0
.../modules/addtocal/lib/spatie-calendar-links/v1.5.0