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 Acquia logo

Comments

wxactly's picture

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?

geufroi's picture

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}

geufroi's picture

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

geufroi's picture

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 ;-)

wxactly's picture

Sounds like minimum-stability: stable is set up in your composer.json file. You'll need to gear up information technology to dev to install dev branches, or setting information technology to beta 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 :)

aritrika.d's picture

geufroi's picture

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.

mmjvb's picture

Actually, information technology is none of the above!

                docker@cli:/var/www$ composer require drupal/addtocal two.x-dev ./composer.json has been updated Running composer update drupal/addtocal Loading composer repositories with packet information Updating dependencies Lock file operations: 2 installs, 0 updates, 0 removals   - Locking drupal/addtocal (dev-2.10 cdabeed)   - Locking spatie/calendar-links (one.4.2) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: ii installs, 0 updates, 0 removals   - Syncing drupal/addtocal (dev-2.ten cdabeed) into cache   - Installing spatie/agenda-links (1.4.2): Extracting archive   - Installing drupal/addtocal (dev-ii.x cdabeed): Cloning cdabeed4d2 from cache Bundle container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead. Generating autoload files 28 packages you are using are looking for funding. Apply the `composer fund` command to find out more! docker@cli:/var/www$              

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.

wxactly's picture

Condition: Needs review » Airtight (works as designed)

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.

coaston's picture

Hi all,

is it possible to install agenda-links via Ludviq ? I cannot use composer on my prod site.

mmjvb's picture

@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.

coaston's picture

@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.

Greg Boggs's picture

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

mmjvb's picture

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.

coaston's picture

Aye this one, i got the same mistake message. But tnx to @devad information technology has been resolved. Perfect plugin!

mmjvb's picture

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