Classic 2.6.4 eval - Error when insert none required field September 03, 2019, 01:48:14 PM I made a simple table with id (int), date field, int field and varchar field in MySql, with NULL as default option.I changed the "validation->required" option on Add Page to "False". Generating project with only this table without authetication, it giving error.SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '' for column '....' at row 1File C:\laragon\www\v\app\models\PDODb.php On Line 459when datetime field is required "true" we receive another error:SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column ' ... ' at row 1File C:\laragon\www\v\app\models\PDODb.php On Line 459I tested in 2 pcs.Please advice where i did wrong.Thanks Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #1 – September 04, 2019, 09:46:03 AM @grou please, can I get a project .ppm and your database .sql dump Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #2 – September 05, 2019, 05:20:23 PM Hi Willvin..thanks 4 ur reply..files attched Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #3 – September 06, 2019, 07:55:38 PM @grou the dbc.sql contains no tables and columns(it was not exported properly). Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #4 – September 06, 2019, 08:46:03 PM Sorry...Files Updated. Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #5 – September 06, 2019, 09:39:13 PM tested with the classic version 2.6.5 ... same problem remain. Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #6 – September 07, 2019, 12:25:55 AM Quote from: grou – September 03, 2019, 01:48:14 PMI made a simple table with id (int), date field, int field and varchar field in MySql, with NULL as default option.I changed the "validation->required" option on Add Page to "False". Generating project with only this table without authetication, it giving error.SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '' for column '....' at row 1File C:\laragon\www\v\app\models\PDODb.php On Line 459when datetime field is required "true" we receive another error:SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column ' ... ' at row 1File C:\laragon\www\v\app\models\PDODb.php On Line 459I tested in 2 pcs.Please advice where i did wrong.Thanks @grou the project works fine from my end. Please publish your project to a different folder, that should solve it. Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #7 – September 09, 2019, 01:25:11 AM I removed laragon and installed new version with new installation and new database.In the table, all field expect "id" (Primary key) have default as NULL.In the form on PHPRAD (Add form) only "id" is required... All others fields are "not required".I made several new projects.. in both PHPRAD Vue and PHPRAD Classic.In PHPRAD VUE, everything worked fine... no errors.In PHPRAD Classic 2.6.5 i got errors when date or datetime or int fields left Blank with no data. Varchar field are saved blank without error. PLEASE TEST WITH BLANK DATETIME AND INT (no data) and try to save the record.I tried in a new pc and got same error with classic version.Please take a look on the attached screenshot.In PHPRAD Vue everything is fine.Please help. Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #8 – September 09, 2019, 10:23:14 AM @grou please upload your date field configuration for Add Page or Edit Page Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #9 – September 10, 2019, 04:11:23 PM I made a brandnew and very simple project with one table named customers.In this table we have id (primary key), name (required), birthdate (not required), age (not required), created_at (not required).i am uploading the project with the database .sql again.please if anyone else can test it and confirm the error 500 in PHPRAD CLASSIC version.In PHPRAD VUE editon there is no errors.First test: Use add form and just inform the name, leave all other fields empty. I got error 500 on birthdateSecond test: Use add form again and inform name and birthdate. Leave age empty and try to save. Error 500 on age field.Thanks Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #10 – September 10, 2019, 08:48:42 PM @grou I see the bug now, it has been reported to the dev team.Thanks for the feedback. Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #11 – September 11, 2019, 07:35:24 PM Thanks Willvin for figuring out this...Do you have any ideia of how much time usually take to resolve these issues?We are stuck on this error. Since our form cannot have all the fields "required" at "Add Page".Regards. Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #12 – September 11, 2019, 11:08:13 PM @grou the error has been resolved on the latest version 2.6.6 Quote Selected
Re: Classic 2.6.4 eval - Error when insert none required field Reply #13 – September 12, 2019, 01:34:35 PM the error remains even in the PHPRAD Classic 2.6.7 version....please test my last uploaded project again.I deleted all files in localhost and generated the project again with no success.please confirm.Regards. Quote Selected Last Edit: September 12, 2019, 01:39:40 PM by grou
Re: Classic 2.6.4 eval - Error when insert none required field Reply #14 – September 16, 2019, 12:45:31 AM Hi Willvin... Any news please about this bug?Keep Waiting...Regards Quote Selected