Error occurs when converting data to mysql format

Key parameter of definition "type_loop" was changed from "form" to "formt" before, so I changed this line.