0

If I go to SYSTEM > NOTIFICATIONS > INBOX and click the "REMOVE" link next to any of the active messages, the page refreshes and the message no longer appears in the listing indicating it has been successfully permanently "REMOVED".

The next day the message reappears as if it had never been removed. Is that normal behavior or should a massage PERMANENTLY be removed when clicking "remove"?

I also attempted to select all 248 messages in my admin inbox and remove them all. They appeared to be removed and the inbox showed that there were zero messages left in it (see image)

The next day all 248 messages will reappear in the inbox like they were never removed.

How can this problem be corrected so when I remove all of the messages in my inbox, they stay permanently removed and never reappear.

This happens every single time I try and delete any of the messages in the inbox.

Select all messages and remove all

All 248 messages successfully deleted, the next day they all reappear as though they were never deleted

It has been three days now and the messages remain deleted thanks to Jonathan's insight into the problem. It was in fact the cache maintenance script that I was running every night via cron. It would reset the red/deleted flag and the messages would all reappear as though they were never removed or read.

enter image description here

3 Answers 3

2

Messages aren't actually deleted from the database when removing them in admin. It works this way because when a new notification comes in the title of this notification is compared against the titles of existing notifications and if a notification with the same title already exists the notification is considered to already have been received and so is discarded.

Each notification has a 'read' and 'removed' flag and this is all that gets set when reading or removing in admin. This should however successfully stop the notifications from showing in admin again. An interesting point here however is that if the notifications are actually removed from the database (by clearing the adminnotification_inbox table) then Magento will consider none of the notifications to have been received before as there are no titles to compare to. The result is that all notifications are pulled in again - it sounds like you could have customisations to your store which actually remove the relevant database entries rather than just flagging them when you remove them from admin.

You can either:

  1. Disable the block output of the notifications module in admin if you don't want to see any notifications at all, including those from Magento (system -> configuration -> advanced -> disable modules output -> disable Mage_AdminNotification)
  2. Or use an extension such as our Spam Filter which will stop notifications from third party sources coming through but still allow notifications from Magento themselves (notifications won't even be written to the database, they are just thrown away).
4
  • YES! Finally someone who understands my question. Thank you Jonathan. I do not want to disable the admin notifications, I simply want to be able to select "remove" for a massage and have it not reappear the next day. I wonder if it has something to do with the log and cache maintenance script that runs every evening via cron. I am going to disable it tonight and see if it is fixed. Here is the script: crucialwebhost.com/kb/magneto-log-and-cache-maintenance-script Thank you for your reply. I will update you on weather or not it worked. Commented Nov 4, 2014 at 20:16
  • Jonathan, below are the tables that the cache maintenance script was truncating. Do you know which one would have affected the messages? Thanks: Commented Nov 7, 2014 at 21:14
  • 'aw_core_logger', 'dataflow_batch_export', 'dataflow_batch_import', 'log_customer', 'log_quote', 'log_summary', 'log_summary_type', 'log_url', 'log_url_info', 'log_visitor', 'log_visitor_info', 'log_visitor_online', 'index_event', 'report_event', 'report_viewed_product_index', 'report_compared_product_index', 'catalog_compare_item', 'catalogindex_aggregation', 'catalogindex_aggregation_tag', 'catalogindex_aggregation_to_tag' Commented Nov 7, 2014 at 21:14
  • adminnotification_inbox is where messages admin messages are stored. Commented Nov 8, 2014 at 7:56
0

Just Disable Mage_AdminNotification module from in your system from System > Configuration > Advanced > Disable modules select Mage_AdminNotification module then change it status to disable and click on save button then clear cache.Now you cannot see admin notifications

See more details: http://inchoo.net/magento/how-to-fully-disable-turn-off-magento-module/

https://www.yireo.com/tutorials/magento/magento-administration/665-disabling-magento-modules

1
  • My question was not how to disable admin notifications, my question was how to keep deleted massages, or removed messages from reappearing as unread. I still want to see my notifications, I just don't want to see the ones that I have previously marked as read or removed. Commented Nov 4, 2014 at 20:05
0

Disable Mage_AdminNotification from your admin panel.

or refer below link.

Disable Magento Admin Notification

1
  • My question was not how to disable admin notifications, my question was how to keep deleted massages, or removed messages from reappearing as unread. I still want to see my notifications, I just don't want to see the ones that I have previously marked as read or removed. Commented Nov 4, 2014 at 20:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.