Bug #89816
closederror in linkPage generation
100%
Description
I get sometimes an error in searchcontroller in function linkPage.
first i get two warnings:
Core: Error handler (FE): PHP Warning: array_replace_recursive(): Argument #2 is not an array in /sysext/indexed_search/Classes/Controller/SearchController.php line 1335
Core: Error handler (FE): PHP Warning: array_merge(): Argument #1 is not an array in //sysext/indexed_search/Classes/Controller/SearchController.php line 1345
then an error:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 3 passed to TYPO3\CMS\IndexedSearch\Controller\SearchController::preparePageLink() must be of the type array, null given, called in /sysext/indexed_search/Classes/Controller/SearchController.php on line 1352
In my project sometimes "null" is stored for "static_page_arguments" in the database. Most other records are stored with "". I think this happens with option "Index Records immediately when saved?"
if ($row['static_page_arguments'] !== null --> is not working.
if ($row['static_page_arguments'] !== null && $row['static_page_arguments'] != 'null') { --> works for me
Updated by Gerrit Code Review over 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63414
Updated by Anonymous over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 05bf35d717fda726e20260ff75c711b2670f0a63.
Updated by Gerrit Code Review over 4 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63448
Updated by Anonymous over 4 years ago
- Status changed from Under Review to Resolved
Applied in changeset dd9be5a97a43640c3098c5a8f93eb1c66f018935.