Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lewis Logan 21 posts 132 karma points
    Feb 15, 2019 @ 09:17
    Lewis Logan
    0

    Handlers not working

    Hi,

    I have setup Formulate with a few forms on a local enviroment. Each Storing the Data and Sending an email using the provided handlers fine. I have recently deployed the site to a staging enviroment but the handlers do not seem to be working.

    All forms return "success" and proceed with my custom JS just none of the handlers attached to each form work. Maybe i've missed a file that should be included in the project? I had someone grab the latest from our repository and they were able to send emails and store data fine.

    Is anyone able to give any advice as to why this is happening? Or where I could look to debug the issue?

    Kind Regards, Lewis

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Feb 15, 2019 @ 20:25
    Nicholas Westby
    100

    This just happened to me, and the reason in my case was that it was a Formulate upgrade and the older version of Formulate didn't have the "disable" button on handlers. Because the back office frontend files were cached, the ability to toggle this disable button wasn't working, and evidently it defaulted to disabled. Solution was to clear the server wide cache and the browser cache. If you can see the disable button, that won't be your issue.

    Another thing that can happen is that one of the handlers can have an error, and that will prevent the subsequent handlers from functioning. Try changing the order of the handlers to see if that helps.

    The store data handler can fail if the database user doesn't have permission to create tables. The send email handler can fail if the SMTP credentials are misconfigured in the web.config.

    Look in the error logs to see if there are any Formulate-related entries.

  • Lewis Logan 21 posts 132 karma points
    Feb 18, 2019 @ 11:05
    Lewis Logan
    0

    Hi Nicholas,

    Thank you for the reply. I believe the problem came down to issues with the SMTP setup. Like you said, this handler was being handled before the Store Data handler meaning I wasn't getting anything sent through.

    This issue was due to a missing port number in the SMTP credentials that was required for the staging enviroment.

    Thanks again for your help! Kind Regards, Lewis

Please Sign in or register to post replies

Write your reply to:

Draft