Account created on 16 December 2013, about 11 years ago
#

Recent comments

πŸ‡§πŸ‡ͺBelgium mgstables

Have tested it on the contact form and the variable "float_label" is not addressed in "textarea.html.twig". So the style (150px) is not applied and the "text-wrapper" remains.

πŸ‡§πŸ‡ͺBelgium mgstables

Same problem with version 2 and patches for Drupal 10.
When I try to delete a ticket I also get the wsod with the same error message.

For now, I change the state via the view "All tickets (Commerce Ticket)", where I change the "Commerce Ticket: Active? (State)" in the Format Tool from "list_default" to "state_transition_form".
This way I can quickly change the state with a button on each ticket.

Here the entire log:

Error: Call to undefined method Drupal\Core\Field\Plugin\Field\FieldType\EntityReferenceItem::getTransitions() in Drupal\state_machine\Access\StateTransitionAccessCheck->access() (regel 51 van C:\sites\nailsUp\root\modules\contrib\state_machine\src\Access\StateTransitionAccessCheck.php)

#0 [internal function]: Drupal\state_machine\Access\StateTransitionAccessCheck->access(Object(Drupal\Core\Routing\RouteMatch), Object(Drupal\Core\Session\AccountProxy))
#1 C:\sites\nailsUp\root\core\lib\Drupal\Core\Access\AccessManager.php(160): call_user_func_array(Array, Array)
#2 C:\sites\nailsUp\root\core\lib\Drupal\Core\Access\AccessManager.php(136): Drupal\Core\Access\AccessManager->performCheck('access_check.st...', Object(Drupal\Component\Utility\ArgumentsResolver))
#3 C:\sites\nailsUp\root\core\lib\Drupal\Core\Access\AccessManager.php(113): Drupal\Core\Access\AccessManager->check(Object(Drupal\Core\Routing\RouteMatch), Object(Drupal\Core\Session\AccountProxy), Object(Symfony\Component\HttpFoundation\Request), true)
#4 C:\sites\nailsUp\root\core\lib\Drupal\Core\Routing\AccessAwareRouter.php(110): Drupal\Core\Access\AccessManager->checkRequest(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Session\AccountProxy), true)
#5 C:\sites\nailsUp\root\core\lib\Drupal\Core\Routing\AccessAwareRouter.php(95): Drupal\Core\Routing\AccessAwareRouter->checkAccess(Object(Symfony\Component\HttpFoundation\Request))
#6 C:\sites\nailsUp\root\modules\contrib\easy_breadcrumb\src\EasyBreadcrumbBuilder.php(939): Drupal\Core\Routing\AccessAwareRouter->matchRequest(Object(Symfony\Component\HttpFoundation\Request))
#7 C:\sites\nailsUp\root\modules\contrib\easy_breadcrumb\src\EasyBreadcrumbBuilder.php(505): Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->getRequestForPath('/admin/commerce...', Array)
#8 C:\sites\nailsUp\root\core\lib\Drupal\Core\Breadcrumb\BreadcrumbManager.php(83): Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->build(Object(Drupal\Core\Routing\RouteMatch))
#9 C:\sites\nailsUp\root\core\modules\system\src\Plugin\Block\SystemBreadcrumbBlock.php(72): Drupal\Core\Breadcrumb\BreadcrumbManager->build(Object(Drupal\Core\Routing\CurrentRouteMatch))
#10 C:\sites\nailsUp\root\core\modules\block\src\BlockViewBuilder.php(171): Drupal\system\Plugin\Block\SystemBreadcrumbBlock->build()
#11 [internal function]: Drupal\block\BlockViewBuilder::preRender(Array)
#12 C:\sites\nailsUp\root\core\lib\Drupal\Core\Security\DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
#13 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(788): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#14 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(374): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
#15 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(446): Drupal\Core\Render\Renderer->doRender(Array)
#16 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false)
#17 C:\sites\nailsUp\root\core\lib\Drupal\Core\Template\TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array)
#18 C:\sites\nailsUp\root\sites\default\files\php\twig\65ccc8c849c90_page.html.twig_z13MaCObQqWNlXLNVFdAobyWX\e2jQWqNGzTKNHOLOPl77o7MEJ9ajtulyLRtCvqf7xKI.php(43): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#19 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(405): __TwigTemplate_8c6c3e6f4253afde926c18433c40e58a->doDisplay(Array, Array)
#20 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#21 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array)
#22 C:\sites\nailsUp\root\core\themes\engines\twig\twig.engine(55): Twig\Template->render(Array)
#23 C:\sites\nailsUp\root\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('core/themes/cla...', Array)
#24 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('page', Array)
#25 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false)
#26 C:\sites\nailsUp\root\core\lib\Drupal\Core\Template\TwigExtension.php(479): Drupal\Core\Render\Renderer->render(Array)
#27 C:\sites\nailsUp\root\sites\default\files\php\twig\65ccc8c849c90_html.html.twig__frEPFORwWd0zxxqNt56KBmAi\RIyZrtCkrtuCdAdu04M7uZ9U1FM8UsGqLgFp2wkiqGs.php(86): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#28 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(405): __TwigTemplate_38788a772bf65b6fa718cb9700cd1284->doDisplay(Array, Array)
#29 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(378): Twig\Template->displayWithErrorHandling(Array, Array)
#30 C:\sites\nailsUp\root\vendor\twig\twig\src\Template.php(390): Twig\Template->display(Array)
#31 C:\sites\nailsUp\root\core\themes\engines\twig\twig.engine(55): Twig\Template->render(Array)
#32 C:\sites\nailsUp\root\core\lib\Drupal\Core\Theme\ThemeManager.php(384): twig_render_template('core/themes/cla...', Array)
#33 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(433): Drupal\Core\Theme\ThemeManager->render('html', Array)
#34 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(204): Drupal\Core\Render\Renderer->doRender(Array, false)
#35 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(162): Drupal\Core\Render\Renderer->render(Array)
#36 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\Renderer.php(580): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#37 C:\sites\nailsUp\root\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(163): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#38 C:\sites\nailsUp\root\core\lib\Drupal\Core\EventSubscriber\MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#39 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#40 C:\sites\nailsUp\root\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))
#41 C:\sites\nailsUp\root\vendor\symfony\http-kernel\HttpKernel.php(174): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#42 C:\sites\nailsUp\root\vendor\symfony\http-kernel\HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#43 C:\sites\nailsUp\root\core\lib\Drupal\Core\StackMiddleware\Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#44 C:\sites\nailsUp\root\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#45 C:\sites\nailsUp\root\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#46 C:\sites\nailsUp\root\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#47 C:\sites\nailsUp\root\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#48 C:\sites\nailsUp\root\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#49 C:\sites\nailsUp\root\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#50 C:\sites\nailsUp\root\core\lib\Drupal\Core\DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#51 C:\sites\nailsUp\root\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#52 {main}
πŸ‡§πŸ‡ͺBelgium mgstables

