Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从布局中删除phtml的magento引用_Magento - Fatal编程技术网

从布局中删除phtml的magento引用

从布局中删除phtml的magento引用,magento,Magento,我目前的主题是维尼多,以前使用过蒙奇主题。文件为空\u product.phtml 正在路上 app/design/frontend/default/monchy/template/catalog/product/empty_product.phtml. 我在日志文件中得到了以下错误 CRIT (2): Not valid template file:frontend/base/default/template/catalog/product/empty_product.phtml 一切都很

我目前的主题是维尼多,以前使用过蒙奇主题。文件为空\u product.phtml 正在路上

app/design/frontend/default/monchy/template/catalog/product/empty_product.phtml.
我在日志文件中得到了以下错误

CRIT (2): Not valid template file:frontend/base/default/template/catalog/product/empty_product.phtml

一切都很顺利。我搜索了布局文件夹,app/code/文件夹,文件名中没有引用(empty_product.phtml)。如何以及在何处删除对phtml文件的调用?

您也可以尝试在代码文件中搜索,因为我们不仅可以在布局文件中分配模板文件,还可以在.php文件中分配模板文件。

您在.phtml文件中搜索了吗?它可能被称为child。是的,我在后端布局更新中搜索了所有phtml文件?尝试在DB中搜索。谢谢,在DB中搜索,它在CMS_块中调用。但另一个是cleanse_list.phtml,它不在CMS块和页面中。我应该删除/取消设置catalog.xml中的child吗?您应该正确地删除它是的。我也搜索了应用程序文件夹。这种错误的常见原因可能是使用符号链接而没有在管理区域启用此功能…系统>配置>开发人员>模板设置在app\code\core\Mage\core\Block\Template.php中触发错误