Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Errormessage in typo3 errorlog when i switch to another page in ListView #1311

Open
BFallert opened this issue Aug 21, 2024 · 1 comment
Assignees
Labels
🐛 bug A non-security related bug.

Comments

@BFallert
Copy link
Collaborator

BFallert commented Aug 21, 2024

Description

When I call up a ListView page and then switch to another page, I get the following entry in the Typo3 error log. Always 10 entries per switch.

Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading
Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading
Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading
Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading
Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading
Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading
Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading
Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading
Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading
Wed, 21 Aug 2024 15:35 +0200 [ERROR] request="352a84f766748" component="Kitodo.Dlf.ExpressionLanguage.DocumentTypeFunctionProvider": Empty UID or invalid PID "3" for document loading

Reproduction

Steps to reproduce the behaviour:

  1. Go to a ListView
  2. Click on "next page" or a special page in the ul class="pagination"
  3. See message in typo3 errorlog

Expected Behavior

In this case, no error message is necessary.

Screenshots and Examples

image

Environment

  • TYPO3 version: 10.4.38
  • PHP version: [e.g. 7.4.33]

Additional Context

https://github.com/kitodo/kitodo-presentation/blob/master/Classes/ExpressionLanguage/DocumentTypeFunctionProvider.php#L113-L138

see PR #1310

@beatrycze-volk
Copy link
Collaborator

Thanks for your fix. It removes the error from the log, but not the reason for the described bug.

ListView page should not call the DocumentTypeFunctionProvider. Probably there must be some problem with the template which for some reason fires it. I would not close this issue until it is not checked out and corrected.

@sebastian-meyer sebastian-meyer added the 🐛 bug A non-security related bug. label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug A non-security related bug.
Projects
None yet
Development

No branches or pull requests

4 participants