1

I have tried to add a new component to Joomla 2.5.8 and getting the following error:

Error loading component: com_mycomp, 1

Error loading component:com_mycomp, 1

Error loading component: com_mycomp, 1

The following steps I have done :

  1. created a folder com_mycomp under components. and created a file mycomp.php under com_mycomp.
  2. created a folder com_mycomp under administrator/components/ and a file admin.mycomp.php under com_mycomp.

Accessed the url :

http://localhost/joomla/index.php?option=com_mycomp

Error loading component: com_mycomp, 1

Any idea how to resolve it.

4

2 回答 2

0

IT 接缝只在文件系统中添加此组件。您必须将此组件添加到数据库中,表中#__extensions 类型为组件。只需在此表中获取一些组件行并将其粘贴并仅使用您的组件名称更改名称

于 2014-07-15T15:58:34.577 回答
0

这里可能会出现一些问题:

  1. 在进行“手动”安装时,您应该使用 Joomla! Extensions ManagerDiscover您手动安装的扩展(这适用于组件、模块、插件和模板)。

  2. 您需要的最少文件(和目录)是入口点文件 ( mycomp.php) 和清单文件 ( mycomp.xml),以提供基本菜单元素等,如本文所述

于 2012-12-11T21:19:19.550 回答