Getting this error on Drupal 10.3 / PHP 8.2.20
I am not sure when it appeared. I did not notice it until trying to login again after a few days. It may have already been there before upgrading to 10.3. I did find that the role 'Authenticated' (authenticated) was missing.
Error: Call to a member function hasPermission() on null in comment_node_update_index() (line 375 of core/modules/comment/comment.module).
comment_node_update_index()
call_user_func_array() (Line: 416)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 395)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 415)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 529)
Drupal\node\Plugin\Search\NodeSearch->indexNode() (Line: 490)
Drupal\node\Plugin\Search\NodeSearch->updateIndex() (Line: 80)
search_cron() (Line: 335)
Drupal\Core\Cron->Drupal\Core\{closure}() (Line: 395)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 318)
Drupal\Core\Cron->invokeCronHandlers() (Line: 159)
Drupal\Core\Cron->run() (Line: 75)
Drupal\Core\ProxyClass\Cron->run() (Line: 65)
Drupal\automated_cron\EventSubscriber\AutomatedCron->onTerminate()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 115)
Symfony\Component\HttpKernel\HttpKernel->terminate() (Line: 66)
Drupal\Core\StackMiddleware\StackedHttpKernel->terminate() (Line: 715)
Drupal\Core\DrupalKernel->terminate() (Line: 22)
Adding the Role 'Authenticated' back, seems to have helped.
Sorry, found the {% spaceless %} was hidden in the rewrite_field in the view.
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.
I am sorry, this error was due to an old patch that was still automatically applied....sorry...
I redid this for rc7 using the 'SupportsListingJobsInterface'
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.
I can also confirm #4 fixed the issue! Thank you Cilefen!
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
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?
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;
}
@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.