Leuchtfeuer / locate

The users country and preferred language and other facts will be detected. Depending on configurable rules the user can be redirected to other languages or pages. New functionality can be added easily.
https://www.Leuchtfeuer.com
GNU General Public License v2.0
9 stars 14 forks source link

Unable to create records, if static info tables is not installed #52

Closed npoggenburg closed 5 months ago

npoggenburg commented 8 months ago

TYPO3 12 PHP8.1 Current Locate release

Composer Json suggests to use Static Info Tables: https://github.com/Leuchtfeuer/locate/blob/5c194776575f9914ecf6a7486c0afa645d8ae2bf/composer.json#L45

The TCA file of the regions table returns an empty Array, if static info tables is not available https://github.com/Leuchtfeuer/locate/blob/5c194776575f9914ecf6a7486c0afa645d8ae2bf/Configuration/TCA/tx_locate_domain_model_region.php#L6

This is causing the following error, when creating a new record in the backend, if Static Info Tables is not installed:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: Undefined array key "ctrl" in /var/www/html/vendor/typo3/cms-backend/Classes/Controller/NewRecordController.php line 603