bobosch / ods_osm

TYPO3 Extension OpenStreetMap
10 stars 20 forks source link

An exception occurred while saving the data: PHP Warning: Undefined array key "region" #197

Open Pekkonen opened 3 days ago

Pekkonen commented 3 days ago

Hi! I have a bug with ods_osm, but I'm not sure in 100% in that. I have TYPO3 12.4.21, bobosch/ods-osm - 4.2.2 and cobweb/external_importb - 7.2.5. Then I trying to import CSV file to tt_address table I have an exception about ods_osm:

An exception occurred while saving the data: PHP Warning: Undefined array key "region" in /var/www/html/site/vendor/bobosch/ods-osm/Classes/TceMain.php line 318 (code: 1476107295, location: /var/www/html/site/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php at line 141)

In MySQL tt_address I have a correct structure with region table. TYPO3 database analyse I have - "Database schema is up to date. Good job!"

When I uninstall ods_osm everything is going right without any errors. In import process I have just mapping data from CSV columns to the tt_address columns, but no handling "region" column

albig commented 3 days ago

Thank you for the report. I'll have a look this evening.

Pekkonen commented 3 days ago

When I'm trying to use custom transformation for latitude and longitude (not simple get/put values from CSV, but transform it in my viewhelper) I have a same error but about longitude: An exception occurred while saving the data: PHP Warning: Undefined array key "longitude" in /var/www/html/site/vendor/bobosch/ods-osm/Classes/TceMain.php line 318 (code: 1476107295, location: /var/www/html/site/vendor/typo3/cms-core/Classes/Error/ErrorHandler.php at line 141)

albig commented 23 hours ago

Don't know, howto reproduce. Could you please share a line of your CSV file and/or the ViewHelper your are using?