Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By jemcapon

Thread: Serious Bug in submission process: "A variable mismatch has been detected."

  1. #1
    Thread Starter
    Member jemcapon's Avatar
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    82
    Thanks
    4
    Thanked 2 Times in 2 Posts

    Serious Bug in submission process: "A variable mismatch has been detected."

    Stack:
    Unbuntu 18
    Apache2
    PHP 7.3
    MySQL 5.7
    WordPress 5.2.4
    JobRoller 1.9.3
    No other plugins activated

    Issue:
    During the job submission process, once a user gets past the "Preview" step, they can't click the "Back" button. If the do, then they will get the following error:
    Code:
    A variable mismatch has been detected.
    variable mismatch.jpg

    I have also tested with the latest version of WordPress (5.3) which was released yesterday.

    How to replicate:
    1. Setup default install of WordPress and JobRoller, no settings modification required
    2. Complete the first two steps of the job submission processs ("Enter Job Details", "Preview")
    3. Click the "Go Back" button. (Note: if you use your browser back button, it works fine)


    Fix that can be implemented in your child theme

    Note to other JobRoller users: I would not treat this as a permanent fix, this approach should only be a temporary measure and should be undone once the JobRoller team implements a bug fix.

    Add the following two files to your theme:
    select-plan-packs-form.php
    select-plan-single-form.php

    Find the following input:
    PHP Code:
    <input type="submit" name="goback" class="goback" value="<?php _e('Go Back',APP_TD?>"  />
    Replace with:
    PHP Code:
    <button id="go-back" class="goback" onclick="window.history.back()">Go Back</button
    This fix is not the greatest if you have a step in between the preview and confirm steps (eg plan select step).

    If a user goes to the confirm step then goes back to the plan step, then clicks the newly implemented "Go Back" button, they will actually go back to the confirm step not the preview step.

    So definitely not the greatest fix however better than the default behavior.

  2. #2
    Thread Starter
    Member jemcapon's Avatar
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    82
    Thanks
    4
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Member jemcapon's Avatar
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    82
    Thanks
    4
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    jomarkosabel likes this.

  4. #4
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    35,678
    Thanks
    158
    Thanked 2,841 Times in 2,719 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Passing "page style" variable to PayPal
    By maintenanceguy in forum ClassiPress General Discussion
    Replies: 1
    Last Post: April 18th, 2015, 11:22 PM
  2. Replies: 1
    Last Post: June 22nd, 2012, 11:52 AM
  3. Replies: 1
    Last Post: June 22nd, 2012, 11:52 AM
  4. Replies: 2
    Last Post: December 4th, 2011, 05:22 PM
  5. [MOD NEEDED] Add variable "return URL's" to multi sites with one Merchant Account
    By mstrong in forum JobRoller General Discussion
    Replies: 2
    Last Post: April 3rd, 2011, 01:27 AM