Skip to content

Commit

Permalink
Update Page.php
Browse files Browse the repository at this point in the history
TYPO3 11.5.36
ke_search 5.2.1
PHP 8.2.15

Manually starting the Indexer failed in the BE.

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined array key "alternative" in /var/www/typo3/public/typo3conf/ext/ke_search/Classes/Indexer/Types/Page.php line 1189 | TYPO3\CMS\Core\Error\Exception thrown in file /var/www/typo3/public/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 137. Requested URL: https://my.domain.tld/typo3/module/web/KeSearchBackendModule?token=--AnonymizedToken--&id=217&do=startindexer 

This change resolved the issue.
  • Loading branch information
medarob authored Feb 22, 2024
1 parent c27dcc0 commit c7a428b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Indexer/Types/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ public function storeFileContentToIndex($fileObject, $content, $fileIndexerObjec
$content = $metadata['description'] . "\n" . $content;
}

if ($metadata['alternative']) {
if ($metadata['alternative'] ?? null) {
$content .= "\n" . $metadata['alternative'];
}

Expand Down

0 comments on commit c7a428b

Please sign in to comment.