-
Notifications
You must be signed in to change notification settings - Fork 573
Creating a contact form>from old forum #1232
Comments
@freddytwonotes Can you please show me the routes you've added? It looks like you've not got one for the submission :) |
I had this script in the routes/sites.php file. I have since moved it to the themes/default/functions.php file (no change in the exception). Since this is custom for this theme it seemed more appropriate to put it there so now the routes folder is back to unchanged. Are there docs for Anchor conventions (just starting on this). Here is the script followed by the form. No change save the email return and minor formatting on the form.
here is the form:
|
Dont want to open a new issue to just ask this: |
Currently we're not developing the CMS, just popping in every now and then to make bugfixes and releases. We got pretty far with the 1.0 release, but there were a few things we needed to finish off and tidy up. When I get some free time I tend to do a large amount, but things have been busy for me this year. Is there anything you need help with? |
Summary
Bringing this issue from the old forum link: https://forums.anchorcms.com/d/799-making-a-contact-form
From the old thread, I set this up but was having a logging problem. the anchor dir had to be chown'd from 12345:12345 to 12345:web. That problem is resolved.
the script is still not working.
Expected Behaviour
The "contact" form filled out and submitted. The script in: anchor/routes/site.php executes, sends the mail then returns to the form page.
Actual Behaviour
After submission an error is thrown:
The log file error:
The generated URL:
Context details (if applicable)
The text was updated successfully, but these errors were encountered: