Form Notifications Not Working

3 replies · opened Oct 19, 2020

JjkwyeungOct 19, 2020

Hello,

I'm having an issue with a form that previously worked. Not sure what happened here, I've been playing around and testing different things but would like your input on it.

I'm not getting any of the notifications passed back and the form to the user remains in the processing state.
I took out the Captcha for the time being as well.

Thanks,
Jason

SSemicolon WebSTAFFOct 19, 2020

Hello,

We have just checked out your Forms and there is some PHP error in the include/form.php File.

Double Check your PHP Codes or Customizations made in this File. If you are still facing further issues, then please consider adding the .customjs Class to the .form-widget DIV and then the following code at the very top (just after the PHP open tag) of your File:
[ch_pre]error_reporting(E_ALL);[/ch_pre]

which should display all the possible errors. Please notify us about the Error Message you see, after going through the process above, so that we can provide you with more assistance on this.

Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

JjkwyeungOct 20, 2020

Hi,

I took a look at what the form.php was returning with E_ALL:

<b>Warning</b>: stripos() expects parameter 1 to be string, array given in <b>/var/www/vhosts/adaria.ca/httpdocs/include/form.php</b> on line <b>137</b><br />
{ "alert": "success", "message": "We have successfully received your request and will get back to you as soon as possible. Thank you!" }

If I turn error_reporting to E_NONE the form appears to work properly. Looking at line 137 it appears to be the spam keyword checking function.

Thanks,
Jason

SSemicolon WebSTAFFOct 21, 2020

Hello,

Thanks for reporting this. This appears to be a Bug and returns an error if one of your Form's Input is a Multi-Value Input.

We are looking into this and will release an Update shortly. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard