• Resolved sjoerd89

    (@sjoerd89)


    -edit- New update fixed this

    Hi there,

    the latest update now completely broke my wpform.
    After filling in a form i just get a blank page and no forms are send or received.

    Sjoerd

    • This topic was modified 4 years, 8 months ago by sjoerd89.
Viewing 15 replies - 1 through 15 (of 17 total)
  • Same for me, I get:

    “Fatal error: Uncaught Error: Call to a member function get() on null in …wp-content/plugins/wpforms-lite/includes/emails/class-emails.php:386 Stack trace: #0”

    Same happened to me after I updated the plugin, had a critical error when trying to fill & send a form. I’m glad I had the WP Rollback plugin, used it to downgrade to previous version and forms are working again.

    Thread Starter sjoerd89

    (@sjoerd89)

    Can you upload the old files somewhere?

    Plugin Author Jared Atchison

    (@jaredatch)

    Hey everyone – thank you for the reports, they were very helpful and allowed us to get this fixed within a few hours.

    WPForms 1.5.9.5 is available which gets forms submitting as they should. So, head to your Plugins page in your dashboard, update WPForms Lite, and you should be good to go.

    I really apologize for trouble here and introducing this bug. We work really hard to make sure every update is battle tested, but this issue slipped through the cracks, and for that I’m very sorry. We’re going to do our best to make sure future updates are seamless, as expected.

    Thanks again,

    Jared

    Thread Starter sjoerd89

    (@sjoerd89)

    Thanks for the quick fix

    Jared,

    I’ve updated the plugin and the error is now gone when I submit a test form and I get the confirmation message on the site, but the email is still not coming through to my inbox?

    Any ideas?

    Cheers
    Ste

    Haven’t updated to the latest version since I saw last post from Ste but just did another test on version 1.5.9.1 and noticed a really long delay before receiving messages in my inbox. There was barely any delay before, might be unrelated though.

    @stestory @francismd — It sounds most likely that each of you are running into an issues that could be resolved with an SMTP plugin. SMTP both authenticates your emails (which helps them to deliver successfully once sent) and also changes the mechanism by which those emails are sent (which helps avoid potential server issues causing sending delays or sometimes preventing emails from getting sent out).

    When you have a chance, I’d recommend checking out this tutorial — it shares more details on the issue and our recommended SMTP options.

    As you’ll see on that guide, the main plugin we like to recommend is one of our own: WP Mail SMTP. It’s completely dedicated to helping WordPress users resolve this growing issue. If you decide give that plugin a try and have questions, here’s our WP Mail SMTP .org forum where we provide limited complimentary support for free version users ??

    Hi Jess

    This seems to be an issue with the update, because my other sites where I haven’t upgraded the plugin are working fine, and I also just tried a test with “NinjaForms” on the same site and that went into my inbox in seconds?

    Cheers

    Hi Jess,

    Already using WP Mail SMTP here. Just did another test, delay is about 4 minutes.

    To follow up to this, i’ve set up the SMTP plugin and the e-mail test from that has come through instantly: “Congrats, test email was sent successfully!”

    But still not getting anything through from the WPForms plugin – The test with NinjaForms worked perfectly and that one came straight through?

    Hi @francismd and @francismd

    I’m so sorry for the trouble here, and I have an update!

    After checking with our dev team, it sounds like this issue is related to our recent email adjustments (this allows emails to be sent in the background, so that email sending issues don’t slow down form submissions).

    Our team is working on a broader fix, but in the meantime we’ve put together a code snippet that turns off this feature (reverts email sending to the way it worked before this recent update): https://wpforms.com/developers/wpforms_tasks_entry_emails_trigger_send_same_process/

    The code snippet at the bottom of that page can be copy and pasted into your site (in functions.php or a code snippets plugin). In case it helps, here’s WPBeginner’s tutorial on the easiest way to add code snippets like this to your site.

    I hope this helps! When you’ve had a chance to use that snippet, please let me know any updates/questions ??

    Hi jess,

    I tried adding the line
    “apply_filters( ‘wpforms_tasks_entry_emails_trigger_send_same_process’, bool $enabled, array $fields, array $entry, array $form_data, int $entry_id, string $trigger );”

    to my functions.php, and its now giving this error:

    “Parse error: syntax error, unexpected ‘$enabled’ (T_VARIABLE), expecting ‘)’ in /OCakes/wp-content/themes/astra/functions.php on line 161”

    And the whole site is inaccesible?

    • This reply was modified 4 years, 8 months ago by stestory.

    Hi Stestory,

    It’s not very clear, but don’t add the code at the top of the page to your functions.php, you need to use the snippet at the _bottom_ of the page, i.e use the following code:

    /**
     * Disable form notifications sending asynchronously.
     *
     * @link    https://wpforms.com/developers/wpforms_tasks_entry_emails_trigger_send_same_process/
     *
     * @param   bool   $enabled    Default is false (emails send asynchronously).
     *
     * @return  bool
     */
    add_filter( 'wpforms_tasks_entry_emails_trigger_send_same_process', '__return_true' );

    I’ve just done this and it works for my site.

    One thing to note is that you need to use the functions.php file that’s present in your theme directory, not the one that’s in [webroot]\wp_includes\

    Cheers,

    Phil

    • This reply was modified 4 years, 8 months ago by philtaylor554.

    @philtaylor554 Brilliant, thanks Phil.

    I added the above to my functions.php and it appears to have done the trick, e-mails are coming through from the form now!

    Thanks for your help, are we going to have to do this for all sites using WPForms if we want to upgrade the plugin now or is a future update likely to fix the issue?

    Cheers
    Ste

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘New update broke completely’ is closed to new replies.