I'm new to Joomla, i'm trying to develope some basic module with it. I've some experience with different programming languages, but that doesn't help.
I'm following this guide http://docs.joomla.org/J3.2:Creating_a_ ... e_Database(if you have other guides, please tell me, i cannot find anything else), and i'm stuck.
yet i've realized the helloworld module, and it works.
when i try to add the database, it stops working.
following the guide, i've edited the previous mod_helloworld.xml to this:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.1.0" client="site" method="upgrade">
<name>Hello, World!</name>
<author>John Doe</author>
<version>1.0.0</version>
<description>A simple Hello, World! module.</description>
<files>
<filename>mod_helloworld.xml</filename>
<filename module="mod_helloworld">mod_helloworld.php</filename>
<filename>index.html</filename>
<filename>helper.php</filename>
<filename>tmpl/default.php</filename>
<filename>tmpl/index.html</filename>
</files>
<config>
</config>
<install>
<sql>
<file driver="mysql" charset="utf8">sql/mysql/install.mysql.utf8.sql</file>
</sql>
</install>
<uninstall>
<sql>
<file driver="mysql" charset="utf8">sql/mysql/uninstall.mysql.utf8.sql</file>
</sql>
</uninstall>
<update>
<schemas>
<schemapath type="mysql">sql/mysql/updates</schemapath>
</schemas>
</update>
</extension>
putting in mysql the two sql files given in the guide, and in updates the empty file 1.0.0.sql.
put the helloworld directory(in which i've put everything) in an archive, upload it with joomla, and get this error message:
Warning
JInstaller: :Install: Error SQL DB function reports no errors
Module Install: SQL error file DB function reports no errors
Message
Error installing module
note that it did not create any table in the db.
and, when i try to remove this module(i don't know why it did install it if an error has occured) i get:
Warning
JFolder: :files: Path is not a folder. Path: C:\xampp\htdocs\giambalajapress\modules\mod_helloworld
JFolder: :files: Path is not a folder. Path: C:\xampp\htdocs\giambalajapress\modules\mod_helloworld
JInstaller: :Install: Cannot find XML setup file
JFolder: :files: Path is not a folder. Path: C:\xampp\htdocs\giambalajapress\modules\mod_helloworld
JFolder: :files: Path is not a folder. Path: C:\xampp\htdocs\giambalajapress\modules\mod_helloworld
JInstaller: :Install: Cannot find XML setup file
JFolder: :files: Path is not a folder. Path: C:\xampp\htdocs\giambalajapress\modules\mod_helloworld
JFolder: :files: Path is not a folder. Path: C:\xampp\htdocs\giambalajapress\modules\mod_helloworld
JInstaller: :Install: Cannot find XML setup file
JFolder: :delete: Path is not a folder. Path: C:\xampp\htdocs\giambalajapress\modules\mod_helloworld
Module Uninstall: Manifest file invalid or not found.
Message
Error uninstalling module.
and, checking in modules folder in the joomla directory, there isn't the module.
please, could you help me?
edit: i'm using joomla 3.2