silvab Posted September 11, 2010 Share Posted September 11, 2010 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!EDITIt seems to be 100% related to image URL.s1. All images to uploaded are sitting in /imageupload/ from root directory2. 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 More sharing options...
rocky Posted September 12, 2010 Share Posted September 12, 2010 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 More sharing options...
silvab Posted September 12, 2010 Author Share Posted September 12, 2010 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 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10028 bytes) in /home/content/51/6392151/html/images.inc.php on line 234That'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 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Warning: unlink() expects parameter 1 to be string, resource given in /home/content/51/6392151/html/images.inc.php on line 180Fatal 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 More sharing options...
rocky Posted September 12, 2010 Share Posted September 12, 2010 You need to increase the memory_limit in your php.ini file from 32M to 64M or 128M depending on how high your host will allow you to increase it. Here's my php.ini file in case it helps. php.ini.zip Link to comment Share on other sites More sharing options...
silvab Posted September 12, 2010 Author Share Posted September 12, 2010 Thx for reply =) Going to try Link to comment Share on other sites More sharing options...
rocky Posted September 12, 2010 Share Posted September 12, 2010 You are too quick! It is attached now. Link to comment Share on other sites More sharing options...
silvab Posted September 12, 2010 Author Share Posted September 12, 2010 I only had a php5.ini file on my server =/ Anyways, uploading yours didn't do the trick. It says "home/content/51/6392151/html/images.inc.php on line 234" should I edit images.inc.php? Thanks for all your assistance anyways =) Link to comment Share on other sites More sharing options...
rocky Posted September 12, 2010 Share Posted September 12, 2010 No, editing that file won't help. You should be able to edit your php5.ini file instead of my php.ini file. Search for memory_limit in that file and change the value. If it doesn't exist in that file, add it: memory_limit = 128M Link to comment Share on other sites More sharing options...
silvab Posted September 12, 2010 Author Share Posted September 12, 2010 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 More sharing options...
rocky Posted September 12, 2010 Share Posted September 12, 2010 I'm glad it worked for you. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
superbikecoach Posted May 21, 2011 Share Posted May 21, 2011 hiwould you explain to me how to install your php.ini file please?thx in advance! Link to comment Share on other sites More sharing options...
rocky Posted May 21, 2011 Share Posted May 21, 2011 Simply extract php.ini and copy it to your root directory and admin directory. Link to comment Share on other sites More sharing options...
superbikecoach Posted May 21, 2011 Share Posted May 21, 2011 wow, that was quick thxmaybe 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 More sharing options...
rocky Posted May 21, 2011 Share Posted May 21, 2011 What version of PrestaShop are you using? Link to comment Share on other sites More sharing options...
superbikecoach Posted May 21, 2011 Share Posted May 21, 2011 1.4.1.0i changed too big pics and a couple of things in the back office. then the front office turned just white Link to comment Share on other sites More sharing options...
rocky Posted May 21, 2011 Share Posted May 21, 2011 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 More sharing options...
superbikecoach Posted May 21, 2011 Share Posted May 21, 2011 DUDE :-))))))you're on my x-mas list now jesus, i thought thats it man. thank you so much!!! Link to comment Share on other sites More sharing options...
superbikecoach Posted May 21, 2011 Share Posted May 21, 2011 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=24the 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 More sharing options...
rocky Posted May 21, 2011 Share Posted May 21, 2011 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 More sharing options...
superbikecoach Posted May 25, 2011 Share Posted May 25, 2011 SOLVEDthanks a bunch Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now