• Resolved lkochniss

    (@lkochniss)


    The plugin worked just fine with webhook and a custom text. Since yesterdays update the plugin won’t trigger on any new post.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Please, check that the settings are all correctly configured in Settings > WP Discord Post.

    I tested it again and it works fine on my end.

    derekwcodes

    (@envyskins)

    Yeah, on first publish the articles are not pushing to discord anymore. I have to check Process Old Posts, then update my article.

    Thread Starter lkochniss

    (@lkochniss)

    I checked the configuration. Everything ok there. Checking the option for processing old posts fixed my issue.

    Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    @envyskins @lkochniss I keep testing but it all works properly on my site. Can you try to do some testing on yours?

    Open the file wp-content/plugins/wp-discord-post/includes/class-wp-discord-post-post.php and replace the code from line 73 to 82 with this one: https://gist.github.com/SiR-DanieL/e4849cb8a23d819c7b1b9847319b9e28

    This code will cause your post to not be sent to Discord, but it will show some code on your screen when you click Publish. Can you tell me what you see?

    Hi Nicola, I am experiencing the same issue and after following your request above I get the following:

    bool(false) bool(false) bool(true)

    Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Thank you @kr3t3n.
    Your test results make me think that it has nothing to do with the Process Old Posts option because it does not use it in your case. It treats the post as a new one, and should simply go ahead and send it to Discord.

    I’ll write some more code for debugging and let you know the next steps, next week. Thanks for the help so far!

    Thanks @nicolamustone, I haven’t even tried the ‘Process Old Posts’ option as that is not what I’m looking for and I trust the fellas above that it does work.

    Thank you for looking into this! ??

    Looking forward to the next steps & debugging code

    @nicolamustone, additional feedback:

    When a post by another author is published, for unknown reason, the plugin works as intended. I’ve found that by accident yesterday. Still unsure why. To provide background on the event:
    The other user has Contributor role, they submitted to post for review. I reviewed and published it as Administrator and it was sent to Discord via the designated Bot user.
    At first I thought maybe it got fixed somehow but after publishing a post where I was the author I realized it was not the case.

    Let me know if you have any additional questions or if you need another test to be run.

    Plugin Author Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Sorry for the delay. I removed the option added in v1.1.0. Now you can use the filter wp_discord_post_is_new_post if you want to post old posts.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Discord Bot not triggered since update’ is closed to new replies.