Project

General

Profile

Actions

Bug #89816

closed

error in linkPage generation

Added by david no-lastname-given almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2019-12-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

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

Actions #2

Updated by Anonymous over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

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

Actions #4

Updated by Anonymous over 4 years ago

  • Status changed from Under Review to Resolved
Actions #5

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF