formtools / core

The Form Tools Core.
https://formtools.org
207 stars 78 forks source link

Internal Server Error #823

Closed brian-lock closed 2 years ago

brian-lock commented 2 years ago

Am retired but still update a website for a friend www.douglasjamestraining.co.uk, consequently rusty re construction of Form Tools.

On the Courses page when completing form @ https://www.douglasjamestraining.co.uk/appform.htm ( Currently hidden ) displays web page 'Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.'

Error log shows 'douglasjamestraining.co.uk [Thu Oct 21 17:28:22 2021] [error] [client 2.217.103.171:0] AH01215: Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at FormMail.cgi line 251.'

Line 251 in CGI File shows ' if (!defined(%Form)) { &error('bad_referer') }'

Not sure which part of code to delete

Can anyone advise

Screenshot 2021-10-25 at 10 30 49
benkeen commented 2 years ago

You're using a different script, I'm afraid. That looks like perl - our Form Tools is written in PHP! Good luck tracking the problem down though :)