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

PrevNext in translated Detail View not working #2596

Open
izaquieltome opened this issue Dec 16, 2024 · 1 comment
Open

PrevNext in translated Detail View not working #2596

izaquieltome opened this issue Dec 16, 2024 · 1 comment

Comments

@izaquieltome
Copy link

Bug Report

Current Behavior
When having a Multilang-Website the PrevNext Buttons cause following Error on translated Pages:
Call to protected method TYPO3\CMS\Core\Domain\Repository\PageRepository::getRecordOverlay() from scope GeorgRinger\News\ViewHelpers\SimplePrevNextViewHelper

This happens after Upgrading a Typo3 12 to Typo3 13 and News Version 12.2.0.
Maybe the function used for this changed in Typo3 13?

Environment

  • TYPO3 version(s): 13.4.2
  • news version: 12.2.0
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: Server: Linux
@izaquieltome
Copy link
Author

Seems I am the only one having this problem?

I tried to fix this myself ... but I failed.
What I tried:
I changed the Method "getRecordOverlay" to "getLanguageOverlay" as described in the API docs of Typo3 13.
In this Case the function get's a bit shorter to this:
$overlay = $GLOBALS['TSFE']->sys_page->getLanguageOverlay(
'tx_news_domain_model_news',
$rawRecord
);
a var_dump shows, the data is loaded - but then it come's to an Error of the mapper, saying cal to a member function map() on NULL.
Here is where I don't get further.
But maybe this helps.

It would be really great to solve this, as I am using this function in many productive customer websites and this stops all sites from being upgraded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant