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

Marker icon for custom tables broken when using "IMAGE" #149

Closed
hannesbochmann opened this issue Nov 17, 2023 · 0 comments · Fixed by #150
Closed

Marker icon for custom tables broken when using "IMAGE" #149

hannesbochmann opened this issue Nov 17, 2023 · 0 comments · Fixed by #150

Comments

@hannesbochmann
Copy link
Contributor

When using something like

plugin.tx_odsosm_pi1.icon {
    tt_address = IMAGE
    tt_address {
        file = EXT:...
    }
}

I get a PHP warning:

PHP Warning: Trying to access array offset on value of type null in /var/www/html/vendor/bobosch/ods-osm/Classes/Controller/PluginController.php line 543'

Even if the warnings would be tolerated, this would end in the follwoing error:

Call to a member function getPublicUrl() on null
/var/www/html/vendor/bobosch/ods-osm/Classes/Provider/Leaflet.php'
line: 294

The problem is the usage of $GLOBALS['TSFE']->lastImageInfo which got removed.

hannesbochmann added a commit to DMKEBUSINESSGMBH/ods_osm that referenced this issue Nov 17, 2023
hannesbochmann added a commit to DMKEBUSINESSGMBH/ods_osm that referenced this issue Nov 17, 2023
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

Successfully merging a pull request may close this issue.

1 participant