Reminder: Change Magento`s default phone numbers and callouts before site launch
来源:互联网 发布:edu是顶级域名? 编辑:程序博客网 时间:2024/04/30 17:44
Ok, finally fixed it.
This is a Magento bug, both with the notification rss feeds, and the logic behind checking whether Magento already has downloaded them or not. You can check the feeds manually here:http://notifications.magentocommerce.com/community/notifications.rss - and you’ll notice most of them have xml tags, in particular the ‘link’ tag. However, the annoying reminder “Reminder: Change Magento`s default phone numbers and callouts before site launch” does not have a link value, which is the problem.
When a feed is updated in the database, table ‘adminnotification_inbox’, the columns ‘is_read’, ‘is_remove’ and ‘url’ are updated. In the annoying message case, the ‘url’ column is updated with NULL (or left as empty if the message has not been touched). The code iterates through all feed items, and looks in the database if it has an item already based on it’s url. If the url matches it will not be inserted into the database. However, in this case, the url is NULL so the code fails and the same notification is inserted into the table.
The solution is simple:
1. Copy the file app/code/core/Mage/AdminNotification/Model/Resource/Inbox.php to app/code/local/Mage/AdminNotification/Model/Resource
2. Modify line 102, from:
$select = $adapter->select()
->from($this->getMainTable())
->where('url=?', $item['url']);
to
$select = $adapter->select()
->from($this->getMainTable())
->where('url=? OR url IS NULL', $item['url'])
->where('title=?', $item['title']);
That’s it. Leave the admin for a little and log back in. You’ll see the notice has not come back.
Regards,Michael.
- Reminder: Change Magento`s default phone numbers and callouts before site launch
- Change the default Phone ringtone and notification ringtone
- [Magento] Change store's language and currency according to customer's GeoIP?
- change MySQL's config file and let it use utf-8 by default
- drupal7 change value before validate and submit
- PS PIA Change Default Content and Layout
- Modulo and Reminder
- download video from "ku6" web site and change to mp3
- 0326- morning plan and reminder
- Change Default User and Password for Cognos Content Database
- reminder
- Reminder
- Magento’s Class Instantiation Abstraction and Autoload
- Magento Site Performance Optimization
- Phone Numbers
- MS CRM Callouts Tip - Debug and Development
- Change the magento theme:
- Change SAP default client
- HTablePool简单使用例子
- Java中的集合类Collection接口和Map接口以及列表和LinkedList类
- Tomcat运行Java Web内存溢出总结
- SQL索引
- 千锋培训--android ddms中查看线程释疑
- Reminder: Change Magento`s default phone numbers and callouts before site launch
- 习题6.23
- svn 冲突
- 如何下载CSS中的图片
- HTML5在PhoneGap框架下开发IOS应用时常用操作和设置
- webbrowser显示网页游戏时偶尔出现白屏解决办法。
- hdu 1035 Robot Motion
- tail的退出
- Inno Setup-----------捆绑插件与更改快捷方式图标