PHP error with contact form plugin

Hi there,

I downloaded and installed the Contact form Plugin & Snippet on my site, however I’m running into this issue when I hit the send button:

Fatal error: Call to undefined function error() in /www/site/plugins/contactform/contactform.php on line 42

I haven’t touched any code in that script so I’m not sure what the issue would be.
The only code I tweaked in the snippet was the ‘to’, ‘from’ and ‘subject’ in the new ContactForm array.

Could anyone offer some insight?

Thanks for your time.

p.s. At the moment I’m just running this on localhost using MAMP

What contact form plugin is that? You probably downloaded a plugin for Kirby 1, which won’t work with Kirby 2 anymore?

Oh yeah, I think you might be right.

Unfortunately it doesn’t look like there is a contact form plugin for Kirby 2 at getkirby-plugins.com so I guess I’ll just have a crack at doing it myself.

Thanks!

You may want to have a look at the uniform plugin (listed at getkirby-plugins.com) if you don’t want to do it yourself https://github.com/mzur/kirby-uniform

And there’s this contact form example: https://gist.github.com/bastianallgeier/c396df7923848912393d

1 Like