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

  • Resolved ozgurtheg

    (@ozgurtheg)


    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 onesignal.com and we will be happy to help you with a temporary fix!

    Best,
    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.

    Thanks

    Rodrigo from OneSignal

    • This reply was modified 4 months, 1 week ago by  rgomezp.

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

    Plugin Author OneSignal

    (@onesignal)

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

    • This reply was modified 4 months, 1 week ago by  OneSignal.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.