Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Trouble getting product images to show, only placeholder shows up! 
 
iDave
Member
 
Total Posts:  33
Joined:  2008-03-10
 

If i add the lines i get an Internal Server Error..

############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi

#Action php5-cgi /cgi-bin/php5-cgi
#AddHandler php5-cgi .php
SecFilterEngine Off
SecFilterScanPOST Off
############################################
## this line is specific for 1and1 hosting

#AddType x-mapp-php5 .php

############################################
## default index file

DirectoryIndex index.php

<IfModule mod_php5.c>

############################################
## adjust memory limit

    
php_value memory_limit 32M
    php_value max_execution_time 18000

############################################
## disable magic quotes for php request vars

    
php_flag magic_quotes_gpc off

############################################
## enable php short tags for templates

    
php_flag short_open_tag on

</IfModule>

<
IfModule mod_ssl.c>

############################################
## make HTTPS env vars available for CGI mode

    
SSLOptions StdEnvVars

</IfModule>

<
IfModule mod_rewrite.c>

############################################
## enable rewrites

    
Options +FollowSymLinks
    RewriteEngine on

############################################
## you can put here your magento root folder path relative to web root

    #RewriteBase /magento/

############################################
## workaround for HTTP authorization in CGI environment

    
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

############################################
## always send 404 on missing files in these folders

    
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

############################################
## never rewrite for existing files, directories and links

    
RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
%{REQUEST_FILENAME} !-d
    RewriteCond 
%{REQUEST_FILENAME} !-l

############################################
## rewrite everything else to index.php

    
RewriteRule .* index.php [L]

</IfModule>


############################################
## Prevent character encoding issues from server overrides
## If you still have problems, use the second line instead

AddDefaultCharset Off
#AddDefaultCharset UTF-8
Order allow,deny
Allow from all

 
Magento Community Magento Community
Magento Community
Magento Community
 
iDave
Member
 
Total Posts:  33
Joined:  2008-03-10
 

[Wed Mar 12 17:46:44 2008] [alert] [client 213.219.156.82] /var/www/html/dave/magento/.htaccess: Invalid command ‘SecFilterEngine’, perhaps mis-spelled or defined by a module not included in the server configuration

 
Magento Community Magento Community
Magento Community
Magento Community
 
Sander
Member
 
Total Posts:  40
Joined:  2008-01-08
Utrecht
 

I’m also having this problem. Images upload (I think, I can see their thumbnails in the backend, at least), but don’t display on the product info page in the front-end. Editing the .htaccess got me the same errors as iDave above.

No .htaccess in the media folder, no errors during upload. Tried the directory separator fix in the other thread, but that broke more than it fixed smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
iDave
Member
 
Total Posts:  33
Joined:  2008-03-10
 

Think it has something to do with the lack of stable apache and php release for centos distro.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bobhed
Jr. Member
 
Total Posts:  5
Joined:  2008-01-29
 

Adding those two entries to .htaccess did not make a difference for me.  I think something else is wrong with my install.  I’m going to reinstall via SSH using the .tar.gz file and see if that helps.
Thanks,
Bob.

 
Magento Community Magento Community
Magento Community
Magento Community
 
dunk
Jr. Member
 
Total Posts:  24
Joined:  2008-02-24
 

I get the same thing as idave here, adding those 2 lines to .htaccess causes an internal server error. This happens on my local development server...gonna try on the remote host to see if its the same thing....

 
Magento Community Magento Community
Magento Community
Magento Community
 
lucian303
Member
 
Avatar
Total Posts:  71
Joined:  2008-03-03
 

Yup. I get the same errors when adding the lines to my .htaccess. I’m not using SSL, btw. I can see that the images are copied into media/tmp/catalog/product/p/a but they don’t show up at all after I click save. When I originally upload them, they show up fine, I can mouseover and see the thumbnails but they are not being saved. Any ideas? Everything’s 777’d and available to the webserver.

 
Magento Community Magento Community
Magento Community
Magento Community
 
iDave
Member
 
Total Posts:  33
Joined:  2008-03-10
 

seem’s like a nasty one to fix.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bigtuna
Jr. Member
 
Total Posts:  20
Joined:  2007-11-09
Atlanta, GA USA
 

I’ve posted this in another thread, but it seems to be related.

After uploading images through the product admin, they appeared in the rollover. BUT after saving, they no longer showed....only the “Roll Over for Preview” message shows and rolling over produces a javascript error (from Firebug):

image.url has no properties
loadImage("/A/CACS26138M_5.jpg")product.js (line 127)
onmouseover(mouseover clientX=0, clientY=0)1807 (line 1)
[Break on this error] this.getFileElement(file, ‘cell-image img’).src = image.url;

The error seems to be caused because the image path is not correct . The path shown ("/A/CACS26138M_5.jpg") is actually ("/A/C/ACS26138M_5.jpg").  The slash in “/C/” is not written by the code correctly.

And, once it’s uploaded and saved, I can’t edit or delete it because of the javascript error.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ngdesign
Jr. Member
 
Total Posts:  6
Joined:  2008-03-13
 

I’ve tried every suggestion in this thread and related threads ... no luck. Everything else seems to be working well, just not this.

My problem is slightly different in the fact that I can’t even get the image to show up in the admin when I upload it. I choose “Browse”, then “Upload”. The screen appears to refresh, but never completes the process.

Checked my permissions; 777

Here’s my info:

Build: Beta 0.8.17240

Apache version 1.3.41 (Unix)
PHP version 5.2.5
MySQL version 5.0.45-community
Operating system Linux

PLEASE HELP. Thanks smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
devhen
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2008-02-27
 

ngdesign,

Are you using SSL? If you are using an invalid SSL certification like I am it will cause this problem. For example, the cert I am using is for http://www.mydomain.com but magento is installed to beta.mydomain.com. This will cause the image uploader to break. Disable SSL until you have a valid cert setup and you’ll be good to go.

Devin

 Signature 

Devin
http://blog.devhen.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
ngdesign
Jr. Member
 
Total Posts:  6
Joined:  2008-03-13
 

Hi Devin

Thanks for responding. Nope, no SSL. That’s the one thing I neglected to list. During set-up, I did not checkmark the box for SSL and there was one about re-writes, which I also did not checkmark. I basically let the system install it using the default prefs.

 
Magento Community Magento Community
Magento Community
Magento Community
 
lucian303
Member
 
Avatar
Total Posts:  71
Joined:  2008-03-03
 

I’m not using ssl. The pictures show up in the admin but when I hit save, I get the message that the product was updated but no images. Before that I can upload images and mouseover them with no problem. They just won’t get saved. The sample images (most of them) work ok.

This is on a
Linux box (Debian etch).
Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c
PHP Version 5.2.0-8+etch10
All running under Zend Core/Platform

Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
qikphp
Jr. Member
 
Avatar
Total Posts:  13
Joined:  2008-03-08
 

Using my shared linux host;

a) SSH’d into my host and chmod 777 -R everything under the media folder just to be sure.
b) Turned off all the caching, and cleared the image cache in Magento
c) Added those 2 directive lines (in the forum) to my magento base folder .htaccess
d) logged in via my shared host using ssl connection (https://www12.sharedhost.com/~account/mageno/admin)
e) Was using firefox
f) HAd images upload, and show ok after that

 
Magento Community Magento Community
Magento Community
Magento Community
 
iDave
Member
 
Total Posts:  33
Joined:  2008-03-10
 

My situation is excactly the same as ngdesign..

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52314 users|432 users currently online|105635 forum posts