WordPress.org

Ready to get started?Download WordPress

Forums

CF7 AutoResponder Addon
Missing argument in 'get_post_meta()' makes cf7 hang (12 posts)

  1. hafman
    Member
    Posted 6 months ago #

    I just fixed a problem where CF7 was not showing a success message on submit. The messages were being sent but a 'spinning arrows' gif was showing forever.

    Somehow Firebug showed an error in the Script (JS??) panel : Missing argument 2 for get_post_meta() on line 163 of cf7_autoresponder_addon.php

    So i went in and changed
    $form_meta_data = get_post_meta($form_id); //get the form meta-data so we can see if there is "mc-subscribe"
    to
    $form_meta_data = get_post_meta($form_id,true); //get the form meta-data so we can see if there is "mc-subscribe"

    It works perfectly now but isn't this a bug? Have i upset anything in the script? It seems too obvious.

    https://wordpress.org/plugins/contact-form-7-autoresponder-addon-plugin/

  2. wpsolutions
    Member
    Plugin Author

    Posted 6 months ago #

    Hi @hafman,
    Thanks for the info. I will do some investigations to see if indeed there is a bug.

  3. wpsolutions
    Member
    Plugin Author

    Posted 5 months ago #

    Hi,
    My investigations have not revealed any issues with the plugin.
    Also, this doesn't seem to be happening for any other users otherwise I would have got many complaints by now.

    I suspect this might be something unique to your site which is causing the problem - particularly when you mentioned "Somehow Firebug showed an error in the Script (JS??) panel ".

    Maybe there is another plugin causing JS errors?

  4. hafman
    Member
    Posted 5 months ago #

    Thanks for investigating! I really appreciate it.

    It's maybe nothing that upgrading core and plugins won't cure. The site in question is sorely in need of that ;-)

  5. nicolassanfer
    Member
    Posted 5 months ago #

    Hello everyone,

    I have the same problem but in another line of code.

    <b>Warning</b>: Invalid argument supplied for foreach() in <b>/../wp-content/plugins/contact-form-7-autoresponder-addon-plugin/cf7_autoresponder_addon.php</b> on line <b>206</b>

    I have installed version 1.6 of Contact Form 7 AutoResponder Addon Plugin

    How can I fix it?

    Regards

  6. wpsolutions
    Member
    Plugin Author

    Posted 5 months ago #

    @nicolassanfer,
    Do you have any lists configured in your mailchimp account?

    What action causes the error?

  7. nicolassanfer
    Member
    Posted 5 months ago #

    The action is when submit a form.

    CF7 was not showing a success message on submit. The messages were being sent but a 'spinning arrows' gif was showing forever.

    Yes I have configured the fields Enter MailChimp API Key: and Enter MailChimp List Name: in the page MailChimp Account Details.

    Regards

  8. wpsolutions
    Member
    Plugin Author

    Posted 4 months ago #

    @nicolassanfer,
    I meant have you created the list in your MailChimp dashboard?

    In other words have you logged into your mailchimp account at mailchimp.com and created and configured the list?

    The reason I ask is because the error you are seeing appears to suggest that the plugin might not be finding any lists in your MailChimp account.

    If you have created the list also make sure the name you assigned it matches exactly with the name you enter in the plugin config settings.

  9. Hermie1964
    Member
    Posted 4 months ago #

    Same thing here, messages are being sent, but arrow keeps spinning...

  10. wpsolutions
    Member
    Plugin Author

    Posted 4 months ago #

    @Hermie1964,
    Can you please check this plugin's directory to see if there are any logs being produced?

  11. FPDarren
    Member
    Posted 4 months ago #

    Hello,

    I too have the same issue with the contact form's spinning arrow remaining and never showing a success/failure message.

    The contact form does successfully send the form email and also successfully subscribes to my MailChimp list.

    I see no error messages anywhere and can see no logs in the plugin's directory.

    Versions are as follows:
    WordPress: 3.8.3
    Contact Form 7: 3.8
    CF7 AutoResponder Addon: 1.7

  12. wpsolutions
    Member
    Plugin Author

    Posted 4 months ago #

    @FPDarren,
    Can you please check your server logs to see if there are any entries relating to this?

    Do you have any other plugins which work with the main CF7 plugin?

    Can you provide a link to your form so I can take a quick look?

Reply

You must log in to post.

About this Plugin

About this Topic