From ab44bf663a98b13438b3d7956cecaf8c06b56a2a Mon Sep 17 00:00:00 2001 From: Andreas Kessel Date: Tue, 13 Aug 2024 08:28:17 +0200 Subject: [PATCH 1/2] PHP Warning: Undefined array key "jumpurl_tracking_privacy" in DirectMailUtility.php Because of the error message: PHP Warning: Undefined array key "jumpurl_tracking_privacy" in /var/www/html/vendor/directmailteam/direct-mail/Classes/DirectMailUtility.php line 136 --- Classes/DirectMailUtility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/DirectMailUtility.php b/Classes/DirectMailUtility.php index c27ce96aa..de7ae4b42 100644 --- a/Classes/DirectMailUtility.php +++ b/Classes/DirectMailUtility.php @@ -133,7 +133,7 @@ public static function fetchUrlContentsForDirectMailRecord(array $row, array $pa $htmlmail->setJumperURLPrefix( $urls['baseUrl'] . $glue . 'mid=###SYS_MAIL_ID###' . - ((int)$params['jumpurl_tracking_privacy'] ? '' : '&rid=###SYS_TABLE_NAME###_###USER_uid###') . + (isset($params['jumpurl_tracking_privacy']) && (int)$params['jumpurl_tracking_privacy'] ? '' : '&rid=###SYS_TABLE_NAME###_###USER_uid###') . '&aC=###SYS_AUTHCODE###' . '&jumpurl=' ); From 797b2454178ff16d3b3fe21bcb4740d279547582 Mon Sep 17 00:00:00 2001 From: Andreas Kessel Date: Tue, 13 Aug 2024 08:48:54 +0200 Subject: [PATCH 2/2] Creation of dynamic property is deprecated in MainController.php error message: PHP Runtime Deprecation Notice: Creation of dynamic property TYPO3\CMS\Backend\Tree\View\PageTreeView::$setRecs is deprecated in /var/www/html/vendor/directmailteam/direct-mail/Classes/Module/MainController.php line 448 --- Classes/Module/MainController.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Classes/Module/MainController.php b/Classes/Module/MainController.php index d76ae5a08..3b49f061b 100644 --- a/Classes/Module/MainController.php +++ b/Classes/Module/MainController.php @@ -445,7 +445,6 @@ protected function getRecursiveSelect($id, $perms_clause) $tree = GeneralUtility::makeInstance(PageTreeView::class); $tree->init('AND ' . $perms_clause); $tree->makeHTML = 0; - $tree->setRecs = 0; $tree->getTree($id, $getLevels, ''); return $tree->ids;