无法在 Magent 社区版本中添加可配置产品,显示致命错误?
我是 magento 的新手,正在学习东西。
首先我安装了最新的 magento 1.5.1.0,它在配置时抛出了太多错误。由于它是一个非常新的版本并且最近发布,我安装了magento 1.4.2.0
它也经常抛出一些致命错误,我不知道为什么会发生,几乎所有错误都与产品有关。我尝试添加的一件事是可配置产品..
它抛出致命错误:在 /app/code/core/Mage/Core/Model/Mysql4/Collection 中的非对象上调用成员函数 getTable() /Abstract.php on line 454
有谁知道如何纠正这个问题?我试图在 magento 论坛中找到答案但失败了..:(
I'm new to magento and learning things ..
First i installed the latest magento 1.5.1.0 and it throws too many error while configuring. As it a very new version and released recently, i installed magento 1.4.2.0
Its also often throwing some fatal errors , i dont know why its happening and almost all errors are related to products. One thing i try to add is a configurable product..
It throws Fatal error: Call to a member function getTable() on a non-object in /app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php on line 454
Do anyone know how to rectify this? I tried to find answers in magento forum but failed.. :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我自己找到了解决方案..
中有一个文件名configurable.php
\app\code\core\Mage\Catalog\Model\Resource\Eav\Mysql4\Product\Type
,并且命名错误像configurable.php0343235556之类的东西,我从扩展中删除了不需要的数字字符,之后一切都正常了... :)
我已经碰巧在tierprice.php中发现了相同的命名问题
,我不知道为什么magento一直在发布具有这种奇怪文件名的文件..!!!
提示关于我如何发现问题的,
我打开文件 \app\var\log\system.log 并删除其所有内容,并尝试创建一个可配置产品,然后查看相同的文件,它有错误提示“警告:无法从...加载文件”
I found the solution myself..
There was a file name configurable.php inside
\app\code\core\Mage\Catalog\Model\Resource\Eav\Mysql4\Product\Type
and it was wrongly named something like configurable.php0343235556 and i removed the unwanted numeric characters from the extension and it all worked after that... :)
I already happened to found same naming problem in tierprice.php
i dont know why magento have been releasing file with this weird filenames..!!!
Hint on how i found the problem,
i opened the file \app\var\log\system.log and removed all its contents and tried to create a configurable product and then viewed the same file and it has the error stating 'warning :could not load file from ... '
尝试使用 Magento 数据库修复工具 http://www.magentocommerce.com/download
try to check if your database is in order with Magento Database Repair Tool http://www.magentocommerce.com/download