4 replies [Last post]
stormer's picture
Offline
Joined: 09/16/2007
Juice: 110
Was this information Helpful?

I'm having real trouble with the import functionality:

I exported an existing product via the product/export menu. When opened in a text editor the file looks fine. I've then gone to import the file but get the following error message:

* warning: fopen(files/NASA11.jpg) [function.fopen]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/xl5_a2/sites/all/modules/ubercart/uc_importer/uc_importer.module on line 860.
* warning: fopen(files/NASA22_BG.jpg) [function.fopen]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/xl5_a2/sites/all/modules/ubercart/uc_importer/uc_importer.module on line 860.

Any help as to what's going on here would be massively appreciated.

thanks

Ole

stormer's picture
Offline
Joined: 09/16/2007
Juice: 110
Re: Can't get Product Import to work

Ok, so this is weird. It turns out that the product is imported despite the error message but it does so without the images and also without the .flv file associated with products via the Flashvideo module.

Furthermore, upon closer inspection of the XML file generated during the product export, the image files are listed but the .flv file is not.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Can't get Product Import to work

The errors were from the importer trying to copy the image files from the location specified to their new home, and not being able to. Since it shows a relative path, I expect that you were importing to a different server, and quite naturally the files weren't in the files/ folder. The importer has gone through some changes recently to use absolute paths and hooks to allow for extra data, so hopefully it'll be more useful to you.

stormer's picture
Offline
Joined: 09/16/2007
Juice: 110
Re: Re: Re: Can't get Product Import to work

Thanks very much Lyle, I'll give that a go over the next couple of days.

psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: Re: Re: Re: Can't get Product Import to work

So the uc_importer module actually tries to copy the images into the right place too? That's Ubercool.