Hi Bruno,
First of all thanks for your scripts, I am using some formit2resource on the site for users to submit reviews and it's working great.
I tried using the formit2db script but I get:
addPackage called with an invalid package name
in the modx error.log
What I am trying to do is store the contact information in the database. These are the steps I have taken:
Table name:
modx_dragon_contact
[[FormIt]] call contains this:
&hooks=`spam,formit2db,email`
&preHooks=`db2formit`
&prefix=`modx_dragon_`
&packageName=`dragonContact`
&tablename=`contact`
The table has fields such as: firstname, lastname, email etc. which are also included in the form:
eg.
<input type="text" tabindex="1" name="firstname">
...but anyway, I don't even get as far as form submission, the "invalid package name" error is triggered on page load and no folders are created inside /core/components/
I have checked the write permission of the folder, that is fine.
Versions
- Modx: 2.2.6
- Formit: 2.2.0
- FormIt2db: 1.0.1
Site is running on MAMP with PHP version 5.4.4