JoryHogeveen / pods-address-maps

This repo contains two addon plugins for dev purposes: Pods Address field & Pods Maps component
20 stars 7 forks source link

Adding a custom marker throws an error. #3

Closed tiptronic closed 4 years ago

tiptronic commented 5 years ago

If I add a Default Map Custom Marker (png, 36x40px), I am getting this error:

Warning: strpos() expects parameter 1 to be string, array given in /Users/andy/Sites/ghs4test/wp-includes/post.php on line 5629

JoryHogeveen commented 5 years ago

It seems this a different kind of error. Could you provide a stack trace so I can see where it's coming from?

tiptronic commented 5 years ago

Warning: strpos() expects parameter 1 to be string, array given in /Users/andy/Sites/ghs4test/wp-includes/post.php on line 5629

1 | 0.0060 | 458280 | {main}( ) | .../admin.php:0 2 | 0.6424 | 46304496 | do_action( ) | .../admin.php:224 3 | 0.6425 | 46304872 | WP_Hook->do_action( ) | .../plugin.php:453 4 | 0.6425 | 46304872 | WP_Hook->apply_filters( ) | .../class-wp-hook.php:310 5 | 0.6425 | 46306000 | PodsComponents->admin_handler( ) | .../class-wp-hook.php:286 6 | 0.6427 | 46310920 | PodsComponents->admin( ) | .../PodsComponents.php:554 7 | 0.6491 | 46329456 | include( '/Users/andy/Sites/ghs4test/wp-content/plugins/pods/ui/admin/components-admin.php' ) | .../PodsComponents.php:574 8 | 0.6674 | 46372992 | PodsForm::field( ) | .../components-admin.php:53 9 | 0.6688 | 46408896 | PodsField_File->input( ) | .../PodsForm.php:272 10 | 0.6748 | 46556696 | PodsField_File->render_input_script( ) | .../file.php:318 11 | 0.6748 | 46556696 | PodsField_File->build_dfv_field_data( ) | .../PodsField.php:366 12 | 0.6756 | 46562976 | PodsField_File->build_dfv_field_item_data( ) | .../PodsField.php:412 13 | 0.6804 | 46566264 | wp_get_attachment_image_src( ) | .../file.php:550 14 | 0.6815 | 46570824 | wp_mime_type_icon( ) | .../media.php:828 15 | 0.6822 | 46576408 | strpos ( ) | .../post.php:5629

JoryHogeveen commented 4 years ago

Related to component changes in core: https://github.com/pods-framework/pods/pull/3634/files#diff-902279f441756aac13555bb1a0826a9d