dshanske / simple-location

Adds Basic Location Support to Wordpress
https://wordpress.org/plugins/simple-location
Other
29 stars 14 forks source link

Enabled plugin stops attachment metadata from being written to database #286

Closed lostfocus closed 9 months ago

lostfocus commented 9 months ago

When the plugin is enabled, WordPress doesn't save _wp_attachment_metadata to the database after uploading a file. It doesn't make a difference which file type the file is or if it has location data or not. A file uploaded disabling the plugin will save the metadata.

There is also a PHP warning (PHP Warning: Undefined array key "geo_latitude" in /var/www/wp/wp-content/plugins/simple-location/includes/class-sloc-media-metadata.php on line 226) which might be related.

dshanske commented 9 months ago

Will look at this immediately. Probably an error check.

dshanske commented 9 months ago

Try it now. It wasn't returning if there was no location in the file. I fixed it I believe.

lostfocus commented 9 months ago

That's working now, thanks!