plain-solutions-gmbh / kirby-form-block-suite

This form plugin for Kirby offers you maximum flexibility and usability. It can be used as a block anywhere you needed. This repository replaces the obsolete version 2.0.
Other
38 stars 11 forks source link

Unexpected token <!DOCTYPE #32

Closed plain-solutions-gmbh closed 7 months ago

plain-solutions-gmbh commented 7 months ago

Hi!

When I wanted to send a form, I got this: image

Kirby 4.0.0 and your plugin is up to date. So now it is not working, please help.

You can check on here: http://patakimartina.iavel.hu/kapcsolat

Originally posted by @cselex in https://github.com/youngcut/kirby-form-block-suite/issues/28#issuecomment-1880155461

plain-solutions-gmbh commented 7 months ago

Hi Cselex

Your problem is, that your endpoint item is missing:

Bildschirmfoto 2024-01-07 um 21 45 44

Usealy it's given from the script.php in the formcore folder:

https://github.com/youngcut/kirby-form-block-suite/blob/81f9b8af8a1161822d6727f16eef7251e8d076f2/snippets/blocks/formcore/script.php#L11

Can you check this file in your environment, to check whats wrong..?

cselex commented 7 months ago

I checked and got it the first problem. I had 3. x.x version files in the site/snippets folder, for example, the core folder, and form.php. So I removed these but I got another error on the console: image

You can check on the website.

plain-solutions-gmbh commented 7 months ago

I checked it. You have still some leftovers from the old version. e.g. Please make sure the all the input fields has a [data-form="form_error"] attribute. For testing you can (temporarly) remove the folder/files site/snipptes/blocks/form*

cselex commented 7 months ago

Yes, I find that too. I removed almost all files from the form templates folder and it works again!!! So I'm sorry for this, in the future I try to check twice my changes and the new version.

Oh and thanks the Hun fix :)

plain-solutions-gmbh commented 7 months ago

I'm glad I could help. 🤗