PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

Images via CSV not working

12 replies to this topic
#1
fringeusa

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts
I'm using the v1.1 Beta 3 version of PrestaCart.

I've been trying for the past day now unsuccessfully to get my images to upload via the CSV. In the CSV image column, i've tried everything:

filename.jpg
/var/www/..../filename.jpg
/img/p/filename.jpg
tmp/filename.jpg

And none of them seem to work. I see in the database that images are being matched in the database correctly with the product (as mentioned in the cvs bug), but for some reason, Prestashop isn't moving or renaming the files.

Also, uploading images manually through the Admin interface for each product does work.

Am I putting the images in the wrong location, if so what folder should they go to for CSV import?
Am I entering their location into the CSV wrong?
Is it a permissions issue with my server? (Though I have php error reporting on 7 and nothing is showing even in logs)

For the record, I am running PrestaShop with RHEL5, running Plesk (Control Panel Interface - if it matters).

Any help with this would be greatly appreciated. I was hoping to get a beta of my store online last night, and now my hope is by the end of the weekend. I hope this is just a dumb error on my part. I'd really hate to manually map 1,300+ images in my store, and thousands more in the future.

Thanks in advance.

#2
fringeusa

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts
I've updated my original post to make my issue more understandable, seemed a tad confusing. Thanks to anyone who can help me out!

#3
Gregory Roussac

    PrestaShop Apprentice

  • Members
  • PipPip
  • 354 posts
Hi,

Did you try to give a full url like http://127.0.0.1/smthing/myimage.gif or http://my site.com/myimage.gif ?

Regards

#4
fringeusa

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts
Hey Gregory,

Thanks for the response! Unfortunately it does not work in either IP or direct domain either. I thought it was maybe since the shop was in maintenance mode, but that seems to not be it either.

I've attached my CSV to see if maybe i've done something unusual in it, even though all products are showing, or if maybe there is a server configuration causing it.

Fields:
ID
Supplier Reference #
Name
Retail Exc Tax
On Sale
Active
Supplier
Manufacturer
Weight
Short Description
Category
Image URL
Text if In-Stock
Text if Out-Of-Stock

Attached Files



#5
Gregory Roussac

    PrestaShop Apprentice

  • Members
  • PipPip
  • 354 posts
Surely safe mode that disables socket opening.

I'll give a look when possible.

#6
fringeusa

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts
That was it Gregory! Safe Mode! I thought it wasn't since I had disabled it and then tried it before, but I probably wasn't doing the full URL. Irregardless, much help. Thanks!

#7
kevin13914

    PrestaShop Newbie

  • Members
  • Pip
  • 10 posts
What is safe mode? I have also uploaded products via csv and the products are showing fine...but the images dont show for the product.

I have imported the csv file using the http:// url for the images which are located in a folder on my site. Any help would be appreciated.
Thank you!

#8
djavet

    PrestaShop Apprentice

  • Members
  • PipPip
  • 35 posts
Same problem here with 1.2.5 withe th image import.
Do I need to switch safe_mode to off to import the image?

Dom

#9
Guest__*
  • Guests
As far as I know it is a new bug in the latest version.

replace the AdminImport.php(admin/tabs/) with the old version's then you will find it works.That means there is a bug in version 1.3.0.3. but remember dont replace it and upload your products, it is dangerous to your database!

#10
djavet

    PrestaShop Apprentice

  • Members
  • PipPip
  • 35 posts
I confirm: I change safe_mode on off and the image import work now for me. Hope this help the others. And this with changing any code.

Dom

#11
Guest__*
  • Guests
Where can I see the safe_mode ?

#12
djavet

    PrestaShop Apprentice

  • Members
  • PipPip
  • 35 posts
in php.ini or ask you provider (i've done this).

Dom

#13
rocky

    PrestaShop Superstar

  • US Moderators
  • 9988 posts
@x

Can you report this bug on the bug tracker? The Prestashop team is looking for bugs that have been introduced in the beta.
Check out Nethercott Constructions for PrestaShop guides and modules. Like us on Facebook for news updates.