Problem/Motivation
Cannot submit yamlform after latest upgrade (codebase is at eae5d27) and I ran database upgrades. After completing my yamlform, the page breaks and I am shown a SQL state general error, SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'Crack' for column 'delta' . What I could determine from the full output is that it looks like the value `Crack` is being used for two placeholders [:db_insert_placeholder_640] => Crack [:db_insert_placeholder_641] => Crack and the delta column expects integers. Attached is both the export of my yaml form and the text for the sql error.
Proposed resolution
Figure out why the string is being passed to the integer column and fix it.
Remaining tasks
- fixing it
User interface changes
n/a
API changes
n/a
Data model changes
n/a
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | cannot_submit_multistep-2810213-10.patch | 3.49 KB | jrockowitz |
| #8 | Screen Shot 2016-10-03 at 7.50.48 AM.png | 90.31 KB | robpowell |
| #5 | cannot_submit_multistep-2810213-5.patch | 4.34 KB | jrockowitz |
| #3 | cannot_submit_multistep-2810213-3.patch | 708 bytes | jrockowitz |
| yamlform.yamlform.screening (3).yml | 72.93 KB | robpowell |
Comments
Comment #2
jrockowitz commentedComment #3
jrockowitz commentedIf this patch passes all tests I will commit it ASAP.
Comment #5
jrockowitz commentedComment #7
jrockowitz commentedChanging to critical since this issue is blocking the next beta release.
Comment #8
robpowellI applied patch #3 to both my local environment and qa server. It worked locally but QA was behind on database updates so when I ran that it failed with the same SQL error. I will test again with the next passed patch.
Comment #10
jrockowitz commentedComment #12
jrockowitz commentedFixed and committed. Please test the latest dev release.
Comment #13
robpowellDid you see my comment in #8? The patch in #10 did not resolve the error in the update hook. I will probably just truncate the table. Just wanted to make sure you saw that bug as well.