mplodowski / formbuilder-plugin-public

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

htmlspecialchars() expects parameter 1 to be string, array given #21

Closed jubbot closed 2 years ago

jubbot commented 2 years ago

Describe the bug Unable to create new form, view premade form after fresh plugin install

To Reproduce Steps to reproduce the behavior:

  1. Install Form Builder plugin on fresh OctoberCMS installation
  2. After installation go to Form Builder - Forms - New form

Expected behavior Not sure what cause this but the error say htmlspecialchars() expects parameter 1 to be string, array given

Screenshots https://ibb.co/zhvYdPd

October version v2,2,24

Plugin version 2.1.7

Additional context Add any other context about the problem here.

mplodowski commented 2 years ago

I just created new October project and install FormBuilder plugin.

I don't experience this error. Can you go to Settings -> Mail -> Mail Templates and write me what templates you have there.

What php version do you use?

jubbot commented 2 years ago

Hmm that's odd. Here is the screenshot of the Mail Templates and not sure what I am missing in that page? https://ibb.co/vLcP8vw also I am currently using php 7.4.

mplodowski commented 2 years ago

In Form page there is a Template dropdown field which queries all mail templates and list them. I think some mail templates from other plugins are causing the issue.

What plugins do you have installed?

jubbot commented 2 years ago

The plugins I have active is Offline.SiteSearch Rainlab.builder Rainlab.Location Rainlab.Pages Rainlab .Sitemap Rainlab.Translate Rainlab.User wt.Project (my own custom build plugin) Offline.Mall Renatio.FormBuilder

Other plugins are turn off.

Could that be php version related or some plugin causing the error?

mplodowski commented 2 years ago

I installed Offline.Mall plugin and its registered mail templates are causing the issue. I have replicated the issue, and will try to find solution.

Thanks for help debugging this.

jubbot commented 2 years ago

No worries,

I plan to use that Offline.Mall plugin soon, I guess new update for FormBuilder coming soon to fix the issue?

mplodowski commented 2 years ago

Please update plugin to version 2.2.0 and check if this fix your issue.

jubbot commented 2 years ago

Hi, I have updated the plugins and the errors is gone. Thank you.