We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug [BUG] PHP Warning: Undefined array key "no_search_sub_entries" in typo3conf/ext/solr/Classes/IndexQueue/RecordMonitor.php line 203
protected function skipRecordByRootlineConfiguration(int $pid): bool .. if ($page['no_search_sub_entries']) { ..
should be?
protected function skipRecordByRootlineConfiguration(int $pid): bool { /** @var RootlineUtility $rootlineUtility */ $rootlineUtility = GeneralUtility::makeInstance(RootlineUtility::class, $pid); try { $rootline = $rootlineUtility->get(); } catch (PageNotFoundException $e) { return true; } foreach ($rootline as $page) { if (isset($page['no_search_sub_entries']) && $page['no_search_sub_entries']) { return true; } } return false; }
The text was updated successfully, but these errors were encountered:
@LinkPool2 Thanks for reporting that issue. Could you please provide a pull request and port for that?
Current state:
ext-solr/Classes/IndexQueue/RecordMonitor.php
Lines 193 to 208 in df336e1
MUST be changed to if ($page['no_search_sub_entries'] ?? false) { :
if ($page['no_search_sub_entries'] ?? false) {
protected function skipRecordByRootlineConfiguration(int $pid): bool { /** @var RootlineUtility $rootlineUtility */ $rootlineUtility = GeneralUtility::makeInstance(RootlineUtility::class, $pid); try { $rootline = $rootlineUtility->get(); } catch (PageNotFoundException $e) { return true; } foreach ($rootline as $page) { if ($page['no_search_sub_entries'] ?? false) { return true; } } return false; }
Target versions:
Sorry, something went wrong.
Fixed in #3381, #3438
No branches or pull requests
Describe the bug
[BUG] PHP Warning: Undefined array key "no_search_sub_entries" in typo3conf/ext/solr/Classes/IndexQueue/RecordMonitor.php line 203
should be?
The text was updated successfully, but these errors were encountered: