πŸ‡©πŸ‡ͺGermany @thomas.wardin

Account created on 20 September 2012, almost 12 years ago
#

Recent comments

πŸ‡©πŸ‡ͺGermany thomas.wardin

Is this really the case?

The old instance's export looks like this:

settings[toggle_logo] = 1
settings[toggle_name] = 0
settings[toggle_slogan] = 1
...
settings[palette][silver] = "#f1f1f1"
settings[palette][body] = "#efefef"

Wouldn't it be necessary to transform into yml?

πŸ‡©πŸ‡ͺGermany thomas.wardin

Can't see why the patch shouldn't work. I however set font-weight to 700 in bfd-custom.css, so patching wasn't even necessary.

πŸ‡©πŸ‡ͺGermany thomas.wardin

Thank you for the quick code update. I can however not see the library dependency in the info.yml (if this should work) nor a composer.json in the module directory, so I'm afraid the library won't install per composer command.

πŸ‡©πŸ‡ͺGermany thomas.wardin

Sorry for asking: Is such a plugin existing? How to install/make available to the module? How to protect against overwriting by updates?

πŸ‡©πŸ‡ͺGermany thomas.wardin

I am combining two webform submission fields into a text field like so:

{% if webform_submission_value_1 is empty %}
  {{ webform_submission_value_4 }}
{% else %}
  {{ webform_submission_value_1 }}
{% endif %}

In the webform, both fields are defined with an input mask like so:

'alias': 'currency', 'prefix': '', 'groupSeparator': '.', 'radixPoint': ',', 'digits': 2

