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

Comments

robpowell created an issue. See original summary.

jrockowitz’s picture

Priority: Normal » Major
jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new708 bytes

If this patch passes all tests I will commit it ASAP.

  • jrockowitz committed a22f1b4 on 2810213-multistep-form-validation
    Issue #2810213 by jrockowitz, robpowell: Cannot submit multistep form -...
jrockowitz’s picture

StatusFileSize
new4.34 KB

Status: Needs review » Needs work

The last submitted patch, 5: cannot_submit_multistep-2810213-5.patch, failed testing.

jrockowitz’s picture

Priority: Major » Critical

Changing to critical since this issue is blocking the next beta release.

robpowell’s picture

StatusFileSize
new90.31 KB

I 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.

 on db update screen

  • jrockowitz committed 14b0a4d on 2810213-multistep-form-validation
    Revert "Issue #2810213 by jrockowitz, robpowell: Cannot submit multistep...
jrockowitz’s picture

Status: Needs work » Needs review
StatusFileSize
new3.49 KB

  • jrockowitz committed 0f3ae09 on 8.x-1.x
    Issue #2810213 by jrockowitz, robpowell: Cannot submit multistep form -...
jrockowitz’s picture

Status: Needs review » Fixed

Fixed and committed. Please test the latest dev release.

robpowell’s picture

Did 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.