• Resolved germsite

    (@germsite)


    Hi. I have been struggling for days with this, determined to try to solve the problem without resorting to hassling you for help, but my patience has run dry.

    http://www.slow-lane.co.uk/
    Slightly tweaked twnety eleven theme
    No other plugins active

    The problem is this
    The plugin works fine, exactly as expected, as a widget in the sidebar. However, it fails to pick up the POST variables when inserted into a page

    http://www.slow-lane.co.uk/subscribe

    I have edited class-s2-frontend.php to send me an email once certain points of the script have been passed, to try to find out where it might be breaking. Once after the $action section, to see where the form is being pointed to, the second just before if ( isset($_POST['subscribe']) || isset($_POST['unsubscribe']) ) { where I send myself a list of all POST variables.

    If the widget is enabled in the sidebar, I receive two emails, one for each of the above points. The POST variables are listed as expected.

    When viewing and/or submitting via the subscribe page, I receive four emails, two for each of the above points. There are no POST variables present, and so the submitted form is not processed. However, viewing the page in Firebug, they seem to be listed correctly.

    I’d greatly appreciate your help.

    With thanks

    Anthony

    http://ww.wp.xz.cn/plugins/subscribe2/

Viewing 10 replies - 1 through 10 (of 10 total)
  • @anthony,

    That’s very strange, how have you deployed the page? Is it a WordPress page? Have you used the shortcode for Subscribe2?

    Thread Starter germsite

    (@germsite)

    Standard WordPress page mattyrob, Subscribe2 shortcode deployed via the editor as per instructions. Strange indeed, it’s been driving me nuts …

    @anthony,

    Does the same happen with an untweaked core theme?

    Thread Starter germsite

    (@germsite)

    @mattyrob
    As much as I’d love to say no …. unfortunately it does, yes. I have just activated the core untweaked twentyeleven theme, same results.

    Thread Starter germsite

    (@germsite)

    Although now, I am not receiving the duplicate email notices, just one per test email, as expected, but with the empty POST array.

    @anthony,

    You seem to have a redirect so that www. is added to your domain. It might be that. Have you got a customised .htaccess file?

    Thread Starter germsite

    (@germsite)

    No, there’s no customised .htacess file.

    I think the redirect is simply the core WordPress function redirect_canonical ( wp_includes/canonical.php ) doing its job.

    As a consequence of that redirect, the form is presented with www. appended, and the form is set to post to http://www.slow-lane.co.uk/subscribe/, so a redirect shouldn’t be taking place at the point of submission.

    Odd and odder …

    @anthony,

    In addition to one of your added email PHP statements try this:

    var_dump($_POST);

    Does that show all of the submitted data?

    Thread Starter germsite

    (@germsite)

    That shows an empty array mattyrob – its in place if you want to see. Ta

    @anthony,

    That’s what I expected really, the var_dump() and your email testing is showing that the $_POST PHP array is being reset by something on the server. Try asking your hosting provider why this is happening on your WordPress pages but not your homepage – it must be a security restriction that they have in place.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Form not processing POST variables on pages’ is closed to new replies.