Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Call to undefined method ContentObjectRenderer::TEXT() #101

Open
jvanderkroon opened this issue Oct 24, 2019 · 3 comments
Open

Call to undefined method ContentObjectRenderer::TEXT() #101

jvanderkroon opened this issue Oct 24, 2019 · 3 comments
Labels

Comments

@jvanderkroon
Copy link

jvanderkroon commented Oct 24, 2019

After installing caretaker 1.0.0 on a fresh TYPO3 v8.7.28 instance i get the following error on a page with the pi_overview plugin

Call to undefined method TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::TEXT()

Error thrown in file
/var/www/html/www/typo3conf/ext/caretaker/Classes/helpers/class.tx_caretaker_LocalizationHelper.php in line 76.

I think this is related to this change https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/8.0/Breaking-72361-RemovedDeprecatedContentObjectWrappers.html?highlight=text%20contentobjectrenderer

@TehTux
Copy link
Member

TehTux commented Oct 25, 2019

I didn't migrate the plugins because we don't currently use them. You are welcome to create a pull request in the 1.x branch.

@OlafDoering
Copy link

In Classes/helpers/class.tx_caretaker_LocalizationHelper.php line 76 needs to be changed from
old: $result = $lcObj->TEXT(array('data' => $locallangString));
new: $result = $lcObj->cObjGetSingle('TEXT',array('data' => $locallangString));

That resolves the problem.

@TehTux TehTux added the wontfix label Oct 31, 2019
@jvanderkroon
Copy link
Author

THNX @OlafDoering frontend works after changing line 76.

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

No branches or pull requests

3 participants