致命错误:调用成员函数getKeyName() [英] Fatal error: Call to a member function getKeyName()

查看:111
本文介绍了致命错误:调用成员函数getKeyName()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是joomla的新朋友.我已经创建了一个joomla组件,当我在admin中单击新建"按钮时,出现了这样的错误.

I am new in joomla . i have created a joomla component and when i click on new button in admin then i am getting such error.

致命错误:在第801行上的C:\ xampp \ htdocs \ Joomla1 \ libraries \ joomla \ application \ component \ modeladmin.php中的非对象上调用成员函数getKeyName()

Fatal error: Call to a member function getKeyName() on a non-object in C:\xampp\htdocs\Joomla1\libraries\joomla\application\component\modeladmin.php on line 801

请帮助

推荐答案

问题是由您的JTable类引起的.确保在 administrator/components/com_YOUREXTENSION/tables/中具有正确的文件名和类名 您可以在任何Joomla核心扩展中找到示例.

The problem is cause by your JTable class. Make sure you have correct filename and class name in administrator/components/com_YOUREXTENSION/tables/ You can find example in any core Joomla extension.

这篇关于致命错误:调用成员函数getKeyName()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