Plugin causes an error
-
Every time I make a post or update an existing post, Share on Mastodon gives me an error. This is from the automatic email:
WordPress version 6.5.5
Active theme: OceanWP (version 3.5.7)
Current plugin: Share on Mastodon (version 0.19.0)
PHP version 7.4.33 Error DetailsAn error of type E_ERROR was caused in line 179 of the file /home/domain/website/wp-content/plugins/share-on-mastodon/includes/class-image-handler.php. Error message: Uncaught Error: Call to undefined function Share_On_Mastodon\mime_content_type() in /home/domain/website/wp-content/plugins/share-on-mastodon/includes/class-image-handler.php:179
Stack trace:0 /home/domain/website/wp-content/plugins/share-on-mastodon/includes/class-post-handler.php(212): Share_On_Mastodon\Image_Handler::upload_image(5201, ‘KINSHI MASAMUNE…’, Array)
/home/domain/website/wp-content/plugins/share-on-mastodon/includes/class-post-handler.php(129): Share_On_Mastodon\Post_Handler->post_to_mastodon(Object(WP_Post))
/home/domain/website/wp-includes/class-wp-hook.php(326): Share_On_Mastodon\Post_Handler->toot(Object(WP_Post))
/home/domain/website/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
/home/domain/website/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
/home/domain/website/wp-includes/post.php(4817): do_action(‘sa
The post is published OK, but never shared on Mastodon.
- You must be logged in to reply to this topic.