I have a very interesting problem that drives me crazy. :)
I am configuring Magento 1.5 on a CentOS 6.3 system. Magento works, I have products, users, everything is configured. When I open my interface, it seems to be broken. CSS is applied, the first part (title, menu, search bar) is displayed correctly, but after that nothing ... At first I thought that I indexed or cached, so I reindexed everything and I also cleared the cache. This did not help, so I continued the investigation.
Firebug told me that the page fails with 500 (internal service error) - it is strange that Magento does not tell me about it, the external HTML file looks fine, and even worse, neither the Apache nor Magento log shows anything !!! I also learned with firebug that the HTML response returned from the server is not complete, it just ends here:
<div class="category-products"> <ul class="products-grid"> <li class="item first"><a href="http://...:8383/wobMagento/featured-products/item.html?___SID=U" title="Smoking" class="product-image"><img src="
And that it, after the img src = "part, HTML is finished. It seems that Magento is throwing an exception.
I think this piece of code is causing the problem:
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>"> <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
I have no idea what to do, I listed what I did:
- I cleared the cache
- I reindexed everything.
- I added 777 permissions for all my magento dir
- I made sure that apache is the owner of my entire magento dir
- I changed the .htaccess file from $ {magento} / media, tried the default, added some parameters, deleted some parameters, even deleted it, none of these actions made any changes (or, best of all, I could achieve completely blocking all images)
I can confirm that products are available in the backend and can be seen, and this may be a 500 error does not occur. I found this exact product that fails, I can edit its shortcut and the product image will appear in the backend.