[Bug]: Cannot submit new form
Closed this issue · 11 comments
What happened?
Visit form page shows error:
Property type not supported in Livewire for property: [{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]
I also checked a demo form and got error https://demo.larazeus.com/bolt/diego
How to reproduce the bug
Create new form
Visit the form view page
Error thrown:
Property type not supported in Livewire for property: [{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]
Package Version
v2.0.1
PHP Version
8.2.8
Laravel Version
v10.20.0
Which operating systems does with happen with?
Linux
Notes
thank you for the report
I released a new version addressing this and will update the demo soon.
https://github.com/lara-zeus/bolt/releases/tag/v2.0.2
the issue is the HTML ID is required so I added a validation
but:
The error message is not shown since the field is on the inactive tab.
I will submit a bug report to Filament.
Thank you again
the demo is fixed now, feel free to reopen or create a new issue if you still having issues :)
Can you provide a link to the bug report you submitted on Filament so I can follow it please?
I didn't have a chance to create a reproducing repo and submit a new issue, but there is one the same thing: #7474.
I think the errors are different. The error I reported is specifically a livewire error:
Property type not supported in Livewire for property: [{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]
it's not the same issue but related
The issue you mentioned is fixed here
The reason for the livewire issue is that I have:
$component->id($zeusField->options['htmlId'])
the htmlId
is always required but there was no validation for it.
do you still having the same issue? tried the demo and the LW issue is fixed.
I created a reproduction repo that will help fix the bug: https://github.com/damms005/example-app-bolt
Login:
Username: test@test.com
Password: password
Please go through the https://github.com/damms005/example-app-bolt#readme for steps on how to set up
thank you for doing this
I did clone and test
you need to go to /admin
http://127.0.0.1:8000/admin/forms/jupeb/edit
in the Contact Information
section, the field Email
doesn't have an htmlID:
if you write any random string, and save the form, then access it in the URL:
http://127.0.0.1:8000/custom-forms/jupeb
it will work
I think there's a better way to communicate this. You know you may not be able to address this issue for every single person that has this error. Maybe throw a descriptive exception? Thoughts?
I did address this issue, I made a fix: https://github.com/lara-zeus/bolt/releases/tag/v2.0.2
and the issue of not been able to see the error message is related to this: filamentphp/filament#7474
Got ya. This is an awesome package. Thanks my man.