Jump to content

[SOLVED] Importing CSV --> Blank Page


silvab

Recommended Posts

Hello,

Solved! See Below! Thanks again!

I'm desperate and I cannot find a solution. Whenever I try and import ANY CSV file I get a blank page. How can I solve this? I've tried multiple fixes:

1. I've tried using a file with 3 products, same problem. It's not how many items I'm trying to import.

2. Other people have similar issues and posted solutions. I've tried the solution listed on the following link, but I get the same problem. It's post #7 on this thread:
http://www.prestashop.com/forums/viewthread/11684/rapports_de_bugs/probleme_import__php_plante/

3. I've tried different browsers or computers and I get the same issue. help!


EDIT

It seems to be 100% related to image URL.s
1. All images to uploaded are sitting in /imageupload/ from root directory
2. I have tried using "http://websitename/imageupload" (with or without quotes) and ../imageupload/ (with and without quotes). The only time an upload goes through is when there's no image URL associated.

Any advice is greatly appreciated!

Link to comment
Share on other sites

Perhaps PrestaShop is running out of memory when trying to resize the image. How big are the images you are trying to import? You can edit config/config.inc.php and temporarily change 'display_errors' from 'off' to 'on' so that you get an error message instead of a blank page. Post the error message here.

Link to comment
Share on other sites

Images are all resized and under 2mb each, but there's a LOT. =

Error:
Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10028 bytes) in /home/content/51/6392151/html/images.inc.php on line 234

That's my error message. You got it on the money. How do I extend the amount of memory allowed?
----

When I edit my CSV to only have...say....6 products....here's the error:

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10028 bytes) in /home/content/51/6392151/html/images.inc.php on line 234

Link to comment
Share on other sites

Is there a way for me to send you a million thanks? That, in a single code of line, fixed what literally over 12+ hours of work could not.

I see you also do programming. I'd be interested in hiring you to look over this site, modify a few codes in prestashop (ie. make it so prices do not show up, etc. small changes).

If you're interested, and willing to discuss this tomorrow or monday please send me a private message with your contact information. I would prefer some kind of voice communication.

Thank you again!
I've been so stressed over this I haven't eaten, time to get some dinner. Cheers and thanks 1 more time.

Link to comment
Share on other sites

  • 8 months later...

wow, that was quick :) thx

maybe you can help me with a blank page. this is what it says:

Fatal error: Uncaught

XML_Feed_Parser_Exception: Invalid input: this is not valid XML in /mnt/webc/52/72/5961372/htdocs/shop/modules/blockrss/blockrss.php on line 144
Exception trace
# Function Location
0 XML_Feed_Parser->__construct('<!DOCTYPE HTML P…') /mnt/webc/52/72/5961372/htdocs/shop/modules/blockrss/blockrss.php:144
1 Blockrss->hookLeftColumn(Array) unknown:unknown
2 call_user_func(Array, Array) /mnt/webc/52/72/5961372/htdocs/shop/classes/Module.php:643
3 ModuleCore::hookExec('leftColumn')
Link to comment
Share on other sites

From the error message, it seems the RSS feed block has read an invalid RSS feed. I'm not sure why it is invalid, but you can simply disable the "RSS feed block" module in the "Front Office features" section to remove that block.

Link to comment
Share on other sites

oh hey, i have another one for ya.

there is one product making trouble. the right boxes are placed under the middle frame. check it out http://www.25sekunden.de/shop/product.php?id_product=24

the text in more info seems to be swallowed by the boxes, but i can't see the text in the back office either.

there is no error coming up, just a succeed message.
can you help?

Link to comment
Share on other sites

Looks like something has gone wrong when you've added an image. For some reason, the image data is in the code instead of the URL to the image. I suggest clicking the HTML button in the toolbar when editing the description and deleting all your code. Then you should click the "Insert / Edit image" button (the one next to the anchor icon) to insert an image. Click the "Browse" icon next to the "Image URL" field to open the file manager. Click the "Upload" button in the toolbar at the top to browse for and upload the image. Wait for it to finish, then close the window. The image should now be listed. Tick the box next to it, then click the "Select" button on the left under "File Information". The image should then appear in the "Preview". You can then specify the image description, then "Insert" the image. If you've done this right, then the image should have been uploaded to the img/cms directory on your server and you've properly linked to it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...