• I just installed Notifications yesterday and the site is running WordPress 5.7. I created a trigger for when my custom post type is published, and an email notification to be sent to 2 recipients. The notification was saved without any errors. (I did add my post type under Settings so it was available for the trigger selection.) However, when I test it by changing a post of this type from status “pending review” to “published” the emails are not received by either recipient. I installed a plugin “Email Log” and tested again, and the log is empty so it’s not an email delivery issue. I also checked the PHP error log and there are no errors.

    Could there be an issue with WordPress 5.7 and the trigger for publishing a custom post type? Is there a way to troubleshoot the problem? I could add some code if you tell me what and where for troubleshooting.

    Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi Sharon,

    could you please export the notification from the Settings -> Import/Export screen? You can copy the .json file contents and paste it here, removing any sensitive data like emails from the content.

    Also, how do you publish this? Is it happening in wp-admin on the standard edit screen or from the frontend or any 3rd party post editor?

    Thread Starter sharon9923

    (@sharon9923)

    It is being published from wp-admin, standard edit screen – clicking the blue publish button.

    Here is the .json file:

    [
        {
            "hash": "notification_606d22548a92b",
            "title": "Notification to author when bulletin board post is published",
            "trigger": "post\/rolfing_si_research\/published",
            "carriers": {
                "email": {
                    "activated": "1",
                    "enabled": "1",
                    "subject": "Notification from SI Research Bulletin Board",
                    "body": "Your post \"{post_title}\" was just published!\r\n\r\nView it: {post_url}\r\n\r\nYour post is now on the bulletin board: https:\/\/rolfresearchfoundation.org\/rolfing-si-research-bulletin-board",
                    "recipients": [
                        {
                            "type": "email",
                            "recipient": "{post_author_user_email}"
                        },
                        {
                            "type": "email",
                            "recipient": "[email protected]"
                        },
                        {
                            "type": "email",
                            "recipient": ""
                        }
                    ]
                }
            },
            "enabled": true,
            "extras": [],
            "version": 1617766290
        }
    ]

    Thanks for getting back so quickly.

    Thread Starter sharon9923

    (@sharon9923)

    Is there anything I can test to help with troubleshooting this? I noticed the plugin is only tested through WordPress 5.6.2 and I am using WordPress 5.7.

    We need this feature to work to launch a project that is otherwise completed. I prefer not to try another plugin for email notification because your plugin is the most flexible, we can add other triggers in the future if needed.

    Thank you for your help.

    Thread Starter sharon9923

    (@sharon9923)

    I found I had used some invalid tags in the message body. Here is the export of the current notification. It still does not send an email to either recipient:

    [
        {
            "hash": "notification_606d22548a92b",
            "title": "Notification to author when bulletin board post is published",
            "trigger": "post\/rolfing_si_research\/published",
            "carriers": {
                "email": {
                    "activated": "1",
                    "enabled": "1",
                    "subject": "Notification from SI Research Bulletin Board",
                    "body": "Your post \"{rolfing_si_research_title}\" was just published!\r\n\r\nView it: {rolfing_si_research_permalink}\r\n\r\nYour post is now on the bulletin board: https:\/\/rolfresearchfoundation.org\/rolfing-si-research-bulletin-board",
                    "recipients": [
                        {
                            "type": "email",
                            "recipient": "{post_author_user_email}"
                        },
                        {
                            "type": "email",
                            "recipient": "[email protected]"
                        },
                        {
                            "type": "email",
                            "recipient": ""
                        }
                    ]
                }
            },
            "enabled": true,
            "extras": [],
            "version": 1618343839
        }
    ]
    Thread Starter sharon9923

    (@sharon9923)

    I’m following up to see if you will be able to fix this problem? In the meanwhile I am using another plugin which works well to notify authors when this custom post type is published. I would prefer to switch to your plugin when you fix this issue because it is so much more flexible. The plugin I am using now ONLY notifies authors when their post is published, it can’t do anything else.

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Sorry for the late reply. Unfortunately, we weren’t able to replicate the issue. It works in every of our testing cases

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Trigger not sending notification for CPT published’ is closed to new replies.