UBL regenerated?
-
Hi there. Technical question. I’m investigating something. When I open an UBL file of an order of last year, is the UBL regenerated or would it come out the same way as it was generated last year?
So basically I’m asking if a new version of woocommerce or your plugin could generate different output?
thx for the great plugin.
-
Apparently the UBL is regenerated when you click to open it. So a new version of the plugin, might generate a different UBL file I have experienced. I’m comparing a order from January to the same order from February, and for our billing system, the UBL is incorrect and not completely processed.
The UBL sent in January looks like
<cac:AccountingCustomerParty>
<cbc:CustomerAssignedAccountID></cbc:CustomerAssignedAccountID>
<cac:Party>
...
</cac:Party>
</cac:AccountingCustomerParty>Then non-working version of the February renewal looks like this
<AccountingCustomerParty>
<cac:AccountingCustomerParty>
<cbc:CustomerAssignedAccountID></cbc:CustomerAssignedAccountID>
<cac:Party>
...
</cac:Party>
</cac:AccountingCustomerParty>
</AccountingCustomerParty>And this last notation is failing at our accounting platform due to the extra level. They say that the last version of the UBL is not compliant as proper UBL notation. How to correct this? And who needs to correct something?
Hi @duup
Thank you for bringing this to our attention. This is a bug, and I’ll be working on a fix shortly. I’ll update you as soon as it’s resolved.
Hi @duup
Please give this version a try and let us know if you encounter any issues.
Yes thanks. That is fixed and seems to upload fine again! Thanks for the quick turnaround.
I’m glad that resolved the issue. Wishing you a great day!
I have to come back. It was working for the reported UBL problem, but since then we get an error whenever a subscription renews.
“An error has occurred while processing a recent subscription related event. For steps on how to fix the affected subscription and to learn more about the possible causes of this error, please read our guide here.”
When I look at the log, then i just see
2025-03-12T10:48:09+00:00Error scheduled action 2303644 (subscription payment) failed to finish processing after 300 seconds Additional context{ “action_args”: “subscription_id: 296575” }2025-03-12T12:26:47+00:00Error scheduled action 2303979 (subscription payment) failed to finish processing after 300 seconds Additional context{ “action_args”: “subscription_id: 285399” }
Then the email that we get probably says more:
WordPress version 6.7.2 Active theme: Child Theme for Divi (version 1.0) Current plugin: PDF Invoices & Packing Slips for WooCommerce (version 4.2.0-rc.1) PHP version 8.2.27 Error Details ============= An error of type E_COMPILE_ERROR was caused in line 19 of the file /home/u174197727/domains/ourdomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php. Error message: Cannot declare class WPO\IPS\Vendor\Sabberworm\CSS\CSSList\CSSBlockList, because the name is already in useI will check this and get back to you as soon as possible.
Can you test this version and let me know if everything works as expected?
Tried that. But when I click to download a UBL, then I get this error;
Fatal error: Failed opening required ‘/home/u174197727/domains/mydomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/sabre/xml/lib/Serializer/functions.php’ (include_path=’.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php’)
/home/u174197727/domains/mydomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/ubl/Builders/SabreBuilder.php (29) 0 /home/u174197727/domains/mydomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1506): WPO\IPS\UBL\Builders\SabreBuilder->build() 1 /home/u174197727/domains/mydomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Main.php(519): WPO\IPS\Documents\OrderDocument->output_ubl() 2 /home/u174197727/domains/mydomain.com/public_html/wp-includes/class-wp-hook.php(324): WPO\IPS\Main->generate_document_ajax() 3 /home/u174197727/domains/mydomain.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 4 /home/u174197727/domains/mydomain.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 5 /home/u174197727/domains/mydomain.com/public_html/wp-admin/admin-ajax.php(192): do_action() 6 {main}Apologies for that. This version should resolve the issue.
Yes, that worked. I can now download the UBLs again.
Now we have to wait for the new subscription renewal to see if that other issue is fixed too. thx!!
Sounds good! Keep me posted when it happens.
It seems to be fixed now. thx!
Thanks for your feedback! Wishing you a fantastic day!
The topic ‘UBL regenerated?’ is closed to new replies.