Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Can’t upload product images…. 
 
Lemonline
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2008-10-05
Jyväskylä, Finland
 

I tried perhaps everything that people has proposed on this forum. For me the only solution was to upgrade PHP to new version.

On PHP 5.2.0: The product image upload caused Log out

On PHP 5.2.6: Everything works great

 Signature 

Suomalainen Magento-kumppanisi
Magento-verkkokaupat, Suomalaiset maksutavat, Suomalaiset toimitustavat, Integraatiot, Lisäosat, Koulutuspalvelut
Lemonline

 
Magento Community Magento Community
Magento Community
Magento Community
 
markf
Sr. Member
 
Total Posts:  143
Joined:  2007-09-20
 

If you are a mac user having this issue, try removing flash 10 and downgrade to flash 9 plugin. worked for me. 

has to do with the flex.js file that the uploader uses.

 Signature 

AllstateSign.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
ukdazza
Guru
 
Total Posts:  308
Joined:  2008-04-16
 

well now having got that switcher thing and chosen flash 9 it works fine!...on firefox tho...obviously it still doesnt work in IE.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Cooca
Member
 
Total Posts:  37
Joined:  2008-10-11
 
davinder - 29 June 2008 01:17 PM

Alright guys, I found the solution and it works like a charm!! Add new php.ini file if you dont have or add this code into your existing php.ini file:

magic_quotes_gpc = off
short_open_tag = on
extension=pdo.so
extension=pdo_mysql.so

Yeeeeha!

This was the fix for me, after attempting a full day of fixes with no luck, this bit of code did the trick.
Very happy about that! ty ty ty.

 
Magento Community Magento Community
Magento Community
Magento Community
 
seba83
Jr. Member
 
Total Posts:  1
Joined:  2008-11-21
 

just like cocoa says above, the php.ini file worked like a charm. I’m so relieved.

 
Magento Community Magento Community
Magento Community
Magento Community
 
goto11
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2008-11-20
 

Hi all,

I’m completely new to the Magento forum & I’m hoping this first post will help me out of a sticky spot!

I’ve literally just started using Magento, as a hopeful replacement for Actinic. I was literally 5 minutes into using it for the first time & I ran into this image uploading problem as a MAJOR glitch for me. All development on my site has ground to a halt till I can see if I will ever be able to use Magento. Am I going to get this sort of thing happen regularly? I’ve got to be honest, its not a great start for endearing me to Magento!

I have FireFox 3.04 installed (didn’t work in my Safari 3.1.2 either), & have installed the switcher app to roll back Flash versions. It says I am already using 9.0 r124 as the latest version available. I followed Cocoa’s advice about a new php.ini file, but it doesn’t seem to have worked. But this sort of thing is getting a little ahead of me. I have just installed that php file into the root Magento install folder. Is that where it was supposed to go? Am I getting in over my head using Magento, which seemed geared at my level, saying it expected no more from me than a basic knowledge of PHP? Or am I just a bit dumb to not know how to deal with a php.ini file? I’ve never had to before!

I hope someone can help, as otherwise I will just have to slog on with wretched Actinic!

Cheers!

 
Magento Community Magento Community
Magento Community
Magento Community
 
goto11
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2008-11-20
 

Just another update:

My PHP is version 5.2.6, which had fixed it for some people

I have created a TMP folder with 755 permissions, my ‘media’ folder has 777 permissions. This had fixed it for some people

It doesn’t work in Internet Explorer 7 on XP either, whereas this was working for some people.

Dang!

 
Magento Community Magento Community
Magento Community
Magento Community
 
josep99
Jr. Member
 
Total Posts:  12
Joined:  2008-11-16
 

I have Magento 1.1.7 installed on XAMPP on Windows XP.
Using Flash 9 and IExplorer, althought I also tried with Firefox.

Image uploads do not work:
- Images upload correctly after clikcing ‘Upload’ under Manage Products > Images
- But after uploading, images do not appear listed
- I have noticed that \magento\media\tmp\catalog\product contains the uploaded images
- But they don’t get transfered to \magento\media\catalog\product

I’ve tried everything I read in this and other threads (changes in php.ini, change base URLs, modyfing image.php) and nothing seems to work.

So, I have two questions:
1. Could someone running Magento 1.1.7 (or 1.1.6) on XAMPP _confirm_ that it is actually possible to have uploads working correctly?
At least I’ll know someone has succeded..

2. Steps for a solution would be great (for 1.1.6 or 1.1.7).

