我是这项技术的新手,在访问了这么多链接后才开始开发模块。
但是,当我试图通过扩展管理器安装我开发的HelloWorld模块时,我总是会遇到下面的错误:
"JInstaller: :Install: File does not exist /Applications/MAMP/htdocs/jainism/tmp/install_511e1c1cc2b04/mod_helloworld/tmpl"这可能是重复的问题,但我已经尝试了所有可能的解决方案,我在这里和其他网站也找到了,但我的问题仍然没有解决。
为了方便起见,我只是将我的xml代码粘贴到下面:
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="2.5" client="site" method="upgrade">
<name>Hello, World Module!</name>
<author>Mohit Jaiswal</author>
<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
<version>2.5.0</version>
<description>A simple Hello, World! modules.</description>
<files>
<filename module="mod_helloworld">mod_helloworld.php</filename>
<folder>tmpl</folder>
<filename>index.html</filename>
<filename>helper.php</filename>
<filename>mod_helloworld.xml</filename>
</files>
</extension>而且,我已经反复检查了我的目录结构和文件名,就像上面的xml一样。
请务必为我提供帮助。
发布于 2013-02-15 20:12:32
出现此错误的原因可能是"tmpl“文件夹为空。如果您将默认的0字节"index.html“文件放入此文件夹中,错误可能会消失。
发布于 2013-02-16 21:41:21
如果tmpl文件夹在您的模块压缩包中,那么原因可能是您在没有这个的情况下在您的xml file.Try中添加了<filename>mod_helloworld.xml</filename>。
也检查这个- http://docs.joomla.org/Creating_a_simple_module
希望它能起作用。
https://stackoverflow.com/questions/14893935
复制相似问题