mplodowski / formbuilder-plugin-public

https://octobercms.com/plugin/renatio-formbuilder
https://octobercms.com/plugin/renatio-formbuilder
2 stars 0 forks source link

Unable to submit the form #35

Closed kgangadhar closed 11 months ago

kgangadhar commented 1 year ago

Describe the bug "Trying to access array offset on value of type null" on line 143 of /home/buildingpixels/public_html/plugins/renatio/formbuilder/traits/RenderFormAjax.php To Reproduce Steps to reproduce the behavior:

  1. Go to '...' https://buildingpixelsacademy.com/
  2. Click on '....' submit the form
  3. Scroll down to '....' a pop up with above mentioned message is popping up , we are using OC 2 version
  4. See error

Expected behavior when we submit the form it needs to redirect to thankyou page instead its popping an error alert formsubmission error

Screenshots If applicable, add screenshots to help explain your problem.

October version October cms version : 2.1.6

Plugin version Form Builder version : 1.5.0

Additional context error triggering when we submit the form from frontend only.. we have submitted using test form in the backend we received emails and its working properly... which means there is an issue in the frontend its which we are unable to getit

mplodowski commented 1 year ago

Hi,

try to upgrade Form Builder plugin version to 2.2.0.

kgangadhar commented 1 year ago

there is no option to upgrade it form backend ... do i need to do it locally and push into server

mplodowski commented 1 year ago

Yes, you must update plugin locally using composer.

kgangadhar commented 1 year ago

could pls send code over email " Form Builder plugin version to 2.2.0" pls .... i have issue with my pc

mplodowski commented 1 year ago

formbuilder-plugin-2.2.0.zip

kgangadhar commented 1 year ago

when i replace with above 2.2 version ... site getting crashed or forms got vanished .. do u have any procedure to follow

kgangadhar commented 1 year ago

i will share you the credentials could you pls update it for me

mplodowski commented 1 year ago

I think from version 2.0 October is using composer.json to manage dependencies and updates. So it is not as easy as just replace all plugin files with ftp. You must change version of FormBuilder plugin in composer.json file to 2.2.0 like so:

"renatio/formbuilder-plugin": "2.2.0",

Then in console run:

composer update

This will also update other dependencies so you must do it locally on your computer. Then check if everything works locally.

Next run migrations, but I recommend to have database backup before you run this:

php artisan october:migrate

After that push all your changes to server and also run all previous commands on the server project.

Sorry, but I cannot do those steps for you.

You can hire me to make the update if you think this is too much. For details send me message through October profile page: https://octobercms.com/author/Renatio