Project

General

Profile

Actions

Bug #100845

closed

TypeError setTargetPageType has to be int, string given

Added by Stefan Froemken 12 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
Must have
Category:
Fluid
Target version:
Start date:
2023-05-09
Due date:
% Done:

100%

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

Description

Hello,

I'm working with RSS feed XML output of extension news. In fluid template you can find following line:

<atom:link href="{f:uri.page(pageType: settings.list.rss.channel.typeNum, absolute: 'true')}" rel="self" type="application/rss+xml" />

The problem is the TypoScript object path which only can return string or array values. But pageType expects an integer value.
I don't see an easy solution to convert string2int in fluid itself, so, the idea would be to cast that value in PageViewHelper itself.

I will create a patch

Stefan

Actions #1

Updated by Gerrit Code Review 12 months 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/+/79003

Actions #2

Updated by Gerrit Code Review 12 months 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/+/79003

Actions #3

Updated by Gerrit Code Review 11 months 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/+/79003

Actions #4

Updated by Gerrit Code Review 11 months ago

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

Actions #5

Updated by Gerrit Code Review 11 months ago

Patch set 1 for branch 11.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/+/79132

Actions #6

Updated by Stefan Froemken 11 months ago

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

Also available in: Atom PDF