I could not find a way to apply number_format to the views text field (which apparently isn't necessary), but the aggregation does not respect the format defined elsewhere;

ID	Betrag	Comment
50	1.200,00	Single Row
51	1.800,00	Single Row
	3000	Aggregate Row

How to fix?

Environment: Drupal 9.5.9, PHP 8.1.18, Views Aggregator Plus 2.0.2

πŸ‡©πŸ‡ͺGermany thomas.wardin

thomas.wardin β†’ made their first commit to this issue’s fork.

πŸ‡©πŸ‡ͺGermany thomas.wardin

Also applies to radio buttons, but only "eaten" on Android phones. In Olivero they are shown just fine (with lots of other stuff way worse than on bfd).

Still it appears to me that the new version is really needed.

πŸ‡©πŸ‡ͺGermany thomas.wardin

Tried requiring symfony/http-client (ok).
With a renewed bot configuration, it worked.

You might consider adding the dependency.

πŸ‡©πŸ‡ͺGermany thomas.wardin

For the jolicode part: Would that only be a dependency to add?

For webhook: Seems like webhooks may be deprecated in a while, that's why there is a rewrite for version 2.0 of the Slack module (https://git.drupalcode.org/project/slack) which as far as I can see comes without any additional dependency. They even claim "You can also use our module API in your modules" in their Readme. May be worth a look.

I am using Drupal 9.5

πŸ‡©πŸ‡ͺGermany thomas.wardin

Side notice: Slack module uses incoming webhook, which works just fine. So maybe I have not completed the configuration on the Slack end correctly?

πŸ‡©πŸ‡ͺGermany thomas.wardin

Maybe making the Token field mandatory would help avoiding such silly support requests.

πŸ‡©πŸ‡ͺGermany thomas.wardin

You are right. Obviously got distracted by creating the ECA model and forgot the backend.

Entered the token xoxb-VALUE but still not working. I even reinstalled the app/bot to my workspace.

Error details:

Failed execution of Nachricht an Slack (#allgemeines) (Activity_087i5gl) from ECA Neuer/aktualisierter Inhalt (process_jtcehec) for event Drupal\eca_content\Event\ContentEntityUpdate: No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle7-adapter"..
#0 SITEROOT/vendor/jolicode/slack-php-api/src/ClientFactory.php(31): Http\Discovery\Psr18ClientDiscovery::find() #1 SITEROOT/web/modules/contrib/pf_slack/src/Plugin/PushFrameworkChannel/Slack.php(44): JoliCode\Slack\ClientFactory::create('xoxb-6897326535...')
#2 SITEROOT/web/modules/contrib/push_framework/src/Plugin/Action/Notify.php(101): Drupal\pf_slack\Plugin\PushFrameworkChannel\Slack->send(Object(Drupal\user\Entity\User), Object(Drupal\node\Entity\Node), Array, 0)
#3 SITEROOT/web/modules/contrib/eca/src/Entity/Objects/EcaAction.php(102): Drupal\push_framework\Plugin\Action\Notify->execute(NULL)
#4 SITEROOT/web/modules/contrib/eca/src/Processor.php(188): Drupal\eca\Entity\Objects\EcaAction->execute(Object(Drupal\eca\Entity\Objects\EcaEvent), Object(Drupal\eca_content\Event\ContentEntityUpdate), Array)
#5 SITEROOT/web/modules/contrib/eca/src/Processor.php(146): Drupal\eca\Processor->executeSuccessors(Object(Drupal\eca\Entity\Eca), Object(Drupal\eca\Entity\Objects\EcaEvent), Object(Drupal\eca_content\Event\ContentEntityUpdate), Array)
#6 SITEROOT/web/modules/contrib/eca/src/EventSubscriber/EcaBase.php(76): Drupal\eca\Processor->execute(Object(Drupal\eca_content\Event\ContentEntityUpdate), 'eca.content_ent...')
#7 [internal function]: Drupal\eca\EventSubscriber\EcaBase->onEvent(Object(Drupal\eca_content\Event\ContentEntityUpdate), 'eca.content_ent...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#8 SITEROOT/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Drupal\eca_content\Event\ContentEntityUpdate), 'eca.content_ent...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#9 SITEROOT/web/modules/contrib/eca/src/Event/TriggerEvent.php(73): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Drupal\eca_content\Event\ContentEntityUpdate), 'eca.content_ent...')
#10 SITEROOT/web/modules/contrib/eca/modules/content/src/HookHandler.php(297): Drupal\eca\Event\TriggerEvent->dispatchFromPlugin('content_entity:...', Object(Drupal\node\Entity\Node), Object(Drupal\eca\Service\ContentEntityTypes))
#11 SITEROOT/web/modules/contrib/eca/modules/content/eca_content.module(97): Drupal\eca_content\HookHandler->update(Object(Drupal\node\Entity\Node))
#12 [internal function]: eca_content_entity_update(Object(Drupal\node\Entity\Node))
#13 SITEROOT/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(426): call_user_func_array(Object(Closure), Array)
#14 SITEROOT/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(405): Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object(Closure), 'eca_content')
#15 SITEROOT/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(433): Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_update', Object(Closure))
#16 SITEROOT/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(251): Drupal\Core\Extension\ModuleHandler->invokeAll('entity_update', Array)
#17 SITEROOT/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(900): Drupal\Core\Entity\EntityStorageBase->invokeHook('update', Object(Drupal\node\Entity\Node))
#18 SITEROOT/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(598): Drupal\Core\Entity\ContentEntityStorageBase->invokeHook('update', Object(Drupal\node\Entity\Node))
#19 SITEROOT/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(781): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\node\Entity\Node), true)
#20 SITEROOT/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(523): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object(Drupal\node\Entity\Node), true)
#21 SITEROOT/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(804): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\node\Entity\Node))
#22 SITEROOT/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\node\Entity\Node))
#23 SITEROOT/web/core/modules/node/src/NodeForm.php(270): Drupal\Core\Entity\EntityBase->save()
#24 [internal function]: Drupal\node\NodeForm->save(Array, Object(Drupal\Core\Form\FormState))
#25 SITEROOT/web/core/lib/Drupal/Core/Form/FormSubmitter.php(114): call_user_func_array(Array, Array)
#26 SITEROOT/web/core/lib/Drupal/Core/Form/FormSubmitter.php(52): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#27 SITEROOT/web/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#28 SITEROOT/web/modules/contrib/autosave_form/src/Form/AutosaveFormBuilder.php(144): Drupal\Core\Form\FormBuilder->processForm('node_article_ed...', Array, Object(Drupal\Core\Form\FormState))
#29 SITEROOT/web/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\autosave_form\Form\AutosaveFormBuilder->processForm('node_article_ed...', Array, Object(Drupal\Core\Form\FormState))
#30 SITEROOT/web/modules/contrib/autosave_form/src/Form/AutosaveFormBuilder.php(97): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\node\NodeForm), Object(Drupal\Core\Form\FormState))
#31 SITEROOT/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\autosave_form\Form\AutosaveFormBuilder->buildForm(Object(Drupal\node\NodeForm), Object(Drupal\Core\Form\FormState))
#32 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#33 SITEROOT/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#34 SITEROOT/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#35 SITEROOT/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#36 SITEROOT/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#37 SITEROOT/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#38 SITEROOT/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#39 SITEROOT/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#40 SITEROOT/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#41 SITEROOT/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#42 SITEROOT/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#43 SITEROOT/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#44 SITEROOT/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#45 SITEROOT/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#46 SITEROOT/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#47 SITEROOT/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#48 {main}
πŸ‡©πŸ‡ͺGermany thomas.wardin

From the ECA team, I learned that the help text displayed there is originating from this module. The help text for [registrant:url:args] currently suggests [registrant:url:args:#] which obviously should be changed to [registrant:url:args:value:#] with # being the position in the arguments array.

πŸ‡©πŸ‡ͺGermany thomas.wardin

I have to admit that I did not dig deep enough in the tree as shown by token browser. What I missed was this already existing token:
[registrant:url:args:value:#] with # being the position in the arguments array.

πŸ‡©πŸ‡ͺGermany thomas.wardin

Same applies if you use the quiz module. Patch #10 works though admittedly the checkbox does not look very beautiful. Despite your comment #7, still not fixed, OCTOGONE.dev.

If you suggest to leave custom-control-input in, what's your remedy then, OCTOGONE.dev?

πŸ‡©πŸ‡ͺGermany thomas.wardin

Ad 1: I prefer a session to be created. Anything else will supposedly be harder to explain to users.
Ad 2: If the user should already be logged in as the intended user, only the given target should be reached. If it should be a different user, either creating a new session for that one or throwing an error would be desirable.
Ad 3: Yes. The hash however will have to be regenerated from time to time for security reasons. I'd expect that ECA can do that.
Ad 4: Sounds like a good idea. I was simply wondering how to invoke the authorization check. If that can be done either way, I'm fine.

πŸ‡©πŸ‡ͺGermany thomas.wardin

Working just fine. RTBC from my point of view. I appreciate the super-quick fix!

πŸ‡©πŸ‡ͺGermany thomas.wardin

Same applies to the summary block. Currently it relies on "item" or "items" translated elsewhere. But in order for it to be specifically translatable, line 173 of commerce/modules/cart/src/Plugin/Block/CartBlock.php should read
'#count_text' => $this->formatPlural($count, t('@count item'), t('@count items')),

Production build 0.69.0 2024