Support » Plugin: OneSignal - Web Push Notifications » Help with Fatal error: Uncaught Error:

  • Resolved freewilly12


    Hello, I just started to recieve below msg when I post an article with “send notifications”:

    Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /[WEBSITE]/wp-content/plugins/onesignal-free-web-push-notifications/onesignal-admin.php:755 Stack trace: #0 /[WEBSITE]/wp-content/plugins/onesignal-free-web-push-notifications/onesignal-admin.php(840): OneSignal_Admin::send_notification_on_wp_post(‘publish’, ‘publish’, Object(WP_Post)) #1 /[WEBSITE]/wp-includes/class-wp-hook.php(286): OneSignal_Admin::on_transition_post_status(‘publish’, ‘publish’, Object(WP_Post)) #2 /[WEBSITE]/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /[WEBSITE]/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /[WEBSITE]/wp-includes/post.php(4446): do_action(‘transition_post…’, ‘publish’, ‘publish’, Object(WP_Post)) #5 /[WEBSITE]/wp-includes/post.php(3852): wp_transition_post_status(‘publish’, ‘publish’, Object(WP_Post)) #6 /[WEBSITE]/wp-includes/post.php(4028 in /[WEBSITE]/wp-content/plugins/onesignal-free-web-push-notifications/onesignal-admin.php on line 755

    Can anybody help me with this? Thanks

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,
    Please contact us through support over at and we will be happy to help you with a temporary fix!

    Rodrigo from OneSignal

    For anyone who is having this problem, head over to our repository and click the green download button > Zip. You can then deactivate and remove the version you have installed, upload the version with fixes, and hopefully this solves some of the errors a few folks are seeing.


    Rodrigo from OneSignal

    • This reply was modified 1 year, 8 months ago by rgomezp.

    Unfortunately, your link sends us to a GitHub 404 page, @rgomezp.
    Where did you mean to send us?

    Plugin Author OneSignal


    @tacoverdo Sorry about that. Here is the link to version 1.16.13

    • This reply was modified 1 year, 8 months ago by OneSignal.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help with Fatal error: Uncaught Error:’ is closed to new replies.