“Invalid entity model” error while exporting csv f

2020-07-23 05:07发布

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 .

2条回答
够拽才男人
2楼-- · 2020-07-23 05:18

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_');
查看更多
Animai°情兽
3楼-- · 2020-07-23 05:19

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.

查看更多
登录 后发表回答