Contact Form plugin - Error loading 404 Pages
Anywhere you've currently got something that looks like this:

{% if message is defined %}{{ errorList(message.getErrors('fromEmail')) }}{% endif %}


Try changing that to:

{{ message is defined and message ? errorList(message.getErrors('fromEmail')) }}


And you'll want to do that for the other attributes, too ('fromName', etc.).