“Invalid entity model” error while exporting csv file for products

僤鯓⒐⒋嵵緔 提交于 2019-12-06 08:17:30

问题


while exporting a products csv file from backend magento admin panel, it prompts me the following error when i click continue to generate the csv file.

"Invalid Entity Model"

I am using magento 1.6.2 CE.

** edited **

I am using magento default export/import services mean from admin system -> configuration -> export/import .....

plz ask me any question if it is still not clear .


回答1:


Open abstract class Mage_ImportExport_Model_Export_Adapter_Abstract and replace

$destination = tempnam(sys_get_temp_dir(), 'importexport_');

to

$destination = tempnam(Mage::getBaseDir() . '/var/tmp/'  , 'importexport_');



回答2:


If you are on a Windows PC, it may be an issue with the permissions on the Temp folder. I had to update the sercurity permissions through right clicking on C:\Windows\Temp and then select Properties->Security->Edit... and set the permissions to the group/user names appropriately. I have given Full Control to all the users, to test it. I am on a Windows 7 PC.



来源:https://stackoverflow.com/questions/10595957/invalid-entity-model-error-while-exporting-csv-file-for-products

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!