Project

General

Profile

Actions

Bug #93771

closed

PageRepository and Workspaces

Added by Enrico Kaspar about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2021-03-18
Due date:
% Done:

0%

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

Description

In file

typo3/sysext/frontend/Classes/Page/PageRepository.php

in function getWorkspaceVersionOfRecord is it possible to do a query with empty fields list:

This happens in case of workspaces and fe group restricted pages in function versionOL:

                    // No version found, then check if t3ver_state = VersionState::NEW_PLACEHOLDER
                    // (online version is dummy-representation)
                    // Notice, that unless $bypassEnableFieldsCheck is TRUE, the $row is unset if
                    // enablefields for BOTH the version AND the online record deselects it. See
                    // note for $bypassEnableFieldsCheck
                    /** @var \TYPO3\CMS\Core\Versioning\VersionState $versionState */
                    $versionState = VersionState::cast($row['t3ver_state']);
                    if ($wsAlt <= -1 || $versionState->indicatesPlaceholder()) {
                        // Unset record if it turned out to be "hidden" 
                        $row = false;
                    }

while building the menue.


Files

clipboard-202103180955-kf2ai.png (83.2 KB) clipboard-202103180955-kf2ai.png Enrico Kaspar, 2021-03-18 08:55
Actions #1

Updated by Enrico Kaspar about 3 years ago

PS: The error happens on preview of a engl page (language uid 1) of a workspace out of the backend.

Actions #2

Updated by Enrico Kaspar about 3 years ago

PS2: MySQL 5.5.5-10.3.27-MariaDB-0+deb10u1

Actions #3

Updated by Benni Mack about 3 years ago

  • Status changed from New to Needs Feedback

Hey Enrico,

can you send me your TypoScript definition for the Menu, and extraction of the Site Config for the Languages? This sounds very strange to me, as this API call is usually hidden below other methods.

All the best,
Benni.

Actions #4

Updated by Riccardo De Contardi almost 3 years ago

  • Status changed from Needs Feedback to Closed

No feedback since the last 90 days => closing this issue.

If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.

Thank you and best regards

Actions

Also available in: Atom PDF