If have the same issue:
Warning: Undefined array key "titel" in Drupal\doc_serialization\Encoder\Docx->encode() (line 86 of modules/contrib/doc_serialization/src/Encoder/Docx.php).
Drupal\doc_serialization\Encoder\Docx->encode() (Line: 43)
Symfony\Component\Serializer\Encoder\ChainEncoder->encode() (Line: 416)
Symfony\Component\Serializer\Serializer->encode() (Line: 141)
Symfony\Component\Serializer\Serializer->serialize() (Line: 143)
Drupal\rest\Plugin\views\style\Serializer->render() (Line: 435)
Drupal\rest\Plugin\views\display\RestExport->Drupal\rest\Plugin\views\display\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 434)
Drupal\rest\Plugin\views\display\RestExport->render() (Line: 76)
Drupal\doc_serialization\Plugin\views\display\WordExport->render() (Line: 1592)
Drupal\views\ViewExecutable->render() (Line: 426)
Drupal\rest\Plugin\views\display\RestExport->execute() (Line: 1689)
Drupal\views\ViewExecutable->executeDisplay() (Line: 81)
Drupal\views\Element\View::preRenderViewElement()
call_user_func_array() (Line: 113)
Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 870)
Drupal\Core\Render\Renderer->doCallback() (Line: 432)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 153)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 152)
Drupal\Core\Render\Renderer->renderRoot() (Line: 56)
Drupal\doc_serialization\Plugin\views\display\WordExport::buildResponse() (Line: 56)
Drupal\views\Routing\ViewPageController->handle()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
I tried to export a node whose status was unpublished via a view. This means that no data was transferred through the view filter.
trichers β created an issue.
@sleitner I have rebuild the authorisations. But that didn't solve the problem.
trichers β created an issue.
trichers β created an issue.
trichers β created an issue.
trichers β created an issue.
If have the same Problems. Is ther any solution?
trichers β created an issue.
@endless_wander @owenbush
I have added an extra field for internal notes to the registrations. I would also like to make notes there after the event, which I will need for later evaluations. Would it be possible to set the permissions so that subsequent changes to the registrations are possible?
@owenbush And by the way, many thanks for your very good work!
In the meantime I have realised that I can't change registrations from today. Registrations in the future can be changed.
Thanks for the helpful hint.
I have now implemented the whole thing like this:
First I added a notification_type:
function terminbuchung_recurring_events_registration_notification_types_alter(array &$notification_types) {
'delete_registration_notification' => [
'name' => t('Delete Registration Notification'),
'description' => t('Send an email to an admin when someone deletes a registration for an event'),
],
];
}
Then the function:
function terminbuchung_registrant_delete(EntityInterface $entity) {
$key = 'delete_registration_notification';
$to = 'YOURMAIL';
$params = [
'registrant' => $entity,
];
$currentDateTime = new DateTime();
$dateString = $params['registrant']->field_reg_datum_start->value;
$dateTime = new DateTime($dateString);
if ($currentDateTime <= $dateTime) {
$mail = \Drupal::service('plugin.manager.mail');
$mail->mail('recurring_events_registration', $key, $to, \Drupal::languageManager()->getDefaultLanguage()->getId(), $params);
}
}
By querying the date, I prevent an e-mail from being sent when past registrations are deleted. I think this is necessary so that an e-mail is not sent to all deleted registrations when an event series is deleted.
I have recreated the process on simplytest.me and do not get the error there. I have noticed that the error message is listed just as often as event instances have been created.
trichers β created an issue.
trichers β created an issue.
Many thanks for the tip. I will take it to heart.
In this case, however, my feature request is really meant seriously. With all Drupal modules it is possible to overwrite module templates with your own templates in the theme. This does not seem to be the case here and severely restricts the display of the individual events and event series. Or am I missing something?
trichers β created an issue.
@pixiekat Thank you, it worked:
function MY_MODULE_token_info() {
$registrant = [];
$registrant['id'] = [
'name' => t('Registrant ID'),
'description' => t('Get the ID of the registrant.'),
];
$registrant['uuid'] = [
'name' => t('Registrant UUID'),
'description' => t('Get the UUID of the registrant.'),
];
return $registrant;
}
function MY_MODULE_tokens($type, $tokens, array $data, array $options, \Drupal\Core\Render\BubbleableMetadata $bubbleable_metadata) {
$replacements = [];
$registrant = !empty($data['registrant']) ? $data['registrant'] : NULL;
if ($type == 'registrant' && !empty($data['registrant'])) {
foreach ($tokens as $name => $original) {
switch ($name) {
case 'id':
$replacements[$original] = $registrant->id->value;
break;
case 'uuid':
$replacements[$original] = $registrant->uuid->value;
break;
}
}
}
return $replacements;
}
trichers β created an issue.
Thanks for this fast and great feedback!
I had to correct one thing
function YOUR_MODULE_registration_insert(EntityInterface $entity) {
It does not have to be registration_insert, but registrant_insert, then it works.
use Drupal\Core\Entity\EntityInterface;
/**
* Implements hook_ENTITY_TYPE_insert().
*/
function YOUR_MODULE_registrant_insert(EntityInterface $entity) {
$key = 'admin_registration_notification';
$to = 'your-admin-email@domain.com';
$params = [
'registrant' => $entity,
];
$mail = \Drupal::service('plugin.manager.mail');
$mail->mail('recurring_events_registration', $key, $to, \Drupal::languageManager()->getDefaultLanguage()->getId(), $params);
}
@endless_wander In a new installation with version Drupal 9.5.11 the editing works as desired. Unfortunately not in three existing Drupal 9.5.11 installations. I have already activated the debug mode and also read out PHP errors, but cannot detect anything.
@owenbush I tried it as admin and anonymously
trichers β created an issue.
trichers β created an issue.