Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Jeff Crawford

    (@jcdigital)

    OK, here is an update on this. The submitted form email went through to my mailbox, even though the form returned an error. (“please enter the correct number”).

    Please fix this as it is a bad user experience. (Getting an error message when the form submission succeeded).

    Thanks,
    Jeff

    Plugin Author Guido

    (@guido07111975)

    Hi Jeff,

    On my website(s) it does work. On your website I notice an error when pressing correct number > but there is no number visible anymore. The number is generated via the default PHP ‘rand’ function, so this should always work.

    Only thing I can think of right now, is the session_start function: it saves (sets) the number after pressing submit and when correct number is entered, it unsets so new number is generated. Your theme or another plugin might have this function too, which can cause a conflict after pressing submit.

    I did not change anything in this function, so it should work as before. Did you customize plugin?

    Guido

    Thread Starter Jeff Crawford

    (@jcdigital)

    Hi Guido,
    Many thanks for the fast response. I have not customized your plugin.

    It sounds to me like we may have some type of plugin/theme conflict. Right now, suspect there may be a compatibility problem with he PHP Rand() function. I recall I had a problem with on other plugin that displays a random images. It would not display randomly.

    I’ll try turning off plugins and switcing themes to determine the root cause of the problem. If I find anything, I’ll report back.

    Thanks,
    Jeff

    Thread Starter Jeff Crawford

    (@jcdigital)

    OK, after turning various plugins on and off, and swapping themes in and out. I have determined the compatibility problem is with the plugin “WordPress SEO” by Yoast.

    I turn off Yoast SEO, and VSCF works fine. I turn Yoast SEO ON, and VSCF has this issue.

    Yoast SEO is on of the most popular plugins in the WordPress world, and I really need it. So what can we do?

    Jeff

    Plugin Author Guido

    (@guido07111975)

    Hi Jeff,

    I might have found it, are you able to add this in file vscf_main directly above session_start();

    session_name('vscf-session');

    I notice my site was very slow and this might have been a conflict with another session, so that’s why I want to add a name to this session so it cannot cause a conflict with another session.

    I will update plugin ASAP after your response.

    Guido

    Plugin Author Guido

    (@guido07111975)

    Forgot something, please do the same in file vscf_widget_form:

    session_name('vscf-widget-session');

    Guido

    Thread Starter Jeff Crawford

    (@jcdigital)

    Hi Guido,
    I made the changes you suggested, and the problem still occurs. Feel free to contact me offline if you want to do more debugging.
    Jeff

    Plugin Author Guido

    (@guido07111975)

    The WordPress SEO plugin uses php rand too (in 1 file) so this might cause this conflict.

    Anyway, I found a small bug in my code. I started my session in 2 files, that’s not working, can only start 1 session.

    So please remove this from files vscf_main and vscf_widget_form:

    session_start();

    Add this in stead:

    if (!isset ($_SESSION)) session_start();

    And look for line starting with: unset
    Add this underneath:

    session_destroy();

    Will update plugin soon.

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi,

    I am closing this topic because you know what might caused it.

    Guido

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Upgraded to 3.0, forms stopped working’ is closed to new replies.