• Resolved sjk1000

    (@sjk1000)


    In Settings – Notifications, I deselect Adminstrators and select a specific user to receive notifications. Clicking Save All Changes, the new page shows an error in red “last_sent[digest] is not of type integer.” No changes have been saved.

    Can anyone help out with this. The site owner is complaining of security notifications, that only I should be seeing. Thanks

    • This topic was modified 1 year, 3 months ago by sjk1000.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @sjk1000,

    That sounds like a REST API validation error.

    Add the line below to the wp-config.php file (if not already):

    define('ITSEC_DEBUG', true);

    This will add a new Debug (sub)menu option to the Security menu option. Log into the WordPress backend and navigate to:

    Security > Debug

    In the Settings section of the Debug page select notification-center from the dropdown list. Then click on the Load button.

    On top you’ll find the “last_sent”: { } setting and it’s value(s). Example below:

    {
        "last_sent": {
            "digest": 1699058290
        },
    
    …

    There is a valid integer value of 1699058290 in my example. What value do you see in your env (if any)?

    +++ To prevent any confusion, I’m not SolidWP +++

    • This reply was modified 1 year, 3 months ago by nlpro.
    Thread Starter sjk1000

    (@sjk1000)

    Hi @nlpro,

    Thanks for your reply. This is set to null:

    “last_sent”: {
    “digest”: null
    },

    Thread Starter sjk1000

    (@sjk1000)

    Update: I believe I’ve been able to resolve this…

    On the Debug page, scroll down to Notification Centre and click the Force button on the right hand side to [I assume] send a daily digest. This also inserts a DateTime value in digest’s Last Send and Next Send, replacing the Null.

    To check, as described above, reload this Debug page select?notification-center?from the dropdown list. Then click on the?Load button.

    The last_sent digest value should now be an integer, as below:

    “last_sent”: {
    “digest”: 1699987980
    },

    In Settings – Notifications, I’m now able to save the changes to Administrator notifications.

    Thanks for the help @nlpro. I wouldnt have been able to do this without your response.

    [I’ll mark this as resolved when I can confirm with the site owner that he isn’t receiving digest emails]

    Hi @sjk1000,

    As null is not a valid integer value, that value is invalid. Hence the error. It’s a bit of a mystery how that null value got there. It should not be possible.

    Anyway, you can replace the null value with 0 (zero) and then click on the Save button. Now there are 2 things that can happen:

    • A “Module settings updated.” msg at the top of the page. (Good news).
    • A new (validation) error related to another notification-center setting at the top of the page(Bad news).

    Option 1 is what we hope for, because it will fix your issue.

    Option 2, may indicate the notification-center settings are somehow corrupted. We may have to manually edit more values and repeat until we get option 1.

    Post edit: Ah, I see you’ve found another method to get rid of the invalid null value. Well done!

    • This reply was modified 1 year, 3 months ago by nlpro.
    • This reply was modified 1 year, 3 months ago by nlpro.
    Plugin Support chandelierrr

    (@shanedelierrr)

    Hi @sjk1000, following up here to confirm if you’ve resolved the Notifications settings error.

    I’ll be marking this Resolved, but if you’re still getting the error, please provide steps on how to reproduce it, and we’d be glad to investigate further.

    Thank you!

    Thread Starter sjk1000

    (@sjk1000)

    Hi, yes, sorry I forgot to come back to this. Many thanks for your help. Much appreciated! : )

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t change notification recipients’ is closed to new replies.