Project

General

Profile

Actions

Bug #88304

closed

PageRouter: Php warning (empty needle)

Added by Benny Schimmer almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-05-08
Due date:
% Done:

100%

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

Description

After Upgrading to TYPO3 v9.5.6 i get the php Warning:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Warning: strpos(): Empty needle in /vagrant/htdocs/typo3/sysext/core/Classes/Routing/PageRouter.php line 126

It only occurs on Subpages (obviously) where the PageRouter is used.

The normalizedParams (scriptName) ist an empty string.

Im using nginx with php-fpm (7.3).

Debug of some of my $_SERVER values.

  • $_SERVER['ORIG_PATH_INFO'] => not set
  • $_SERVER['PATH_INFO'] => empty string
  • $_SERVER['ORIG_SCRIPT_NAME'] => not set
  • $_SERVER['SCRIPT_NAME'] => '/index.php' (10 chars)

To avoid the error:
1. Set TYPO4 to Live Mode in Install Tools Configuration Presets
or
2. Replace the if condition in line 136 with:
if (!empty($scriptName) && strpos($urlPath, $scriptName) !== false) {

Actions #1

Updated by Gerrit Code Review almost 5 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/+/60719

Actions #2

Updated by Gerrit Code Review almost 5 years ago

Patch set 2 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/+/60719

Actions #3

Updated by Markus Klein almost 5 years ago

  • Description updated (diff)
Actions #4

Updated by Gerrit Code Review almost 5 years ago

Patch set 3 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/+/60719

Actions #5

Updated by Gerrit Code Review almost 5 years ago

Patch set 4 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/+/60719

Actions #6

Updated by Gerrit Code Review almost 5 years ago

Patch set 5 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/+/60719

Actions #7

Updated by Gerrit Code Review almost 5 years ago

Patch set 6 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/+/60719

Actions #8

Updated by Gerrit Code Review almost 5 years ago

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/+/60734

Actions #9

Updated by Benjamin Franzke almost 5 years ago

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

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF