I've installed a fresh copy of drupal (7.10) and Data 7.x-1.0-alpha1.
I've enabled the Data module and then the Data UI module (after installing pre-requisite modules ctools and schema). Nothing else installed.
When I go to create a new data table I get an error message:
Notice: Undefined index: storage in data_ui_create_form() line 299
If I enter values in the fields to create the table and submit I then get these errors:
Notice: Undefined index: storage in data_ui_create_form() (line 299 of /var/www/vhosts/example.com/httpdocs/sites/all/modules/data/data_ui/data_ui.admin.inc).
Notice: Undefined index: storage in data_ui_create_form_validate() (line 344 of /var/www/vhosts/example.com/httpdocs/sites/all/modules/data/data_ui/data_ui.admin.inc).
Notice: Undefined index: storage in data_ui_create_form() (line 299 of /var/www/vhosts/example.com/httpdocs/sites/all/modules/data/data_ui/data_ui.admin.inc).
I have MySQL 5.0.77
PHP 5.3.3
Apache
(1and1 cloud server).
Pretty much stuck at the front door.. any help appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | data-update-multistep-form-to-d7-1365346-15.patch | 2.8 KB | dozymoe |
| #11 | data-update-multistep-form-to-d7-1365346-11.patch | 8.24 KB | kanani |
Comments
Comment #1
facal commentedSame problem for me on Drupal 7.9 and a bunch of other modules active.
MySQL: 5.1.56
PHP: 5.2.17
Apache
Comment #2
boabjohn commentedSame on 7.x-1.x-dev
PHP 5.2.6-1+lenny13
MySQL 5.0.51a
Apache2
Comment #3
RedTop commented$form['storage'] is not part of Drupal 7 anymore.
Check for example:
http://drupal.org/node/918948
API docs
http://api.drupal.org/api/drupal/includes--form.inc/group/form_api/7
Unfortunately my PHP skills are non-existent so I can only supply some info. :(
Comment #4
joachim commentedThis is useful reading: http://randyfay.com/node/66
I'll try to get onto this but if anyone wants to beat me to a patch that would be great -- please assign the issue to yourself to let everyone know you're working on it.
Comment #5
sanduciprian commentedi got the same problem
Comment #6
richard moger commented+1.
In lieu of a fix I managed to get around this by going the other way. I created the table directly in the database within phpmyadmin, you can then use the adopt tab to register it (orphaned table) within data module.
I don't care where I create the table, I just need to export the schema from data into php so for my use case works fine.
Rich
Comment #7
sanduciprian commentedthat works, but i got other problems, the edit item link doesn't work, and relationships in views, to display 2 tables in same view
Comment #8
joachim commentedUpdating issue title.
Comment #9
ViiNCENZO commented+1
Comment #10
kanani commentedComment #11
kanani commentedWhat started as some troubleshooting for the "data_ui_create_form" error ended up in a rewrite of the data_ui.admin.inc file.
After making the D7 changes for tracking the multistep form, I kept getting a "maximum nesting" level error.
Strangely changing the name of the form from
data_ui_create_form <code/>to<code> data_ui_create_data_formfixed the issue.I also added some labels to the form elements in _data_ui_field_form so that users could see what the different fields and checkboxes were for.
The new form is working locally but I'm unable to successfully test because of the call to db_escape_string in DataHandler.inc. See http://drupal.org/node/1419798
The patch updates data_ui.admin.inc as well as data_ui.module (because of the form name change).
Comment #12
SharonD214@aol.com commentedComment #13
joachim commented> Strangely changing the name of the form from data_ui_create_form
Can you either keep or rewrite the docblock? All functions need to have one.
Incorrect indentation (and more similar further on).
That comment looks like it's copied from Examples module! ;)
Watch out for whitespace changes.
Comment #14
dozymoe commentedThe recursion has something to do with theme_data_ui_create_form() from line 905 below it, see need help to theme a form in drupal 7 [solved].
Comment #15
dozymoe commentedRewrote the patch a bit, also since data|contrib depends on ctools|contrib, might be better to use ctools
multiformmulti-step form instead.Er, that's just a suggestion, it is not in the patch, dunno how yet.
Comment #16
dozymoe commentedSet to need review.
Comment #17
joachim commentedThanks!
I added missing full stops at the end of one or two comments and added a couple of comments of my own, including this:
which I felt needed saying :)
- #1365346 by kanani, dozymoe: Fixed error messages in Create new table multistep form.