Clicking send order just refreshes' the page

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Gateways Paypal Standard Clicking send order just refreshes' the page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24080
    Robert
    Participant

      Hi Olly,

      We have a problem with the paypal gateway.

      When you click on Send Order the loading animation appears and then the page refreshes.

      Nothing in the paypal plugin logs or the debug log.

      Our website is http://foodking.co.uk/sthelens/

      Any idea’s?

      Regards,

      #24086
      Olly
      Admin & Mod

        tried updateing the plugin …..??????
        furthermore , it’s a REALLY BAD idea to remove version numbers from your scripts/css…

        #24087
        Robert
        Participant

          Can’t update as the license has expired, and we haven’t removed the version numbers (on purpose that is).

          #24088
          Olly
          Admin & Mod

            >Can’t update as the license has expired,
            …err, no. it’s the main plugin i’m talking about which – of course – has no restrictions of that kind

            >and we haven’t removed the version numbers (on purpose that is).
            then some plugin has (look at your source code, there are no version no after any files)

            #24089
            Olly
            Admin & Mod

              just a bit of an explanation why removing of version numbers for scripts/stylesheets is a bad idea:

              consider the following scenario:

              with version numbers removed you get the following in your page
              http(s)://www.domain.com/wp-content/plugin/some-plugin-or-theme/script.js
              instead of
              http(s)://www.domain.com/wp-content/plugin/some-plugin-or-theme/script.js?ver=2.0

              (assuming for this exercise it’s version 2.0 intitially for the plugin/theme for example)

              so, when someone comes to your site, their browser will download
              …./plugin/some-plugin-or-theme/script.js
              so far so good.

              now we assume that plugin/theme gets updated to v2.1 (2.2,3.0, whatever) with changes to that javascript file (like added ajax request for example or whatever else you can think of)

              a day later, after you have updated the plugin, that same person comes to your site again and what’s going to happen – not always, but there’s a distinct possibility – is this:

              browser reads page and still finds
              …./plugin/some-plugin-or-theme/script.js
              browser says “oh, I already have that file in my cache, no need to download it again” so uses that cached version. of course, that version does not have those added ajax request etc and your site will fall over / not work / have issues

              if it had a version number, the browser would have known it’s different and would have downloaded that new file instead of using the old expired one…..
              same would go for css and any other linked files too (how about a css saying originally display:block and then display:none somewhere , etc etc)

              the above is just to get you an idea and not comprehensive or complete (there are ways to overcome this in other ways, but that’s a different conversation and – in any event – overkill, unnecessary and personally speaking silly given that the whole version numbering is there for exactly that purpose)

              #24092
              Robert
              Participant

                Thanks for the explanation i understand.

                Still have no idea what is stripping the version numbers though.

                Paypal is working again now I’ve updated, didn’t know there was an update.

                Thank you.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Clicking send order just refreshes' the page’ is closed to new replies.