πŸ‡¬πŸ‡§United Kingdom @duttonma

Account created on 14 August 2012, over 12 years ago
#

Merge Requests

Recent comments

πŸ‡¬πŸ‡§United Kingdom duttonma

Drupal 11 compatibility added to latest 1.2.x-dev release

πŸ‡¬πŸ‡§United Kingdom duttonma

Thanks for all comments and work on this. New release 1.2.x-dev is now available that fixes all Drupal 10.2 compatibility problems, so please use that version.

πŸ‡¬πŸ‡§United Kingdom duttonma

I think I can see the problem here.

You have shown the values that you have set in 'Manually editable HTML tags' under source editing but, assuming that you have enabled this filter ('Limit allowed HTML tags and correct faulty HTML - editable tag list'), you haven't shown the values that you have set in 'Allowed HTML tags'.

I suspect that you have added

to source editing but you haven't added it to 'Allowed HTML tags' and the two work in conjunction. If it isn't in 'Allowed HTML tags' then it won't show when you view the node and that's it !
πŸ‡¬πŸ‡§United Kingdom duttonma

This module is not obsolete as for the sites that I maintain we allow users to paste rendered html into CKEditor even though they don't have access to the 'Source' button. In that case we still want to restrict the html that they can use.

πŸ‡¬πŸ‡§United Kingdom duttonma

Patch attached to fix this issue

πŸ‡¬πŸ‡§United Kingdom duttonma

have reproduced the error in Drupal 10.1.4, see this issue πŸ› TypeError when adding book page Needs work

πŸ‡¬πŸ‡§United Kingdom duttonma

Patch attached to fix this issue

πŸ‡¬πŸ‡§United Kingdom duttonma

Yes, i will test this in Drupal 10.1 but this patch is needed for a current Drupal 9 production site.

πŸ‡¬πŸ‡§United Kingdom duttonma

Patch attached to resolve this issue

πŸ‡¬πŸ‡§United Kingdom duttonma

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

πŸ‡¬πŸ‡§United Kingdom duttonma

The module will work fine in this situation

πŸ‡¬πŸ‡§United Kingdom duttonma

Fixed in latest release

πŸ‡¬πŸ‡§United Kingdom duttonma

Drupal 10 compatibility has now been included in the latest release

πŸ‡¬πŸ‡§United Kingdom duttonma

If anybody is looking to install this module on Drupal 10 right now, I have created a D10 version at https://www.drupal.org/project/easy_install_d10 β†’ which incorporates patch #9

πŸ‡¬πŸ‡§United Kingdom duttonma

Good idea, I have included this code in version 8.x-3.x-dev and can confirm that from this version onwards date_facet_drilldown will support pretty paths and query strings.

πŸ‡¬πŸ‡§United Kingdom duttonma

Here is a better patch that doesn't try to send the notification email if the user doesn't have an email address

πŸ‡¬πŸ‡§United Kingdom duttonma

Yes that's what I thought too, the fix in #8 πŸ› Exception thrown when unblocking a user via drush Needs work is a temporary one just to stop the exception - I'll work on a better fix further up in the logic

πŸ‡¬πŸ‡§United Kingdom duttonma

I have put those 'steps to reproduce' in the issue summary as suggested.

In this case no email is sent from Drupal, but an attempt is made to send one. I notice that when you create a user without an email address through the admin screens, Drupal is clever enough to not attempt sending the email even if you click 'notify user' and tells you so. Perhaps the best solution would be to not even attempt to send the email when unblocking the user via drush as well ?

I attach a new patch to fix this issue at the PHP mail level as there was a problem with the first one.

πŸ‡¬πŸ‡§United Kingdom duttonma

Steps to reproduce:
- Fresh install of Drupal 9.5.9
- Create a new user without an email address (yes, Drupal does let you do this !)
- block the user via drush ('drush user:block

- unblock the user via drush ('drush user:unblock ')

At this point the following TypeError is thrown:

TypeError: Drupal\Core\Mail\Plugin\Mail\PhpMail::doMail(): Argument #1 ($to) must be of type string, null given, called in /app/web/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php on line 118 in /app/web/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php on line 162 #0 /app/web/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php(118): Drupal\Core\Mail\Plugin\Mail\PhpMail->doMail(NULL, 'Account details...', 'test4,\n\nYour ac...', 'MIME-Version: 1...', '-fadmin@example...')
#1 /app/web/core/lib/Drupal/Core/Mail/MailManager.php(307): Drupal\Core\Mail\Plugin\Mail\PhpMail->mail(Array)
#2 /app/web/core/lib/Drupal/Core/Mail/MailManager.php(180): Drupal\Core\Mail\MailManager->doMail('user', 'status_activate...', NULL, 'en', Array, 'admin@example.c...', true)
#3 /app/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\Mail\MailManager->Drupal\Core\Mail\{closure}()
#4 /app/web/core/lib/Drupal/Core/Mail/MailManager.php(181): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#5 /app/web/core/modules/user/user.module(1069): Drupal\Core\Mail\MailManager->mail('user', 'status_activate...', NULL, 'en', Array, 'admin@example.c...')
#6 /app/web/core/modules/user/src/Entity/User.php(139): _user_mail_notify('status_activate...', Object(Drupal\user\Entity\User))
#7 /app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(597): Drupal\user\Entity\User->postSave(Object(Drupal\user\UserStorage), true)
#8 /app/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php(781): Drupal\Core\Entity\EntityStorageBase->doPostSave(Object(Drupal\user\Entity\User), true)
#9 /app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(523): Drupal\Core\Entity\ContentEntityStorageBase->doPostSave(Object(Drupal\user\Entity\User), true)
#10 /app/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(804): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\user\Entity\User))
#11 /app/web/core/lib/Drupal/Core/Entity/EntityBase.php(339): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\user\Entity\User))
#12 /app/vendor/drush/drush/src/Drupal/Commands/core/UserCommands.php(159): Drupal\Core\Entity\EntityBase->save()
#13 [internal function]: Drush\Drupal\Commands\core\UserCommands->unblock('test4', Array)
#14 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#15 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#16 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#17 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#18 /app/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /app/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /app/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /app/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /app/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /app/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /app/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#25 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#26 /app/vendor/bin/drush(120): include('/app/vendor/dru...')
#27 {main}

πŸ‡¬πŸ‡§United Kingdom duttonma

Patch attached to resolve this issue

Production build 0.71.5 2024