tpwd / ke_search

Search Extension for TYPO3 Content Management System, including faceting search functions.
https://extensions.typo3.org/extension/ke_search/
GNU General Public License v3.0
8 stars 31 forks source link

Undefined array key: Argument #2 ($context) must be of type array, null given #243

Closed JensVollmer closed 1 month ago

JensVollmer commented 1 month ago

ke_search 5.1.1 TYPO3 11.5.39

After updating to 5.1.1 the scheduler/indexer task fails if $this->cachedPageRecords[$language_uid][$uid] is not set.

TypeError Psr\Log\AbstractLogger::debug(): Argument #2 ($context) must be of type array, null given, called in ke_search/Classes/Indexer/Types/Page.php on line 804

[Classes/Indexer/Types/Page.php]

@@ -803,23 +795,11 @@ public function getPageContent($uid)
                    $this->counter++;
                } else {
                    $this->pObj->logger->debug(
                        'Skipping page "' . $pageTitle . '" (UID ' . $uid . ', L ' . $language_uid . ')'
                        'Skipping page "' . $pageTitle . '"',
                        $this->cachedPageRecords[$language_uid][$uid]
tgaertner commented 1 month ago

correct version is 5.5.1 Same on TYPO3 12.4.19

christianbltr commented 1 month ago

Thanks for reporting. This is fixed in ke_search 5.5.2.