• Resolved Enrique J. Ros

    (@enriquejros)


    Hi WP Overnight team

    After upgrading to WC 8 and switching to HPOS the invoices are not being generated. However, the invoice number does increase as if the document has been created.

    Many thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @enriquejros,

    I was not able to reproduce your case.

    Could you check the WooCommerce logs to see if there are errors with the?wpo-wcpdf?or?fatal-errors?prefix? If so, please share the logs with us. You’ll find the logs under?WooCommerce > Status > Logs. See?Where to find error logs

    Also, go to WooCommerce > Status > System Status, click on Get system report, then click on Download for support, attach the file on https://www.file.io/, and finally paste the download link in a reply here (the file will be deleted after the first download).

    Thread Starter Enrique J. Ros

    (@enriquejros)

    Hi Yordan

    Many thanks for your response. The only error found is as follows:

    [15-Aug-2023 10:43:46 UTC] PHP Fatal error: Uncaught TypeError: Argument 2 passed to Automattic\WooCommerce\Utilities\ArrayUtil::deep_assoc_array_diff() must be of the type array, null given, called in /home/customer/www/magisteriodeaudicionylenguaje.com/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php on line 257 and defined in /home/customer/www/magisteriodeaudicionylenguaje.com/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php:233 Stack trace: #0 /home/customer/www/magisteriodeaudicionylenguaje.com/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php(257): Automattic\WooCommerce\Utilities\ArrayUtil::deep_assoc_array_diff(Array, NULL, true) #1 /home/customer/www/magisteriodeaudicionylenguaje.com/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php(234): Automattic\WooCommerce\Utilities\ArrayUtil::deep_compute_or_compare_array_diff(Array, Array, false, true) #2 /home/customer/www/magisteriodeaudicionylenguaje.com/public_html/wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php(1307): Automattic\WooCommerce\Utilities\ArrayUtil::d in /home/customer/www/magisteriodeaudicionylenguaje.com/public_html/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php on line 233

    Also, this is the file you requested: https://file.io/W9TR3fFcEtgz

    Many thanks, regards

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @enriquejros

    From that error trace, it seems related to this: https://github.com/woocommerce/woocommerce/issues/39637 which is already merged. You mentioned that you upgraded to WC 8, so that error should be fixed and it’s not related to the PDF issue.

    Can you send us an email to [email protected]? We will do our best to help you.

    • This reply was modified 1 year, 7 months ago by alexmigf.
    • This reply was modified 1 year, 7 months ago by alexmigf.
    Thread Starter Enrique J. Ros

    (@enriquejros)

    Hi @alexmigf

    Yes, that seems the cause for the error, and adding the “continue” in ArrayUtils.php as seen in the proporsed fix solves the error. However, the issue with PDF IPS continues: the number increases but the document is not generated.

    Regards.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @enriquejros

    Could you send us an email to [email protected]? We will do our best to help you fixing the issue.

    Thread Starter Enrique J. Ros

    (@enriquejros)

    Solved, many thanks!

    P.S. It was caused by the sync HPOS feature

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Following up this topic, for those with the same issue, it turned out that the compatibility mode for HPOS was activated, under WooCommerce > Settings > Advanced > Experimental features:

    Keep the posts and orders tables in sync (compatibility mode):
    This option is not yet ready for production sites.

    Please note that the HPOS sync is not ready for production, yet. WooCommerce is still working on that, so that is why the generation of the PDF documents is also affected.

    In other words, please disable this option to avoid issues with the PDF document creation.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘After HPOS invoices are not generated’ is closed to new replies.