July 10, 201016 yr Hello I followed instructions on Wiki for using FormMail for Captcha. When I fill out my contact form it fails and says internal error has occurred. My hosting provider sent me the following message regarding this: Bareword found where operator expected at FormMail1.pl line 740, near "$error eg" (Missing operator before eg?) String found where operator expected at FormMail1.pl line 740, near "eg 'captcha_failed'" (Do you need to predeclare eg?) syntax error at FormMail1.pl line 740, near "$error eg " Can't find string terminator "END ERROR HTML)" anywhere before EOF at FormMail1.pl line 741. I don't really know what the above means, but I changed the g to a q in eg and made a few changes but still not working. Can anyone see what is wrong with the following section of formMail script at line 740(print....is line 740): } elsif ($error eq 'captcha_failed') { print <<"(END ERROR HTML)"; Content-type: text/html How do I check scripts using bareword? Thanks in advance for any advice
July 10, 201016 yr Hello I followed instructions on Wiki for using FormMail for Captcha. When I fill out my contact form it fails and says internal error has occurred. My hosting provider sent me the following message regarding this: Bareword found where operator expected at FormMail1.pl line 740, near "$error eg" (Missing operator before eg?) String found where operator expected at FormMail1.pl line 740, near "eg 'captcha_failed'" (Do you need to predeclare eg?) syntax error at FormMail1.pl line 740, near "$error eg " Can't find string terminator "END ERROR HTML)" anywhere before EOF at FormMail1.pl line 741. I don't really know what the above means, but I changed the g to a q in eg and made a few changes but still not working. Can anyone see what is wrong with the following section of formMail script at line 740(print....is line 740): } elsif ($error eq 'captcha_failed') { print <<"(END ERROR HTML)"; Content-type: text/html How do I check scripts using bareword? Thanks in advance for any advice for one this line elsif ($error eq 'captcha_failed') { should be this line elseif ($error eq 'captcha_failed') {
Create an account or sign in to comment