Project

General

Profile

Actions

Bug #83532

closed

ExtensionManagementUtility::addLLrefForTCAdescr don't detect parameter

Added by Hans-Georg Althoff over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2018-01-10
Due date:
% Done:

100%

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

Description

After installing a own extension I received the error message:

No extension key set in addLLrefForTCAdescr(). Provide it as third parameter

But in the ext_tables.php the code looks like

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_hgapeopledb_domain_model_people', 'EXT:hgapeopledb/Resources/Private/Language/locallang_csh_tx_hgapeopledb_domain_model_people.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_hgapeopledb_domain_model_peoplegroup', 'EXT:hgapeopledb/Resources/Private/Language/locallang_csh_tx_hgapeopledb_domain_model_peoplegroup.xlf');

The term "Provide it as third parameter" is very strange for me. Because in the code the first parameter is checked!
And this parameter is not empty in both cases.


Files

hgapeopledb.7z (497 KB) hgapeopledb.7z Hans-Georg Althoff, 2018-01-11 10:03
Actions #1

Updated by Nicole Cordes over 6 years ago

  • Status changed from New to Needs Feedback

Hi,

Would you mind to provide either the extension or the complete error log? Maybe you have moved some code to Configuration/TCA/Overrides folder and forget to provide the extension key instead of $_EXTKEY?

Actions #2

Updated by Gerrit Code Review over 6 years ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55327

Actions #3

Updated by Hans-Georg Althoff over 6 years ago

Thanks for your support. I have attached the file.
Under 8.7.9 the ext works fine.

Actions #4

Updated by Nicole Cordes over 6 years ago

Hi,

The problems raise up within your Configuration/TCA/Override files. All three files call the function with an empty first parameter. The patch attached to this issue, is solving the exception message. But the implementation problem is on your site.

Thank you for sharing the extension and being able to analyse the problem.

Actions #5

Updated by Nicole Cordes over 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF