Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Toby,
    Which indexes are undefined, specifically? I run all my tests in an environment with WP_DEBUG turned on, and I do not get these undefined indexes, so it might be specific to your setup.

    Let me know and I’ll see if I can build in some extra checks!

    Ewout

    Thread Starter tobyhage

    (@tobyhage)

    Ewout,

    Thank you for the quick response. I think there is another problem ??
    There is also information missing in my pdf file and it has a relation with the notices. I get following notices:

    Notice: Undefined index: product_id in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 687

    Notice: Undefined index: variation_id in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 688

    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 694
    Notice: Undefined index: line_total in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 697
    Notice: Undefined index: line_total in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 698
    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 698

    Notice: Undefined index: line_tax in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 699

    Notice: Undefined index: line_tax in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 700

    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 700

    Notice: Undefined index: tax_class in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 703

    Notice: Undefined index: line_total in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 703

    Notice: Undefined index: line_tax in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 703

    Notice: Undefined index: line_subtotal in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 706

    Notice: Undefined index: line_subtotal_tax in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 707

    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 770

    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 770

    Thread Starter tobyhage

    (@tobyhage)

    Ewout,

    I get following notices, i think it has nothing to do with your plugin:

    Notice: Undefined index: product_id in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 687

    Notice: Undefined index: variation_id in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 688

    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 694
    Notice: Undefined index: line_total in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 697
    Notice: Undefined index: line_total in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 698
    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 698

    Notice: Undefined index: line_tax in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 699

    Notice: Undefined index: line_tax in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 700

    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 700

    Notice: Undefined index: tax_class in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 703

    Notice: Undefined index: line_total in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 703

    Notice: Undefined index: line_tax in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 703

    Notice: Undefined index: line_subtotal in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 706

    Notice: Undefined index: line_subtotal_tax in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 707

    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 770

    Notice: Undefined index: qty in /plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-export.php on line 770

    Plugin Contributor Ewout

    (@pomegranate)

    Hello toby, well the error messages are definitely from my plugin, but I think some other plugin is doing something with the regular woocommerce get_items output…
    All of this data is normally supplied by WooCommerce out of the box.

    I recommend turning on/off plugins that you recently installed one by one to see if that fixes anything. If that doesn’t fix it, can you test with other/new orders? Are these regular ‘shop orders’?

    Thanks!

    Thread Starter tobyhage

    (@tobyhage)

    Ewout,

    I have the latest version of wordpress and woocommerce.
    See previous post for all notices.

    Plugin Contributor Ewout

    (@pomegranate)

    I think we were both editing our posts at the same time. Check my post again ??

    Thread Starter tobyhage

    (@tobyhage)

    Ewout,

    Disabled all plugins -> no succes
    Changed themes -> no succes

    Place a new order -> PDF invoice is working ??
    Open an existing order -> PDF invoice is giving the notices ??

    Probably i did something with the existing orders, so that it is not working anymore. Can you give some clues where to find this problem….

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Toby,
    To be honest I have no idea… It looks like these orders are just plain broken: some data is probably missing from the wp_woocommerce_order_itemmeta table. What do you see on the order details page, do you see any items and prices there? You may try to resave the order there and see if that helps.

    Let me know what you find!

    Ewout

    Thread Starter tobyhage

    (@tobyhage)

    That was a very good clue!!

    Indeed there was missing data from the wp_woocommerce_order_itemmeta table.

    Thank you for your help. I will mark this topic as resolved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘undefined indexes’ is closed to new replies.