WordPress.org

Ready to get started?Download WordPress

Forums

Fast Secure Contact Form
[resolved] About Fast Secure Contact Form redirect problem (30 posts)

  1. luisserrano
    Member
    Posted 1 year ago #

    Hi all.

    About:
    http://www.fastsecurecontactform.com/redirect-problem

    I have known that Fast Secure Contact Form redirect doesnt work in Selfhosted WP when Jetpack plugin is activated and connected to WordPress.com

    In fact, Jetpack plugin can be activated and coexist with Fast Secure Contact Form with no problems, but, when Jetpack connects with Worpdress.com the redirect problem appears.

    This is a report and help requesting :(
    Any idea?

    Thanks in advance.

    http://wordpress.org/extend/plugins/si-contact-form/

  2. gillico
    Member
    Posted 1 year ago #

    I am using WP 3.5, FS Contact Form 3.1.5.8 and Jetpack 2.0.4. I found and read the FAQ and tried everything suggested- I tried a stock theme, and disabled all the plugins and re-enabled them one by one, until I determined Jetpack to be the cause of the "form sent, redirecting" message not appearing and redirection not working.

    Unfortunately, the functionality of my site depends on Jetpack. Since this is a fairly common plugin these days, I was wondering if issue might be something you could investigate?

    My site's contact form is located at http://adam.gillitt.com/contact

    Thanks for any assistance you can provide, I am grateful for your work.

  3. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    Try this
    Edit the form page and uncheck the form redirect setting.
    Use it without redirect. Is that OK?

  4. luisserrano
    Member
    Posted 1 year ago #

    Hi Mike, thanks for the answer.

    I know I can use your plugin without redirect, but I need the redirect function. The "patch" for me was deactivate Jetpack. Now I use Statpress.

    Please, hope you find a solution. Anyway, your plugins is vey very nice. Thanks for that.

    Best regards Miki, and Merry Xmas!

    ;)

  5. Light3D
    Member
    Posted 1 year ago #

    I am having the same issue here. Jetpress deactivated and redirecting works fine. As soon as Jetpress is active neither redirecting nor the temporary "message sent" will work.

  6. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    I do not use Jetpack or even know how to test with Jetpack.
    I can give you some technical explanation on how the Fast Secure Contact Form redirect works:
    Normally WordPress will handle a redirect using a built in function wp_redirect.
    Because the form code is run inside a page or post via shortcode, the HTML headers are already sent. So I cannot use the wp_redirect function. The form posts back to the same page so the shortcode will execute. I have implemented a javascript redirect. Some plugins or themes conflict with the redirect javascript. When that happens, I have no workaround. Does it get stuck on the page with the redirect message and spinning progress image? If so, I can add a "click here to continue" link. If behaves otherwise, then the problem is more serious.

    If anybody has any ideas to contribute, I am willing to consider them.

  7. mikeyaka
    Member
    Posted 1 year ago #

    Hi all,

    I have exactly the same problem.

    The form information sends OK but the page just resets back to a blank form. So the user thinks it failed and either resends the form numerous times or quits the page and I lose the visitor.

    Its here: http://englishjobsturkey.com/get-a-job/upload-resume/

    I need both Jetpack and FSCF for their respective functions but I am really struggling to make them work together!

    Otherwise I love the plugin, it answered several other needs so thanks very much for that.

    I really hope you can find a solution.

    Best regards,

    Mike

  8. Marcos
    Member
    Posted 1 year ago #

    Hi Mike Challis,

    I have the same problem as described above, by 'mikeyaka' and the others.
    I love JetPack and love FSCF too.
    I need them working together.

    As 'mikeyaka' said the form information sends OK but the page just resets back to a blank form without any other information.
    So, visitors don't know if it's working.
    It's annoying.

    You can see the problem here: http://www.materiaincognita.com.br/contato/

    We hope you can fix it.

    Good luck!!!

  9. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    Since I do not use Jetpack, can someone try a couple things?

    Test 1)
    Disable Jetpack sharing module, did the problem go away?
    If not, go ahead an enable it again.

    Test 2)
    What if you edit wp-content/plugins/jetpack.php and add my plugin to the compatibility list?

    line 407 find:

    $conflicting_plugins = array( 
    
    'facebook/facebook.php', // Official Facebook plugin

    insert this line after:
    'si-contact-form/si-contact-form.php', // Fast Secure Contact Form

    Does it work now?

  10. Marcos
    Member
    Posted 1 year ago #

    Hi, Mike!

    We don't use JetPack 'Sharing' module in our site so we've tested only the second option (editing 'jetpack.php') and...

    ...it has worked fine!

    Take a look again at http://www.materiaincognita.com.br/contato/

    * Please, ask JetPack developers team to include that line in original file jetpack.php to avoid losting it in future updates of JetPack plugin.

    You are The Guy !!!

    Thanks a lot and have a nice 2013,

    []'s
    Marcos

  11. mikeyaka
    Member
    Posted 1 year ago #

    Hi Mike and Marcos,

    Yes! Test 2 (editing Jetpack.php) worked for me too.
    I just pasted that line at the bottom of the compatability list, saved it, enabled Jetpack again, tested my form and bingo! It redirects as I intended.

    Many thanks for such a quick and clear solution.

    Best wishes for 2013

    Mike

  12. chrisrobertson1
    Member
    Posted 1 year ago #

    I don't make use of the sharing portion of JetPack either, but I too can confirm the addition of the line of code to the jetpack.php file made my redirect (and subsequent sending of email from the FSCF plugin) work again with JetPack connected to WordPress.com for stats.

    Great thanks to Mike Challis for coming up with the quick solution!

  13. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    No, I do not think JetPack authors will add my plugin to that list because it is not a social networking plugin that prints it's own open graph tags. If they did so, it could actually cause their own 'Publicize and 'Sharing' modules to not have any open graph tags since my plugin does not add any.

    The JetPack 'Publicize and 'Sharing' modules provides a feature to connect your WordPress site to popular social networks and automatically share new posts with friends and followers via Facebook, Twitter, Tumblr, Yahoo!, and Linkedin.

    There is just one problem, Jetpack uses an implementation of Open Graph meta tags which causes "Fast Secure Contact Form" plugin to have a failure to redirect after the user submits their message. (I do not know exactly why). This results in a user thinking their form was not properly submitted and they might try it again.

    JetPack has no setting to disable the 'Publicize and 'Sharing' modules. Instead, adding this line in your functions.php should fix this particular problem and allow "Fast Secure Contact Form" redirect to work properly:

    How to disable Jetpack open graph tags

    To remove Jetpack’s open graph tags, open up your theme’s functions.php file and paste the following code.

    // remove jetpack open graph tags
    add_filter( 'jetpack_enable_open_graph', '__return_false', 99 );

    The opengraph filter controls whether the Open Graph functionality loads. Try it and let me know if it fixes the redirect problem. Only do it if you are OK with the open graph tags missing from your site.

    If you previously added my $conflicting_plugins = array hack into jetpack.php, be sure to remove it before you try this so the results can be measured accurately.

  14. luisserrano
    Member
    Posted 1 year ago #

    Same for me here. I have both plugin working together now. Thanks so much!

    Xmas & Happy New Year
    Best regards.

  15. Marcos
    Member
    Posted 1 year ago #

    Hi, Mike.
    Thanks for your support but I don't deal very well with PHP, Open Graph, many JetPack modules, etc, etc... :oP

    I prefer create a backup copy of that file in server such as 'jetpack.php.LINE407' to prevent the problem in future updates of JetPack.

    Maybe another guy can test it for you and post the solution here for all of us.

    Best regards for all FSCF users and for Mike Challis in special.

    []'s

  16. passegua
    Member
    Posted 1 year ago #

    Thanks to Mike I inserted this line after:
    'si-contact-form/si-contact-form.php' // Fast Secure Contact Form

    and now Fast Secure Contact Form redirect works great.

    But I do not understand the other message about open graph: "If they did so, it could actually cause their own 'Publicize and 'Sharing' modules to not have any open graph tags since my plugin does not add any."

    It means that 'Publicize and 'Sharing' now wont work any more?

    I mean: is there any way to have BOTH Secure Contact Form AND 'Publicize and 'Sharing' working properly together?

    Many thanks and best wishes.

    Dan

  17. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    Question: is there any way to have BOTH Secure Contact Form AND 'Publicize and 'Sharing' working properly together?

    Answer: I do not know, maybe you could post about this problem in the JetPack forum. JetPack is causing this problem by the way.

  18. passegua
    Member
    Posted 1 year ago #

    Right, I'll post my question to JetPack forum too.
    Thanks.

  19. passegua
    Member
    Posted 1 year ago #

    luisserrano wrote: "Same for me here. I have both plugin working together now."

    I am asking:
    Using which solution?

    1) the "insert this line after:
    'si-contact-form/si-contact-form.php', // Fast Secure Contact Form"

    or

    2) the " disable Jetpack open graph tags" ?

    Now is JetPack 'Publicize and 'Sharing' module working properly?

    Thanks.

  20. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    Related thread. The JetPack authors might try to fix it.
    http://wordpress.org/support/topic/conflicting-plugin?replies=1#post-3693295

  21. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    OK, I know more now...
    The problem is caused by my plugin. It is something I can try to fix.
    The form POST action in my plugin is being processed at the same time the page content prints from the shortcode. I designed that part wrong.

    Shortcode is not supposed to handle form processing logic. The form needs to process earlier on during WP init, separate from the time the page content prints from the shortcode.

    This plugin has so many features it will take me quite some time to rearrange all the code properly. I started working on it, but do not know for sure when it will be fixed. Maybe even have to wait for version 4.0

  22. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    I made great progress getting this fixed version working already. I have to test it well to be sure I did not break any features .

    Will some of you help me test if it fixes the redirect problems?
    I can have a test version ready in a day or two

  23. passegua
    Member
    Posted 1 year ago #

    Sure Mike, I'm willing to test your beta as soon as you release it.
    Best wishes.

  24. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    I might have this new version ready tonight for testing.
    I just want to make sure it is then compatible with JetPack and SCF Like.
    Since I do not use those plugins I am not able to test them myself.
    If anybody can test it with JetPack and/or SCF Like. Contact me here and I can email you 3 PHP files to upload to your plugins/si-contact-form. folder

  25. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    The new version is ready to test. I just need a couple testers.

    I just want to make sure it is now compatible with JetPack and SCF Like.
    Since I do not use those plugins I am not able to test them myself.
    If anybody can test it with JetPack and/or SCF Like. Contact me here and I can email you 4 PHP files to upload to your plugins/si-contact-form. folder

  26. Marcos
    Member
    Posted 1 year ago #

    Hi all,

    I've removed that line 'si-contact-form/si-contact-form.php', // Fast Secure Contact Form from jetpack.php file and updated FSCF plugin to version 3.1.7.1.

    * We don't use 'Sharing' module of JetPack in our site.

    Now FSCF is working fine as you can see at http://www.materiaincognita.com.br/contato/

    Thank you Mike!!!

  27. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    FSCF plugin version 3.1.7.1 resolved the problem

  28. livingc
    Member
    Posted 1 year ago #

    Hi all,

    Is this still in testing mode? I have version 3.1.7.2 of FS Contact Form. The redirect is not redirecting yet as I'm watching it right now and my client said that it took her 5 minutes. I don't use jetpack and am not on WordPress.com. I don't recalling having a redirect issue in the past with FS Contact Form... at least not this long of a redirect. What could be causing this?

  29. Mike Challis
    Member
    Plugin Author

    Posted 1 year ago #

    The problems of this topic were resolved as of 3.1.7.2 of FS Contact Form.
    Please post a new topic for the problem you have

  30. livingc
    Member
    Posted 1 year ago #

    Ok. Will do. Thank you for the quick reply!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic