未定义索引:网站Product.php 510 Magento

时间:2016-09-10 23:35:12

标签: magento export

数据流出口突然停止,甚至在Magento 1.9.2.4中都没有触发

我在这里尝试了修复http://thewebsiteguy.xyz/magento-1-9-2-dataflow-export-error-undefined-index-website/,但没有快乐。

有没有人对这里发生的事情有任何想法?

2016-09-10T20:42:56+00:00 DEBUG (7): Object type dataflow/batch_export considered 
2016-09-10T20:42:56+00:00 DEBUG (7): Save before for dataflow/batch_export
2016-09-10T20:42:56+00:00 DEBUG (7): Object type dataflow/batch_export considered 
2016-09-10T20:42:56+00:00 DEBUG (7): Do NOT force Orig Data for dataflow/batch_export
2016-09-10T20:42:56+00:00 DEBUG (7): Object type dataflow/batch_export considered 
2016-09-10T20:42:56+00:00 DEBUG (7): Object type dataflow/batch_export considered 
2016-09-10T20:42:56+00:00 DEBUG (7): Unable to find description for type dataflow/batch_export
2016-09-10T20:42:56+00:00 DEBUG (7): Retrieve description for insert
2016-09-10T20:42:56+00:00 DEBUG (7): Object type adminlogger/log ignored 
2016-09-10T20:42:56+00:00 DEBUG (7): Save before for 
2016-09-10T20:42:56+00:00 DEBUG (7): Object type adminlogger/log ignored 
2016-09-10T20:42:56+00:00 DEBUG (7): Do NOT force Orig Data for 
2016-09-10T20:42:56+00:00 DEBUG (7): Object type adminlogger/log ignored  
2016-09-10T20:42:56+00:00 ERR (3): Notice: Undefined index: website  in /home/josh/public_html/britex/app/code/core/Mage/Catalog/Model/Convert/Parser/Product.php on line 510

1 个答案:

答案 0 :(得分:1)

第423行

change ‘websites’      => ”, to ‘website’      => ”,

第436行

change $row[‘websites’] = join(‘,’, $websiteCodes); to $row[‘website’] = join(‘,’, $websiteCodes);

第438行

change $row[‘websites’] = $this->getStore()->getWebsite()->getCode(); to $row[‘website’] = $this->getStore()->getWebsite()->getCode();