[Plugin: Fast and Secure Contact Form] Adding line (‘SI_CONTACT_FORM_MAX_FORMS’,
-
Hi, First, I love the plugin, I am setting it up as we speak, I seem to be having a problem with my form though. When I go to add
define('SI_CONTACT_FORM_MAX_FIELDS',15)to the wp-config.php
, it disables my site and the error code says:Parse error: syntax error, unexpected T_STRING in /home/uchrisre/public_html/wp-config.php on line 1
When I try it in a different place, just to be sure its not in a commented section I also get:
Parse error: syntax error, unexpected $end in /home/uchrisre/public_html/wp-config.php on line 1
So, then I return my wp-config.php back to normal, and I try the other option, of commenting out the part you suggest in another post, and just use the
define('SI_CONTACT_FORM_MAX_FIELDS',15)
and this is what I get after doing that to the si-contact-form.php
Parse error: syntax error, unexpected T_FUNCTION in /home/uchrisre/public_html/wp-content/plugins/si-contact-form/si-contact-form.php on line 43
I am not sure if I am missing doing the {brackets} or what, so I will post the part I changed in the contact-form.php, just to show you, and to see if I changed it correctly. As I know someone else has resolved this issue by doing it this way.
/* // allow admin to override max allowed extra formfields if(!defined('SI_CONTACT_FORM_MAX_FIELDS')) { define('SI_CONTACT_FORM_MAX_FIELDS',8); // allows up to 8 extra form fields (do not change here, see below ...) // if you need to add more extra form fields, add this line in wp-config.php: define('SI_CONTACT_FORM_MAX_FIELDS',10); // be sure to change the number 10 to the amount you actually need, no more. } */ define('SI_CONTACT_FORM_MAX_FIELDS',15)
Thanks for any help you can give in advance.
G. D. Caddy
https://www.ads-software.com/extend/plugins/si-contact-form/
- The topic ‘[Plugin: Fast and Secure Contact Form] Adding line (‘SI_CONTACT_FORM_MAX_FORMS’,’ is closed to new replies.