form is hang on submit button after hit submit

  1. 3 months ago
    Edited 3 months ago by phuquy1311

    Sorry to raise this problem but could anyone please tell the the clue how to fix the below problem:

    I'm getting this log error and the form is hang on submit button after hit submit. The problem happened after I upgrade to 2.9 and now it's 2.9.1 and it's still not be fixed

    [2017-07-29 00:24:05] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@0000000052ca741c00000000025c21fc. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist  this association in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue." at /home/go.firetoeic.com/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {"exception":"[object] (Doctrine\\ORM\\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Mautic\\EmailBundle\\Entity\\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\\EmailBundle\\Entity\\Stat@0000000052ca741c00000000025c21fc. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist  this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). If you cannot find out which entity causes the problem implement 'Mautic\\EmailBundle\\Entity\\Stat#__toString()' to get a clue. at /home/go.firetoeic.com/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []

    you can test the form here: https://go.firetoeic.com/form/20

    The error from above was fixed in Mautic 2.9.1. My advice is to keep your Mautic up to date.

  2. Same here @phuquy1311 , let me know if you hear of any resolution. Same in 2.9.2 today. Glad to help resolve this in any way!

  3. What's your DB schema? Is already update?

    Try run php app/console doctrine:schema:update --dump-sql

    If you see some db queries then run

    php app/console doctrine:schema:update --force

    https://johnlinhart.com/blog/uh-oh-mautic-upgrade-was-not-successful

  4. Hey @kuzmany , thanks for replying!

    I tried that, and it ran 3 small quick queries, but it didn't fix the forms hanging whenever submit is pressed.

    Are you experiencing this problem?

  5. How can we use Mautic if Forms are not working? Why hasn't anyone from Mautic offered any advise on this?

  6. @escopecz Do you have any advise on this issue? I notice numerous posts on this topic on Mautic forums and also on GitHiub with no explanation on how to fix the issue..?

  7. escopecz

    Aug 9 Administrator Answer

    The error from above was fixed in Mautic 2.9.1. My advice is to keep your Mautic up to date.

  8. @escopecz: I'm at 2.9.2

  9. escopecz

    Aug 9 Administrator

    What is your error message then? It cannot be the same as the original error message.

  10. Sorry, multiple threads on this. Bad online behavior.

    I have no error messages. I turned on Debugging even and I see no errors.
    [2017-08-09 07:44:28] mautic.DEBUG: LEAD: System lead is being used
    [2017-08-09 07:44:28] mautic.DEBUG: LEAD: In a Mautic user session
    [2017-08-09 07:44:28] mautic.DEBUG: LEAD: System lead is being used
    [2017-08-09 07:44:28] mautic.DEBUG: LEAD: In a Mautic user session
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: System lead is being used
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: In a Mautic user session
    [2017-08-09 07:44:36] mautic.DEBUG: FORM: Not in kiosk mode so using current contact ID #
    [2017-08-09 07:44:36] mautic.DEBUG: FORM: Unique fields submitted include xxx
    [2017-08-09 07:44:36] mautic.DEBUG: 1 found based on unique identifiers
    [2017-08-09 07:44:36] mautic.DEBUG: FORM: Testing contact ID# 1174 for conflicts
    [2017-08-09 07:44:36] mautic.DEBUG: FORM: Potential conflicts 0 = email
    [2017-08-09 07:44:36] mautic.DEBUG: FORM: In kiosk mode so not merging
    [2017-08-09 07:44:36] mautic.DEBUG: FORM: Potential conflicts 0 = email
    [2017-08-09 07:44:36] mautic.DEBUG: FORM: Current unique contact fields email = xxx
    [2017-08-09 07:44:36] mautic.DEBUG: FORM: Submitted unique contact fields email = xxx
    [2017-08-09 07:44:36] mautic.DEBUG: FORM: Associating 127.0.0.1 to contact
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: 1174 set as current lead.
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: In a Mautic user session
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: 1174 set as system lead.
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: System lead is being used
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: In a Mautic user session
    [2017-08-09 07:44:36] mautic.DEBUG: CAMPAIGN: Campaign triggered for event type form.submit(form / 5)
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: System lead is being used
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: In a Mautic user session
    [2017-08-09 07:44:36] mautic.DEBUG: CAMPAIGN: Current Lead ID# 1174
    [2017-08-09 07:44:36] mautic.DEBUG: CAMPAIGN: no campaigns found so abort
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: System lead is being used
    [2017-08-09 07:44:36] mautic.DEBUG: LEAD: In a Mautic user session

    I replaced the email address with xxx on what I pasted
    THANKS!

  11. https://www.padtinc.com/mautic/testform

  12. escopecz

    Aug 9 Administrator

    This is in the dev tools console:

    testform:37 Mixed Content: The page at 'https://www.padtinc.com/mautic/testform' was loaded over HTTPS, but requested an insecure script 'http://www.padtinc.com/mautic/media/js/mautic-form.js'. This request has been blocked; the content must be served over HTTPS.

    Update the Mautic and Mautic's URL to use SSL.

  13. Well there you go. I'll have to learn to use the dev tools console at some point.

    Let me get with IT and give this a shot.

    Thank you so very much for looking into this! I will update on what happens.!

    Eric

  14. Edited 3 months ago by emillerphx

    That worked. First I just typed in the URL with https
    https://www.padtinc.com/mautic/testform
    That verified that the problem was fixed.

    I'm still trying to get it to use SSL automatically.

  15. @escopecz

    So.... It was working.

    I typed in https:// and it worked
    We changed the Mautic settins to make https://www.padtinc.com/muatic as the location

    It worked. Excitement!

    Then... it stopped Now I have the same problem.
    Cleared cache, made new forms, checked for error message. Nothing.

    can you try looking again. A much simpler form: http://www.padtinc.com/mautic/test2

    What tool did you use to find the error the first time? is that something I can use to help debug?

    Thanks!!!!

    Eric

  16. Same problem here.

    It’s my first test of mautic. I’m on v2.9.2, but none of the forms I created performs the redirect or displays a message after the form submit. Here’s a test page: https://dev.michaelvanlaar.com/mautic/test2

    All assets are included via https, so the mixed content problem should not apply here.

  17. @escopecz Good evening. I am currently using the latest version of Mautic and have also the SSL settings configured.. I am seeing no errors in Dev Console.. can you check my link and let me know your thoughts? Thanks!

    http://belikechad.com/

  18. escopecz

    Aug 11 Administrator

    @jwldub I don't see anything wrong with your form either. The problem is that the form doesn't display the success message, right? I've seen such problem last week at someone else already, so there must be some bug. But I cannot replicate it. Can you replicate it with an other form? If so, can you find out what option is causing it?

  19. Edited 3 months ago by jimmy

    Same issue on one of my forms, tried recreating the form to no avail (I'm on the latest version).

    The form that doesn't work has a download asset option (tested, still doesn't work after removal of asset from actions). Almost as if all forms created after a certain version do not work, but forms created before do.

  20. The form is supposed to redirect to another page and it is not working @escopecz

  21. Newer ›
 

or Sign Up to reply!