Stripe Error

Viewing 20 posts - 1 through 20 (of 66 total)
  • Author
    Posts
  • #48819
    yaykenny
    Participant

      System is great and has been running really well in our 1st week of use. We got this error every time a new person hits the site but as nothing seemed to be wrong with the ordering I didnt think much of it. Today we have had a few issues which I will post in another thread but here is the error we have been getting. (from my dev)

      Have you raised a ticket about this error as I get the email below what appears to be every time a new visitor hits the site?

      [2020-05-13 15:29:57] – Calderwood Cafe
      URL: https://calderwoodcafe.co.uk/order
      BLOG ID: 1

      ====================================================================================

      CRITICAL ERROR:
      10005 | Missing hash – are your php sessions set up correctly ?

      https://calderwoodcafe.co.uk/order/

      #48827
      Olly
      Admin & Mod

        [Admin Edit:] moved from https://www.wp-pizza.com/topic/failed-orders/

        Had a few people report that they got an error (simple “website says error” pop up” when trying to place an order. Most have been going through fine today but from the error logs we found the following at the time someone was having isses. Might be related to the other post I just made.

        
        CRITICAL ERROR:
        10000 | DB: Could not update order: INITIALIZED => FAILED
        WPDB LAST QUERY (*might* be related): SELECT *, order_date as date_sort, '1' as blog_id  FROM  wpdp_wppizza_orders WHERE hash = 'b54c7df9499f9af170a843944f52360f045f26c8bb7cb35a2f73c716292508c0e7dbc2cc4451083a0ac3516c2379e1f0' AND payment_status IN ('UNCONFIRMED','INPROGRESS')     ORDER BY  date_sort DESC  LIMIT 0, 1
        LAST PHP ERROR (*might* be related): Undefined index: ordervars IN FILE: "/home/calderwo/public_html/order/wp-content/plugins/wppizza/classes/class.wppizza.order_execute.php" ON LINE: "641"
        PARAMETERS RECEIVED
        Array
        (
        [code] => parameter_invalid_integer
        [doc_url] => https://stripe.com/docs/error-codes/parameter-invalid-integer
        [message] => This value must be greater than or equal to 1.
        [param] => amount
        [type] => invalid_request_error
        )
        UPDATE VALUES
        Array
        (
        [order_date] => Array
        (
        [type] => %s
        [data] => 2020-05-13 15:13:49
        )
        [order_date_utc] => Array
        (
        [type] => %s
        [data] => 2020-05-13 14:13:49
        )
        [transaction_id] => Array
        (
        [type] => %s
        [data] => 1589382829
        )
        [transaction_errors] => Array
        (
        [type] => %s
        [data] => a:5:{s:4:"code";s:25:"parameter_invalid_integer";s:7:"doc_url";s:61:"https://stripe.com/docs/error-codes/parameter-invalid-integer";s:7:"message";s:46:"This value must be greater than or equal to 1.";s:5:"param";s:6:"amount";s:4:"type";s:21:"invalid_request_error";}
        )
        [display_errors] => Array
        (
        [type] => %s
        [data] => a:1:{i:0;a:3:{s:8:"critical";b:0;s:8:"error_id";s:25:"parameter_invalid_integer";s:13:"error_message";s:46:"This value must be greater than or equal to 1.";}}
        )
        [payment_status] => Array
        (
        [type] => %s
        [data] => FAILED
        )
        )
        --------------------------------------------------------------------------
        
        #48828
        Olly
        Admin & Mod

          anything in your debug log ?
          https://docs.wp-pizza.com/troubleshooting/

          can you post the output of wppizza->tools->system info in a private reply here please ?

          thanks

          #48830
          yaykenny
          Participant

            Will enable debug and see what turns up in the file. Sent other stuff in pvt message.

            #48829
            yaykenny
            Participant
              This reply has been marked as private.
              #48832
              Olly
              Admin & Mod

                thanks

                can you also ask your host and/or server administrator if they are running any kind of caching system as standard/default ?

                #48833
                yaykenny
                Participant

                  https://calderwoodcafe.co.uk/order/wp-content/uploads/2020/05/Screenshot-2020-05-13-at-17.47.15.png

                  From debug fie :
                  [13-May-2020 16:32:46 UTC] WPPIZZA DEBUG ERROR-INFO :[2020-05-13 17:32:46] – Calderwood Cafe
                  URL: https://calderwoodcafe.co.uk/order
                  BLOG ID: 1

                  ====================================================================================

                  CRITICAL ERROR:
                  10005 | Missing hash – are your php sessions set up correctly ?

                  WPDB LAST QUERY (*might* be related): SELECT wpdp_posts.* FROM wpdp_posts WHERE 1=1 AND (wpdp_posts.ID = ’14’) AND wpdp_posts.post_type = ‘page’ ORDER BY wpdp_posts.post_date DESC
                  ————————————————————————–

                  [13-May-2020 16:32:46 UTC] PHP Notice: Undefined index: ordervars in /home/calderwo/public_html/order/wp-content/plugins/wppizza-gateway-stripe/v3x.php on line 536

                  #48835
                  Olly
                  Admin & Mod

                    the first thing that’s puzzeling here is this

                    those notices/errors there relate to the checkout process
                    how can there be any checkout payment related (i.e stripe) notices at all
                    at [13-May-2020 16:32:46 UTC]

                    if your shop closes at 14:00 PM UK (that would make it 15:00 UTC)

                    something is not right here…

                    i would certainly suggest you enable debug like in the link i sent above
                    your current info tells me it’s still off, so there’s probably not all the error info in the debug.log

                    #48836
                    yaykenny
                    Participant

                      We were open later today as we were doing a promotion!

                      #48837
                      yaykenny
                      Participant

                        It is on, we enabled it using your link after the sent the system info

                        WP Memory Limit: 40M
                        WP Remote Post: wp_remote_post() works
                        WP_DEBUG: Enabled
                        WP_DEBUG_LOG: Enabled
                        WP_DEBUG_DISPLAY: Disabled

                        #48838
                        yaykenny
                        Participant

                          Just to clarify, we closed at 15:00 UK time today.

                          #48840
                          Olly
                          Admin & Mod

                            i would suggest you increase the memory limit too
                            40M is fine for a simple blog that doesnt do much
                            anything more than that (like ecommerce for example) i’d do 128M minimum
                            though wppizza has quite a small footprint on that front – https://plugintests.com/plugins/wppizza/latest
                            putting themes and different plugins alltogether will probably require more

                            that’s not just a wppizza thing, but generally the case.
                            i dont think any other ecommerce plugin – woocomerce at all – will recommend anything less than 128 here

                            #48839
                            yaykenny
                            Participant

                              Just looked at debug file again, the error seems to be anytime anyone looks at the order page

                              [13-May-2020 16:32:46 UTC] WPPIZZA DEBUG ERROR-INFO :[2020-05-13 17:32:46] – Calderwood Cafe
                              URL: https://calderwoodcafe.co.uk/order
                              BLOG ID: 1

                              ====================================================================================

                              CRITICAL ERROR:
                              10005 | Missing hash – are your php sessions set up correctly ?

                              WPDB LAST QUERY (*might* be related): SELECT wpdp_posts.* FROM wpdp_posts WHERE 1=1 AND (wpdp_posts.ID = ’14’) AND wpdp_posts.post_type = ‘page’ ORDER BY wpdp_posts.post_date DESC
                              ————————————————————————–

                              [13-May-2020 16:32:46 UTC] PHP Notice: Undefined index: ordervars in /home/calderwo/public_html/order/wp-content/plugins/wppizza-gateway-stripe/v3x.php on line 536
                              [13-May-2020 17:17:14 UTC] WPPIZZA DEBUG ERROR-INFO :[2020-05-13 18:17:14] – Calderwood Cafe
                              URL: https://calderwoodcafe.co.uk/order
                              BLOG ID: 1

                              ====================================================================================

                              CRITICAL ERROR:
                              10005 | Missing hash – are your php sessions set up correctly ?

                              WPDB LAST QUERY (*might* be related): SELECT wpdp_posts.* FROM wpdp_posts WHERE 1=1 AND (wpdp_posts.ID = ’14’) AND wpdp_posts.post_type = ‘page’ ORDER BY wpdp_posts.post_date DESC
                              ————————————————————————–

                              [13-May-2020 17:17:14 UTC] PHP Notice: Undefined index: ordervars in /home/calderwo/public_html/order/wp-content/plugins/wppizza-gateway-stripe/v3x.php on line 536

                              #48842
                              Olly
                              Admin & Mod

                                >Just looked at debug file again, the error seems to be anytime anyone looks at the order page
                                ok, that gives me a starting point perhaps and i might be able to figure something out from there
                                other than the memory limit i talked about above, leave it as is for the moment –

                                you are closed anyway right now if i’m not mistaken, so you might get these errors sent to you while i try to pin things down , but you can ignore them for now (as you are closed)

                                #48849
                                yaykenny
                                Participant

                                  Not sure where the 40M came from but just checked and limit is set at 256M

                                  Current memory usage: 8 MB
                                  Memory limit: 256M
                                  PHP version: 7.3.17 – show PHP information (phpinfo)

                                  Debug now looks like this for reference

                                  [Admin edit: details not needed, so removed for clarity]

                                  #48854
                                  Olly
                                  Admin & Mod

                                    >Debug now looks like this for reference
                                    thanks, no need for that though. i can see this myself
                                    let me see if i can reproduce this behaviour here first of all.
                                    will get back to you when i know more – might take a bit of time though

                                    #48855
                                    yaykenny
                                    Participant

                                      Ok, thanks for your help. We will need to take off debug mode before the morning though when we open. Will leave it on as long as we can.

                                      Thanks again.

                                      #48856
                                      Olly
                                      Admin & Mod
                                        This reply has been marked as private.
                                        #48857
                                        Olly
                                        Admin & Mod

                                          >We will need to take off debug mode before the morning though when we open
                                          dont know why that’s strictly necessary, but by all means – kind of know what we are looking at for the moment anyway
                                          feel free to turn it off right now and/or even delete/empty that debug.log. all the info needed we have (as it stands at the moment i think anyway)

                                          #48858
                                          yaykenny
                                          Participant
                                            This reply has been marked as private.
                                          Viewing 20 posts - 1 through 20 (of 66 total)
                                          • The topic ‘Stripe Error’ is closed to new replies.