Title: Uncaught Error: Can only throw objects
Last modified: April 19, 2021

---

# Uncaught Error: Can only throw objects

 *  [lukelol](https://wordpress.org/support/users/lukelol/)
 * (@lukelol)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-can-only-throw-objects/)
 * Occasionally, it seems the bing webmaster tools plugin is unable to connect to
   the bing api (line 303 of class-bing-url-submission-admin-routes.php).
 * This error returns “Uncaught Error: Can only throw objects” and is not gracefully
   handled.
    At least a few other users have had this same issue: [https://github.com/microsoft/bing-wordpress-url-submission-plugin/issues/4](https://github.com/microsoft/bing-wordpress-url-submission-plugin/issues/4)
   [https://wordpress.org/support/topic/%D0%B1%D0%B5%D1%81%D0%BF%D0%BE%D0%BB%D0%B5%D0%B7%D0%B5%D0%BD/](https://wordpress.org/support/topic/%D0%B1%D0%B5%D1%81%D0%BF%D0%BE%D0%BB%D0%B5%D0%B7%D0%B5%D0%BD/)
 * I can confirm I am not over the daily quota, but even if I was, I think this 
   error could fail silently.
 *     ```
       WordPress version 5.7
       Current theme: Twenty Nineteen (version 1.9)
       Current plugin: Bing Webmaster Url Submission (version 1.0.9)
       PHP version 7.3.27
   
       Error Details
       =============
       An error of type E_ERROR was caused in line 303 of the file /mnt/xxx/wp-content/plugins/bing-webmaster-tools/admin/utils/class-bing-url-submission-admin-routes.php. Error message: Uncaught Error: Can only throw objects in /mnt/xxx/wp-content/plugins/bing-webmaster-tools/admin/utils/class-bing-url-submission-admin-routes.php:303
       Stack trace:
       #0 /mnt/xxx/wp-content/plugins/bing-webmaster-tools/admin/class-bing-url-submission-admin.php(193): Bing_Webmaster_Admin_Routes->submit_url_to_bwt('https://xxx...', 'https://xxx...', 'xxx...', 'update', false)
       #1 /mnt/xxx/wp-includes/class-wp-hook.php(292): Bing_Webmaster_Admin->on_post_published('publish', 'publish', Object(WP_Post))
       #2 /mnt/xxx/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
       #3 /mnt/xxx/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
       #4 /mnt/xxx/wp-includes/post.php(5014): do_action('transition_post...', 'publish', 'publish', Object(WP_Post))
       #5 /mnt/xxx/wp-includes/post.php(4284): wp_transition_post_status('publish', 'publish', Object(WP_Post))
       #6 /mnt/xxx/wp-includes/post.php(4486): wp_insert
       ```
   
    -  This topic was modified 5 years, 1 month ago by [lukelol](https://wordpress.org/support/users/lukelol/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [bingwebmastertools](https://wordpress.org/support/users/bingwebmastertools/)
 * (@bingwebmastertools)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-can-only-throw-objects/#post-14349916)
 * Hi [@lukelol](https://wordpress.org/support/users/lukelol/), Thank you for contacting
   us and apologies for the inconvenience caused. We are investigating this issue.
   Requesting you to send your page details, which you need help with on [bwtwordpress@service.microsoft.com](https://wordpress.org/support/topic/uncaught-error-can-only-throw-objects/bwtwordpress@service.microsoft.com?output_format=md).

Viewing 1 replies (of 1 total)

The topic ‘Uncaught Error: Can only throw objects’ is closed to new replies.

 * ![](https://ps.w.org/bing-webmaster-tools/assets/icon-256x256.png?rev=2342595)
 * [Bing URL Submissions Plugin](https://wordpress.org/plugins/bing-webmaster-tools/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bing-webmaster-tools/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bing-webmaster-tools/)
 * [Active Topics](https://wordpress.org/support/plugin/bing-webmaster-tools/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bing-webmaster-tools/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bing-webmaster-tools/reviews/)

## Tags

 * [uncaught error](https://wordpress.org/support/topic-tag/uncaught-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [bingwebmastertools](https://wordpress.org/support/users/bingwebmastertools/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/uncaught-error-can-only-throw-objects/#post-14349916)
 * Status: not resolved