πŸ‡ΈπŸ‡ͺSweden @chrotto

Account created on 9 November 2010, about 14 years ago
#

Recent comments

πŸ‡ΈπŸ‡ͺSweden chrotto

Do not understand this:
"Once a view has the setting for bundle creation on double click set there is no way to unset it."
I have installed 5.1.x dev and from what I can see the option to add a node on double-click is a default behaviour and I do not see any settings to unset it either.
My wish is just to unset this option.
How do I do that?

πŸ‡ΈπŸ‡ͺSweden chrotto

So you can close this now.
Solved it by changing my custom theme.

πŸ‡ΈπŸ‡ͺSweden chrotto

It is impossible to send correct formatted mail with Mime Mail in both D9 and D10.

In D10 with Mime Mail mailler View Send hang.
Log Message:
Symfony\Component\Mime\Exception\RfcComplianceException: Email "" does not comply with addr-spec of RFC 2822. in Symfony\Component\Mime\Address->__construct() (line 54 of /var/www/dev.godnattsagan.se/vendor/symfony/mime/Address.php).

In D9 with Mime Mail mailer I get this message (in swedish, sorry)
Ett AJAX HTTP-fel intrΓ€ffade
Resultatkod fΓΆr HTTP: 200
FelsΓΆkningsinformation fΓΆljer.
SΓΆkvΓ€g: /batch?id=1108&op=do_nojs&op=do
Statustext: parsererror
Svarstext:

And the following Log message:
TypeError: Symfony\Component\Mime\Header\UnstructuredHeader::__construct(): Argument #2 ($value) must be of type string, null given, called in /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php on line 98 in Symfony\Component\Mime\Header\UnstructuredHeader->__construct() (line 23 of /var/www/malmonshamnochbat.se/vendor/symfony/mime/Header/UnstructuredHeader.php)

#0 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/Mail/Plugin/Mail/PhpMail.php(98): Symfony\Component\Mime\Header\UnstructuredHeader->__construct('subject', NULL)
#1 /var/www/malmonshamnochbat.se/web/modules/contrib/views_send/views_send.module(874): Drupal\Core\Mail\Plugin\Mail\PhpMail->mail(Array)
#2 /var/www/malmonshamnochbat.se/web/modules/contrib/views_send/views_send.module(882): views_send_deliver(Object(stdClass))
#3 /var/www/malmonshamnochbat.se/web/core/includes/batch.inc(295): views_send_batch_deliver(Array, false, Array, Array)
#4 /var/www/malmonshamnochbat.se/web/core/includes/batch.inc(137): _batch_process()
#5 /var/www/malmonshamnochbat.se/web/core/includes/batch.inc(93): _batch_do()
#6 /var/www/malmonshamnochbat.se/web/core/modules/system/src/Controller/BatchController.php(55): _batch_page(Object(Symfony\Component\HttpFoundation\Request))
#7 [internal function]: Drupal\system\Controller\BatchController->batchPage(Object(Symfony\Component\HttpFoundation\Request))
#8 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#9 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#11 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#12 /var/www/malmonshamnochbat.se/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /var/www/malmonshamnochbat.se/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#14 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /var/www/malmonshamnochbat.se/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /var/www/malmonshamnochbat.se/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /var/www/malmonshamnochbat.se/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /var/www/malmonshamnochbat.se/web/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /var/www/malmonshamnochbat.se/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#23 {main}

Using Default PHP mailer in D10 there is no errors but the Bold text was marked with * before and after.
*Testing Views Send with Default PHP mailer and this text in Bold*

Using D9 and Default PHP mailer I got the same error as with Mime Mail

πŸ‡ΈπŸ‡ͺSweden chrotto

As I said in my initial post I have tested Views Send with both Mime mail and Default PHP mail mailer.
I also used settings as in 6 so I do not think it shall be needed with a new issue.

πŸ‡ΈπŸ‡ͺSweden chrotto

When tested with the Subject: "Testing Views Send" I got the error.
I had a hired developer earlier who looked at this and suggested a patch or uninstalling Symphony Mail. I uninstalled the module and then it was working, but without formatting the text.
I attached the patch he suggested but I did not use

Here is the code: from Views Send

code>function views_send_deliver($message) {
if (is_array($message)) {
$message = (object) $message;
}

$key = 'direct';
$headers = unserialize($message->headers);

$mail = array(
'to' => $message->to_mail,
'from' => $message->from_mail,
'subject' => $message->subject,
'body' => $message->body,
'headers' => $headers,
);

// Adding attachments explicitly because Swift Mailer and Mandrill doesn't
// handle attachments in the format function. Only works for batch delivery of mail.
if (!empty($message->params) && (\Drupal::moduleHandler()->moduleExists('swiftmailer') || \Drupal::moduleHandler()->moduleExists('mandrill'))) {
$mail['params'] = $message->params;
}

$system = $mail_backend = \Drupal::service('plugin.manager.mail')->getInstance(array('module' => 'views_send', 'key' => $key));
return $system->mail($mail);
}

πŸ‡ΈπŸ‡ͺSweden chrotto

When testing before I was user 1. I tested now with user "View user email addresses" permission; it was the same error.
During tests, I always only send to one user.

πŸ‡ΈπŸ‡ͺSweden chrotto

I attached View conf for D9 and D10

πŸ‡ΈπŸ‡ͺSweden chrotto

I now tested with Mime Mail and with core 10.1.5 and got a serious error:
Symfony\Component\Mime\Exception\RfcComplianceException: Email "" does not comply with addr-spec of RFC 2822. in Symfony\Component\Mime\Address->__construct() (line 54 of /var/www/dev.godnattsagan.se/vendor/symfony/mime/Address.php).

Doing the same with the Default PHP mailer I did not get any errors but an extra asterisk on both ends of the text:

*Testing Views Send with Default PHP mailer and this text in Bold*

So for me, it seems to be less work without Mime Mail.

/Chrotto

πŸ‡ΈπŸ‡ͺSweden chrotto

Yes, it is the same problem with Drupal 10.1.5 and Views Send 2.0.0-rc1
Tested with Default PHP mailer in Mail system settings.
The process worked fine all the way but when the text was converted to mail the formatted text became plain text.
I also tested with Mime Mail installed but this did not work for me. Think it is better if Mime Mail is not needed.
I hope you can get this to work because I think it is a very useful module.

πŸ‡ΈπŸ‡ͺSweden chrotto

I have now changed to dev as minimum stability so I can do the installation.
Can this cause problems in coming installations when using Composer?

πŸ‡ΈπŸ‡ͺSweden chrotto

Thank you for the work to make the theme compatible!
I am now running 2.0.2 on core 9.5.10 and the upgrade status is incompatible.
Can I run the patch on this version before the upgrade or do I have to do this after the upgrade?
/chrotto

πŸ‡ΈπŸ‡ͺSweden chrotto

I solved this with the module Menu token and created the links in the Main Menu.
Perhaps a better way.

πŸ‡ΈπŸ‡ͺSweden chrotto

Thank you for a quick respond.
That helped and the module is now uninstalled without errors.
/Christer

Production build 0.71.5 2024