Btw, so that you know, my workaround, at this point:
1. Place images manually in \magento\media\catalog\product\ (create directories as needed)
2. Manually insert data into the database, table ‘catalog_product_entity_media_gallery’ as follows:
- attribute_id : 703 (my guess is that 703 means image, not sure, but works...)
- entity_id: id number of the corresponding product. You can find the id when editting products, look at the URL and get the id number (ex: http://localhost/magento/index.php/admin/catalog_product/edit/id/169/)
- value: path to image, taking \magento\media\catalog\product\ as base.  (ex:  ‘/images/name.jpg’)

If you are familiar with SQL it is easy to create multiple inserts at once, the format for my example would be:
INSERT INTO `magento`.`catalog_product_entity_media_gallery` (`value_id`, `attribute_id`, `entity_id`, `value`) VALUES (NULL, ‘703’, ‘169’, ‘/images/name.jpg’);

I’d appreciate if someone could help with this issue.

J.

 
Magento Community Magento Community
Magento Community
Magento Community
 
goto11
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2008-11-20
 

Finally got things to work for me. Thanks for all the help I got from this thread. I posted my full solution here:

http://www.magentocommerce.com/boards/viewreply/78701/

I’m Mac 10.5.5 & my solution seemed to be to UPGRADE to flash 10 & then delete all my media/temp folders & reacreate them (although they had777 permission, they were ‘locked’ in some way)

 
Magento Community Magento Community
Magento Community
Magento Community
 
ozzie
Jr. Member
 
Total Posts:  9
Joined:  2008-05-18
 
alexallied - 03 July 2008 09:26 PM

The php.ini does it for me. Had been cracking my head over this issue for over a month now!!

Make a php.ini file and add the following lines. Save, and upload into your magento folder.

register_globals=On
allow_url_fopen=On
magic_quotes_gpc = off
short_open_tag = on
extension=pdo.so
extension=pdo_mysql.so

Hope that helps.

Thanks heaps for this solution it has worked like a charm for me!  yay now I can finally upload my product images, woohoo LOL

Cheers
Ros

 
Magento Community Magento Community
Magento Community
Magento Community
 
Coopah
Jr. Member
 
Total Posts:  1
Joined:  2008-12-04
 

I’ve been reading through the threads and have not been able to solve my issue yet.

When I hiit the browse button nothing happens. If I try the demo app on-line in the same browser different tab everything works fine.

This leads me to believe it has to be a server issue. I have Use Secure URLs in Frontend & Backend set to No.

I’m on a hosted environment, MediaTemple.net. I’ve looked through their knowledgebase and nothing. I used the one click install and it’s running. Ver 1.0

Any ideas? I’m

 
Magento Community Magento Community
Magento Community
Magento Community
 
scjunkies
Member
 
Total Posts:  54
Joined:  2008-09-03
Houston, Texas, USA
 

I’m not sure if it is related but read the following thread:

http://www.magentocommerce.com/boards/viewthread/23762/

Good luck!

 Signature 

Garage Flooring (Garage Floor Tiles) at FloorJunkies.com
Portable Dance Floor | Modular Floor | Trade Show Flooring | Basement Flooring

 
Magento Community Magento Community
Magento Community
Magento Community
 
balbaweb
Jr. Member
 
Avatar
Total Posts:  22
Joined:  2008-02-11
 

Magento can’t upload product’s image may caused by several problem.SSL,Permission,Or IE don’t support.If you still can’t

resolve the problem.There need consider the hosting.

Creat a new file named php.ini include extension=pdo.so
extension=pdo_mysql.so

[PHP]
magic_quotes_gpc = off
short_open_tag = on
extension=pdo.so
extension=pdo_mysql.so

 
Magento Community Magento Community
Magento Community
Magento Community
 
adfodo
Jr. Member
 
Total Posts:  8
Joined:  2008-12-14
 

I’ve tried all the solutions here including: editing .htaccess, adding the php.ini, checking the server permission. Nothing works. My case is a bit different since I’m getting an actual error when I try to upload. The error has a bunch of code it looks like the source code for the page displayed in the error box. Has anyone encountered this problem? I’m running suphp.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Canadaka
Jr. Member
 
Avatar
Total Posts:  1
Joined:  2009-01-24
Vancouver, Canada
 

This is so frustrating, I cannot get this to work either, I have read this entire thread and others on the forum about this issue. Here is my setup and the things I have tried, none of which have fixed the problem :(

I own 2 rackservers of my own, both are running Windows Web Server 2008. I run my sites through IIS7 using PHP 5.2.8 and MySQL 5.1.11, the version of Magento is 1.2.0.2 and it is a fresh “full” install.
I am certain that the correct write permissions are set on the “media” and “var” folders. I can see folders and files being created there by the script.
I have added the various php.ini settings to the global php.ini file, here are those settings:

suhosin.session.cryptua = Off
extension=php_mcrypt.dll
extension=php_mysql.dll
extension=php_pdo.dll
extension=php_pdo_mysql.dll
magic_quotes_gpc = off
short_open_tag = on
allow_url_fopen=On
zlib.output_compression = on
zend.ze1_compatibility_mode = off

you can view my settings here: hosting . Canadaka . net/php.php

A side note, are the PDO extensions required?

I have tried clearing out the “media” and “var” folders. When I am able to partially upload an image, folders and files get created in “media/tmp”, but “media/catalog/products” is never created.

I have tried all the combinations of turning on SSL, and using HTTP and HTTPS. I do get different results depending on the setting.

“Unsecure base URL” with HTTP:// and then SSL admin enabled.
- Able to use “browse files” button, image is shown below after selection.
- Clicking “upload files” results in “SSL Error: Invalid or self-signed certificate”.

“Unsecure base URL” with HTTP:// and then SSL admin disabled.
- When I select an image with “browse files” nothing happens.
- This is the case whenever the URL of the page is http://
-
If I am using the above settings and manually enter https:// into the URL I am able to select an image with “browse files” and then able to upload it. It then shows up above, but when I press “save”, the browser freezes, the “please wait” box never ends. If I reload the page the image is gone.

I have also tried all of the above scenarios with the “Unsecure base URL” being HTTPS://

I have also tried the PHP edit to the “protected function _checkMemory($file = null)” function in image.php

I have tried using different sized images and images of different formats.

I have tried uninstalling and reinstalling Flash 10.0.12.36, I have tried installing Flash 9r151 from adobe’s “fp9_archive.zip”. I have tried IE7,8 Firefox 3, opera, Crome. All on multiple computers and at different physical locations.

Nothing seems to work! This is ridiculous, especially since SO many people seem to be having this problem. Why does the product image upload use this flash crap anyway.

I have requested a new IP from my host, then I will purchased a proper SSL certificate, to see if that helps, even though disabling SSL hasn’t worked. Right now the site is using one of the IIS7 self-signed certificated it can generate.

If anyone has any ideas, or something that I mixed, please help!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
701238 users|858 users currently online|497293 forum posts