Project

General

Profile

Actions

Bug #98486

closed

PHP warning thrown: Array to string conversion in PageLinkBuilder.php

Added by Chris Müller over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2022-09-30
Due date:
% Done:

100%

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

Description

Using the following snippet in a Fluid template (from the documentation examples extension):

<f:link.page pageUid="{settings.singlePid}" additionalParams="{tx_examples_haiku: {action: 'show', haiku: haiku.uid}}">{haiku.title}</f:link.page>

throws the following PHP warning in current main (12.0.x-dev, used commit 3d6c735):

Array to string conversion in /var/www/html/public/typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php line 223

The additionalParams is given as an array, then a string is appended to that array.

I assume, this comes from this commit:
https://github.com/TYPO3/typo3/commit/ae28f3d22f3a69b70f5f976c1e348739ac438331

The usage of the view helper worked some days ago.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #98474: Allow f:link.page and f:uri.page without ExtbaseClosed2022-09-29

Actions
Actions #1

Updated by Chris Müller over 1 year ago

  • Related to Task #98474: Allow f:link.page and f:uri.page without Extbase added
Actions #2

Updated by Chris Müller over 1 year ago

  • Description updated (diff)
Actions #3

Updated by Chris Müller over 1 year ago

  • Target version set to 12.0
Actions #4

Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75926

Actions #5

Updated by Lina Wolf over 1 year ago

  • Category set to Fluid
Actions #6

Updated by Gerrit Code Review over 1 year ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75926

Actions #7

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75926

Actions #8

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75926

Actions #9

Updated by Chris Müller over 1 year ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF