Comments (8)
Okay sure, thanks for you assistance.
from oc-formstore-plugin.
Thanks for reporting this! When exactly do you get this error? When you try to submit the form? In backend or frontend?
It seems like an error in the mysql database configuration. What happens is that FormStore tries to create an entry in the table nocio_formstore_submissions
with the field value treated
=Null
which is not allowed by the database scheme.
It looks like you are on xampp, so it's not a production environment I suppose? If it's not production, can you open the database on which OctoberCMS is installed, e.g. with phpmyadmin or the mysql client and allow the treated
field to be nullable:
ALTER TABLE `nocio_formstore_submissions` CHANGE `treated` `treated` DATETIME NULL;
from oc-formstore-plugin.
Also, can you check if all the fields in your model Lmh\Forms\Models\Test
are nullable?
from oc-formstore-plugin.
Hi, this error was on the front-end when clicking the "Start" button.
After making the treated
field NULL I was able to start and submit the form. However, when I tried it on another model which has fields that are NOT NULL it gave the same SQL error for those fields. So it may be worth adding to the documentation that all the form fields need to be nullable. (unless I've missed that)
Another minor issue I've noticed is in the backend when viewing the Submitted forms, the Data ID is not showing the correct ID field. I assume it is showing the id
field from nocio_formstore_submissions instead of showing the data_id
field. All the data has been stored correctly in the database.
Thanks for you assistance mate.
from oc-formstore-plugin.
Good catch, I've added it to the documentation, thanks. I'll also look into producing a better error message if fields are not nullable. The other minor issue should be a simple fix in the columns.yaml, feel free to send a pull request. Otherwise, I'll fix it soon.
from oc-formstore-plugin.
Sorry, I didn't explain that correctly. I think the issue may either be in the Model or the Controller.
The data is blank, and the correct data_id
in the DB is 7
Please let me know once you've had a chance to look at it. Thanks
from oc-formstore-plugin.
Ok I see, can you open a new issue, it seems like a different problem. Thanks
from oc-formstore-plugin.
@rangrage The upcoming version will address the issues you've pointed out. Thanks for your report.
from oc-formstore-plugin.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oc-formstore-plugin.