Paypal orders: Delivery Address missing

WPPizza – A Restaurant Plugin for WordPress Support Add-Ons Gateways Paypal Standard Paypal orders: Delivery Address missing

Viewing 9 posts - 21 through 29 (of 29 total)
  • Author
  • #53917

      I sent you a link to download duplicator files.

      Admin & Mod

        hmm, so i cloned your site here as is , did a COD and a paypal order (using my own paypal credentials of course) and in both cases received the address information just fine.

        the only thing I changed was
        a) the paypal credentials (and there’s absolutely no reason i can think of that this could be the issue)
        b) added the following to the wp-config.php before the /* happy blogging etc */ replacing your current WP_DEBUG etc cnstants

        define('WP_DEBUG', true);
        define('WP_DEBUG_LOG', true);
        define('WP_DEBUG_DISPLAY', false);/*this should NEVER be true for production sites*/
        define('WP_MEMORY_LIMIT', '256M');

        Admittedly I would be really surprised if adding those constants to your wp-config.php on your installation would suddenly fix the issue as they are somewhat addressing completely different things.

        However, please try adding those to your wp-config.php (most certainly increasing your memory limit would be a good idea in any case) , do a paypal order (sandbox or live) when you get a chance and let me know.
        I do NOT actually expect this to fix the issue you are having – I’d be quite surprised in fact if it did – but let’s make sure nevertheless


        (if the above does not make sense to you / is too ‘techie’ , let me know and i’ll explain in more detail)

        Admin & Mod

          in fact, if you add those constants and do a paypal order and you still have the same issue, check your wp-contents/debug.log as it *might* give us a clue now


            Hi Olly,
            thanks so far. I changed wp-config and I get the following errors in the log-file:

            [08-Feb-2021 15:37:55 UTC] PHP Warning: session_start(): Cannot start session when headers already sent in /xxx/xxxx/wp-content/plugins/wppizza/classes/class.wppizza.sessions.php on line 1061
            [08-Feb-2021 15:37:55 UTC] PHP Warning: session_start(): Cannot start session when headers already sent in /xxx/xxxx/wp-content/plugins/wppizza-delivery-by-postcode/v3x.php on line 1627

            This error seems to be independent from the paypal-checkout.

            Admin & Mod

              “Cannot start session” errors MUST be fixed. a lot of things – and the issue described might well be one of them – will not work if this is the case

              please see


                By the way: If I check the database, I can see the delivery address for all orders executed via Paypal. So it seems to be only a display issue in the order history view…


                  Well, I switched to the Standard Theme “Twenty Twenty-One” and deactivated all other plugins.

                  I don’t get an php-session-error any more, however the delivery address is still missing. So I can proof that the “Cannot start sessions” error is a different error…

                  How do we proceed? I think we shouldn’t concentrate on the php error (e.g.: the error is thrown as soon as I activate Woocommerce for example)

                  Admin & Mod

                    since i cannot reproduce this here, it’s all kind of guess work , but we can try a couple of things regardless
                    as laid out below
                    ( especially given that it seemingly works fine with COD orders so my current guess would be it’s a priorities issue somewhat…)

                    a) in wppizza-delivery-by-postcode.php you will find at approx line 60
                    add_action( 'plugins_loaded', 'wppizza_dbp_set_version', 11);
                    change this to
                    add_action( 'plugins_loaded', 'wppizza_dbp_set_version', 1000);

                    and save that file

                    b)in v3x.php at approx line 36 you will find
                    add_filter('wppizza_filter_formfields', array($this, 'wppizza_dbp_output_formfields'), 10, 2);
                    change this as well to read
                    add_filter('wppizza_filter_formfields', array($this, 'wppizza_dbp_output_formfields'), 1000, 2);
                    and save that file

                    try doing a paypal order and see if this now gets picked up in it and let me know

                    (i assume here you are comfortable with editing a few lines of php code , if not let me know)


                      Hi Olly, I did as you described but the result is the same.
                      In the meanwhile, I got everything on a separate staging site. Maybe we can solve the issue there. I will send you info via mail.

                    Viewing 9 posts - 21 through 29 (of 29 total)
                    • The topic ‘Paypal orders: Delivery Address missing’ is closed to new replies.