Tested it on a new Drupal 10 installation.
I copied the two files (commerce-ticket.html.twig, commerce-ticket--receipt.html.twig) and placed them in my theme folder and adjusted them.

I was able to add extra fields of the Productvariation-type myself with the following code:
{{ commerce_ticket.getOrderItem.getPurchasedEntity|commerce_entity_render('field_info') }}
This also works fine and the product variation field is retrieved and displayed.

It works on the site and via the emails sent after completing the order.
I also created an extra twig "commerce-ticket--pdf.html.twig" and this worked fine too.

There was an issue resending the tickets. The twigs in my custom theme are not picked up, but only the standard "commerce-ticket.html.twig" of the module for both, the "receipt mail" and the PDF.

Drupal 10.2.2
PHP 8.2.13
Commerce 8.x-2.38
Entity Print 8.x-2.13 (with patch: https://www.drupal.org/project/entity_print/issues/3383187 πŸ› Unexpected error with print engine PhpWkhtmlToPdf or DomPdf: Session has not been set Needs review )
Mail System 8.x-4.4
Mime Mail 8.x-1.0-alpha6 (with patch: https://www.drupal.org/project/mimemail/issues/2904611 πŸ› Seeing errors when sending a mail with files attached as file contents RTBC )
PHPMailer SMTP 2.2.4

πŸ‡§πŸ‡ͺBelgium mgstables

Same problem, "sachinchoolur/lightgallery" cannot be found by composer

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires sachinchoolur/lightgallery, it could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

If I change to "sachinchoolur/lightGallery" then composer has a problem with the uppercase letter.

  require.sachinchoolur/lightGallery is invalid, it should not contain upperc
  ase characters. Please use sachinchoolur/lightgallery instead.

You can only install the "light gallery plugin" manually and therefore it is best to extract it from the "required" in the composer.json file supplied with the module.

πŸ‡§πŸ‡ͺBelgium mgstables

Thanks SebaZ it works perfectly.
For a taxonomy view, used as a filter menu, I needed an extra class β€œactive” for the first row.
I tried with the views counter and that didn't work.
Now with this "Counter fixed output" it works.
{% if counter_fixed == '1' %}active {% endif %}

Drupal 10.2.1
PHP 8.2

πŸ‡§πŸ‡ͺBelgium mgstables

Latest git version works perfectly. The icon was visible and usable and the image rotated.

Drupal 10.1.4
PHP 8.1.6

πŸ‡§πŸ‡ͺBelgium mgstables

In composer.json:

    "require": {
        "php": ">=7.0 || >=8.0",
        "drupal/core": "^9 || ^10",
        "sachinchoolur/lightgallery": "^1.2.21"
    }

I think it should be:
sachinchoolur/lightGallery

    "require": {
        "php": ">=7.0 || >=8.0",
        "drupal/core": "^9 || ^10",
        "sachinchoolur/lightGallery": "^1.2.21"
    }
πŸ‡§πŸ‡ͺBelgium mgstables

Yes, now I can install through Composer. Thank you.

πŸ‡§πŸ‡ͺBelgium mgstables

Thanks jaime@gingerrobot.com for this git version.

I've tested the git version from #26 and it didn't work. So I compared it with my self-patched version that did work.
In simple_image_rotate.module on line 74, an important element has been removed. (Maybe accidentally removed a line too much?)
$elements = &$field_widget_complete_form['widget'];

Now this is:

function simple_image_rotate_field_widget_complete_form_alter(&$field_widget_complete_form, FormStateInterface $form_state, array $context) {
  $field_definition = $context['items']->getFieldDefinition();
  $field_name = $field_definition->getType();

If I put this line back, it works again.

function simple_image_rotate_field_widget_complete_form_alter(&$field_widget_complete_form, FormStateInterface $form_state, array $context) {
  $elements = &$field_widget_complete_form['widget'];
  $field_definition = $context['items']->getFieldDefinition();
  $field_name = $field_definition->getType();

Drupal 10.1.2
PHP 8.1.6

πŸ‡§πŸ‡ͺBelgium mgstables

Yes, clearing the browser cache made it work. Thanks @robcarr.
Now patch #16 works for me too.

πŸ‡§πŸ‡ͺBelgium mgstables

After applying patch #16 the ckeditor5 still won't load. The Console shows the following error message:

TypeError: this.editor.plugins.get(...).formView is null
    _changeFormToVertical http://localhost:8080/modules/contrib/editor_advanced_link/js/build/editorAdvancedLink.js?v=10.1.0-beta1:1
    init http://localhost:8080/modules/contrib/editor_advanced_link/js/build/editorAdvancedLink.js?v=10.1.0-beta1:1
ckeditor5.js:472:19
    attach http://localhost:8080/core/modules/ckeditor5/js/ckeditor5.js?rvm49a:472

Drupal 10.1.0-beta1
Advanced Link 2.1.1
PHP 8.1.6

πŸ‡§πŸ‡ͺBelgium mgstables

I used patch #17 on a downloaded version 2.1.1-alpha1 (manual by hand)

I also changed line 197 in simple_image_rotate.module from:
if (file_move($file, $new_uri, FileSystemInterface::EXISTS_ERROR)) {
to:
if (\Drupal::service('file.repository')->move($file, $new_uri, FileSystemInterface::EXISTS_ERROR)) {

Module installed and tested on the imagefield of "article".

The icon was visible and usable and the image rotated.

Drupal 10.0.8
PHP 8.1.6

πŸ‡§πŸ‡ͺBelgium mgstables

I can confirm, Patch #3 works well.

Drupal 10.0.7
PHP 8.1.6

Production build 0.71.5 2024