---
title: "Deprecation: #85971 - PageRepository->getFirstWebPage"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-85971"
source: "Changelog/9.4/Deprecation-85971-DeprecatePageRepository-getFirstWebPage.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Deprecation: #85971 - PageRepository->getFirstWebPage

See [forge#85971](https://forge.typo3.org/issues/85971)

## Description

The method php:`PageRepository->getFirstWebPage()` is only used when no "?id" parameter is given, and no rootpage was resolved.

As this is the only use-case, a more generic "getMenu" method can be used, which does the
same except for not "limiting" the query to one result, so there is a minimal memory penalty when doing so.
However due to Pseudo-Site functionality this drawback only applies to rare cases.

## Impact

Calling the method directly will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations

Any TYPO3 installation with extensions directly calling this method.

## Migration

Use php:`PageRepository->getMenu()` instead.
