🇳🇱Netherlands @Rop

Rotterdam
Account created on 21 October 2014, over 9 years ago
#

Recent comments

🇳🇱Netherlands Rop Rotterdam

Sorry, found the {% spaceless %} was hidden in the rewrite_field in the view.

🇳🇱Netherlands Rop Rotterdam

It seems to me to be a caching issue. When I rebuild the cache I can login once...after which it starts failing again.

Not sure how this would only affect login though.

🇳🇱Netherlands Rop Rotterdam

I am sorry, this error was due to an old patch that was still automatically applied....sorry...

🇳🇱Netherlands Rop Rotterdam

removed old striked out text

🇳🇱Netherlands Rop Rotterdam

I redid this for rc7 using the 'SupportsListingJobsInterface'

🇳🇱Netherlands Rop Rotterdam

I get a simular error:

TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (regel 687 van /var/www/[site]/web/core/modules/views/src/Plugin/views/field/EntityField.php)

I can save the view though. The error occurs when trying to change the aggregation function on one of my fields from COUNT to anything else. The modal won't close.

Drupal: 9.5.8
Php:8.1.18

I guess the provided patch #2 is not really a solution, since the provided value SHOULD be an array, so the question is why is it NULL instead? The problem is something other, so If we just skip handling it when it is not an array we are only hiding an error, not fixing it.

🇳🇱Netherlands Rop Rotterdam

I can also confirm #4 fixed the issue! Thank you Cilefen!

🇳🇱Netherlands Rop Rotterdam

I have the same issue. I can't seem to get rid of it...
Twig\Error\LoaderError: Template "__TwigTemplate_e80ffd1ec83930169d5ee597357148b5" is not defined. in Twig\Loader\ChainLoader->getCacheKey() (regel 98 van /var/www/vsan/vendor/twig/twig/src/Loader/ChainLoader.php).

I have tried changing file permissions, copying new templates from the base_theme (stable9), changing themes, disabled all caches

🇳🇱Netherlands Rop Rotterdam

I think this does not answer the question.
What I understand the OP is talking about is this page:
/admin/config/media/media-settings linked to from within the status report warning.

The text on that page states:

Displaying media assets from third-party services, such as YouTube or Twitter, can be risky. This is because many of these services return arbitrary HTML to represent those assets, and that HTML may contain executable JavaScript code. If handled improperly, this can increase the risk of your site being compromised.

In order to mitigate the risks, third-party assets are displayed in an iFrame, which effectively sandboxes any executable code running inside it. For even more security, the iFrame can be served from an alternate domain (that also points to your Drupal site), which you can configure on this page. This helps safeguard cookies and other sensitive information.

and then has a field labelled:
           iFrame domain
with the description:

Enter a different domain from which to serve oEmbed content, including the http:// or https:// prefix. This domain needs to point back to this site, or existing oEmbed content may not display correctly, or at all.

So the question is, how to set this up?
Can this be a subdomain? i.e. embeds.example.com? How does it need to 'point back to this domain' ? should it just be an alias?

🇳🇱Netherlands Rop Rotterdam

I think a better way would be to use the Postmark\Models\PostmarkAttachment; within PostmarkMail.php

use Postmark\Models\PostmarkAttachment;

add something like this:

// Make sure the files provided in the attachments array exist.
    if (!empty($message['params']['attachments'])) {
      $attachments = $this->convertAttachmentsToPostmarkObjects($message['params']['attachments']);

      if (count($attachments) > 0) {
        $postmark_message['attachments'] = $attachments;
      }
    }
protected function convertAttachmentsToPostmarkObjects($attachments){
    $postmark_attachments = [];
    foreach ($attachments as $attachment) {
      if (file_exists($attachment['filepath'])) {
        $postmark_attachments[] = PostmarkAttachment::fromFile($attachment['filepath'], $attachment['filename'], $attachment['filemime']);
      }
    }
    return $postmark_attachments;
  }
🇳🇱Netherlands Rop Rotterdam

@Anybody Yes I think it is!
Unless I am missing another way of doing this. I have users with a profile. On this profile they reference their office_place (a regular node).
Currently these references are not automatically synched, but that would be nice.

Production build 0.69.0 2024