简体   繁体   English

MAGENTO-类别上的空白页

[英]MAGENTO - Blank page on category

I'm working on my first magento theme, and I'm meeting difficulties. 我正在研究我的第一个magento主题,遇到了困难。

My category pages ( http://namespace.com/category-name/ ) are blank. 我的类别页面( http://namespace.com/category-name/ )为空白。 If I switch on the default theme in the backoffice, I got a correct display, but when I activate my package / theme, i got just the blank page. 如果我在后台打开默认主题,则显示正确,但是当我激活我的程序包/主题时,只有空白页。

When the template path hint are activated, I can see the blank page is trying to load my default layout, but the body remains empty. 激活模板路径提示后,我可以看到空白页面正在尝试加载默认布局,但是正文仍然为空。

Maybe it's a layout file I forgot, I tried to use catalog.xml in the layout folder of my theme to configure display, but without results. 也许这是我忘记的布局文件,我试图在主题的布局文件夹中使用catalog.xml来配置显示,但没有结果。

I solved it by going into admin > catalog > manage categories > mycategory > Custom Design and selecting my layout manually in the dropdown for each categories. 我通过进入管理>目录>管理类别> mycategory>自定义设计并在每个类别的下拉列表中手动选择布局来解决此问题。 It's not the most flexible solution, but it's way better than a blank page, so i mark it as an answer. 它不是最灵活的解决方案,但是比空白页要好得多,因此我将其标记为答案。 Feel free to answer since i'm pretty sure there is a better solution. 请随意回答,因为我很确定有更好的解决方案。

I had the same problem. 我有同样的问题。 I checked the system.log in var/log . 我在var / log中检查了system.log

Not valid template file:frontend/base/default/template/page/1columns.phtml

It couldn't find the template, in my layout local.xml file I had declared the wrong template 它找不到模板,在我的布局local.xml文件中我声明了错误的模板

 <action method="setTemplate"><template>page/1columns.phtml</template></action>

There was a miss spelling (1columns), it should have been: 拼写错误(1列),应该是:

 <action method="setTemplate"><template>page/1column.phtml</template></action>

Also from Admin -> Catalog -> Category -> Custom Design I should have set Use Use Parent Category Settings to Yes 同样从管理员->目录->类别->自定义设计中,我应该将使用使用父类别设置设置

You should Look for magento compiler , the way you have solved the problem is the temporary Solution by selecting other template for category. 您应该寻找magento编译器,解决问题的方法是通过选择其他模板作为类别来解决临时问题。 Go to the Admin ->System ->Compilation -> and You can see if the magento compiler is enabled or not.. if it is enabled you should disable it and that Will do for you. 转到“管理员”->“系统”->“编译”->,然后您可以查看是否启用了magento编译器。 T Ť

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM