Getting error after uploading some product images in magento - image

I'm getting a strange error in magento after uploading product images. I have this problem with only some images.
When i upload an image through backend product uploading section, its working perfectly and i can see the image when i ,mouse over it. But when i go to front end and browse the product detail page or the category page of that product, i'm getting a blank screen. I have this problem with only a few images. Images are in jpeg format.
Then when i reset magento default image as the base image and save the product, the problem solves. I cant figure what is the actual problem. Does any one have an idea. Kindly share it with me...
Thanks in Advance
Tibin Mathew

A blank screen makes me think that you have and error somewhere in the code.
Can you check if you have display_errors = On and error_reporting = E_ALL in index.php?
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 1); //uncomment this line to see errors
Or maybe you try to debug a large object like the layout block and the browser can't show it to you, also look for exceptions that may try to print very large data.

Related

Could not upload images from admin panel after updating Magento to 1.9.3

I am trying to upload image from admin panel but could not upload images only in product tab. But I can upload image for category tab perfectly. My error message is:
I have also checked /public_html/lib/Varien/File/Uploader.php, line 219:
chmod($destinationFile, 0666);
and line 541:
if (!(#is_dir($destinationFolder) || #mkdir($destinationFolder, 0777, true)))
both looks OK.
Also checked permission of /public_html/media/catalog/product folder and it is also set as 777.
After SUPEE-8788 update, magento introduce image dimensions in the configuration. I'm not sure your previous version is what. The error came from Mage_Catalog_Helper_Image.
So, my recommendation is Go and Check your dimensions setting under
System->Configuration->Catalog->Product Image.
Hope this help. Btw, default dimensions size is 5000px

Images relates issue in magento 1.9

I used Magneto 1.9 suddenly I faced a problem in it .When i create a product and upload images, it is shown in back end and not show in front end.But after this when I edit the same product and add one more image in it then in front end it shown second images.
What is the reason of this strange behavior.May be this is all because before a week I enabled cache and due to some issue in it I again disable it.
Till now it tried solution:-
1.Clear cache and index many times.(My cache is disabled).
2.Rename htaccess of media folder.
3.Give 777 permission to media folder.
Please see the image attached.
http://abc/media/catalog/product/cache/1/thumbnail/80x80/117ec6be2be2581904bec9efa7f5ed31/images/catalog/product/placeholder/thumbnail.jpg (Placeholder shown)
http://abc/media/catalog/product/cache/1/image/580x580/0fb09527b0cea108ca47a7bcd7e27e43/6/_/6_1_2.jpg(Image shown which is uploaded second time)

Magento Patch SUPEE-6788 breaks custom file option file link on cart page?

When executing file upload on a site with SUPEE-6788 applied, and then adding the product to cart, rather than present a URL to the uploaded file you get a chunk of text similar to this on the shopping cart page and also in the sales email generate. The file itself can be found in the quote folder so looks like the rerendered part of the page that should show the file link is bust.
a:10:{s:4:"type";s:10:"image/jpeg";s:5:"title";s:8:"2849.jpg";s:10:"quote_path";s:68:"/media/custom_options/quote/2/8/16156fb1e8320b06153ee7061a7b5cdf.jpg";s:10:"order_path";s:68:"/media/custom_options/order/2/8/16156fb1e8320b06153ee7061a7b5cdf.jpg";s:8:"fullpath";s:119:"
Has anyone else seen this issue.
** update **
This is still a problem after upgrading to 1.9.2.4.
Interestingly if you update and save the cart the uploaded file link is then rendered correctly. In the sales_flat_quote_item_option table where the product options in the cart are saved, the field holding the file link metadata is updated and it has changed. Some characters present in the value on the original cart submission are removed [see below]
;s:3:"url";a:2:{s:5:"route";s:35:"sales/download/downloadCustomOption";s:6:"params";a:2:{s:2:"id";N;s:3:"key";s:20:"d6e5b846b9f1f6b4298b";}}}
Therefore rather than a rendering issue it looks like a generation issue. Maybe the theme is involved. Will look at difference between writing and regeneration.
** Update **
OK solution found. The Application (Magento Theme + Modules) was, in a Mage_Checkout_CartController type, creating a product in the cart via code like this
$cart = $this->_getCart();
$params = $this->getRequest()->getParams();
$_product = $this->_initProduct();
$cart->addProduct($_product, $params);
This was creating a product that contained the File Upload option which was then stored in an invalid format.
A rework of the code removed the need to use the above code and the problem has gone. So there does seem to be a bug somewhere related to product creation and File Upload options but I've gone far enough on this journey for now.
Same here this problem is encountered within many instances, like product page, checkout page, order page (Magento CMS). First we thought it was about module update issue, but that didn't help, so right now we think it's a 1.9.2.2 bug.

Homepage Magento White Screen

I need your assistants. I have been working on my magento store and have run into a problem. I created an account a member account to test if everything is ok, since doing that i now notice on my homepage there is a blank white screen, it will not show me anything, here is a link to the blank homepage
http://www.weldersdirect.com.au/
For all the toher pages i can get access just fine, it seems to be only the homepage that is blank. Any help would be much appreciated
Thanks Everyone
Ali
seems like you have invalid php in either the index.php itself, unlikely though.
Or the error lies somewhere within the /app/design/frontend/(yourtheme)/default/template/page/1column.php
Something unique to the homepage is causing it to crash. Most likely you only use one-column for the homepage. Looks like the other pages all are using two-columns

Compilation renders my home page content blank

I want to enable Compilation on our Magento website, but when I enable it, I get blank content for my home page. It stops rendering before outputting the menu. Category and product pages seem to be fine.
We use the Mercado theme, and the home page uses a HomepageGrid block which is a CMS page.
Could anybody provide some insight?
Thanks
all you have to do is to check your error log. blank page means php error, and your output configured into error log, not screen. possible places to look: path_to/magento/var/log/ files system.log and exception.log. or /var/log/ and folders httpd/error_log etc. looks like you have some module like featured products or other custom stuff on front page, check your CMS > Pages > Homepage content. thank you

Resources