• Resolved kipstyle

    (@kipstyle)


    Fatal error when publishing news.
    Fatal error: Cannot use object of type stdClass as array in /home/wp-content/plugins/wp-discord/includes/class-wp-discord-guild.php on line 133

    • This topic was modified 7 years ago by kipstyle.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Space

    (@bkno)

    I see this too.

    Thread Starter kipstyle

    (@kipstyle)

    how to fix?

    Space

    (@bkno)

    Debugged this. Instead of getting a webhook back it was returning error 50013 ‘Missing Permissions’. To resolve edit each channel permissions within Discord and add a new permission set for your bot, ensuring they can post messages and create web hooks. It works for me now.

    Plugin Author Raymond Perez

    (@rspraymond)

    @bkno

    Sorry for the late reply. Glad you figured it out. I pushed our version 0.4.1 this morning which should now check your configuration and show a message if the plugin doesn’t get any channels back.

    This might not directly handle your issue with permissions but it should apply to those who may have not setup their plugin or have incorrect credentials.

    Thanks

    Raymond

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error when publishing news.’ is closed to new replies.