Zso*_*nos 4 php apache magento magento-1.5
我有一个非常有趣的问题,这让我发疯.:)
我在CentOS 6.3系统上安装了Magento 1.5.Magento后端正在工作,我有产品,用户,一切设置.当我打开我的前端时,它似乎被打破了.应用CSS,第一部分(标题,菜单,搜索栏)正确呈现,但之后,没有...我首先想到的是索引或缓存,所以我重新编制了所有内容,我也清除了缓存.它没有帮助,所以我继续调查.
Firebug告诉我该页面失败了500(内部服务错误) - 奇怪的是Magento没有告诉我这个,前端HTML文件看起来没问题,更糟糕的是,Apache和Magento日志都没有显示什么!我还发现firebug从服务器返回的HTML响应不完整,它只是在这里结束:
<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="
Run Code Online (Sandbox Code Playgroud)
就是这样,在img src ="part之后,HTML就完成了.看来Magento正在抛出异常.
我认为这段代码导致了这个问题:
<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>
Run Code Online (Sandbox Code Playgroud)
我不知道该怎么做,我会列出我做了什么:
我可以确认在后端产品是可用的并且可以看到,并且没有发生500的错误.我发现这个确切的产品失败了,我可以编辑它的标签,产品的图像显示在后端.
| 归档时间: |
|
| 查看次数: |
971 次 |
| 最近记录: |