SOLVED: PHP Fatal error: Uncaught ValueError with the Plugin PDF Product Vouchers

When I have Bricks enabled, I get a Fatal Error with the PDF Product Vouchers plugin.

Attached is the error message from the log:

[02-Oct-2023 08:22:00 UTC] PHP Fatal error:  Uncaught ValueError: Unknown format specifier "A" in /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-content/themes/bricks/includes/woocommerce/elements/product-content.php:23
Stack trace:
#0 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-content/themes/bricks/includes/woocommerce/elements/product-content.php(23): sprintf('<a href="https:...', 'Bearbeiten Sie ...')
#1 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-content/themes/bricks/includes/elements/base.php(113): Bricks\Product_Content->set_controls()
#2 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-content/themes/bricks/includes/elements.php(179): Bricks\Element->load()
#3 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-content/themes/bricks/includes/elements.php(163): Bricks\Elements::load_element('product-content')
#4 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-includes/class-wp-hook.php(310): Bricks\Elements::load_elements(Object(WP))
#5 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#6 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#7 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-includes/class-wp.php(796): do_action_ref_array('wp', Array)
#8 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-includes/functions.php(1335): WP->main(Array)
#9 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-admin/includes/post.php(1283): wp(Array)
#10 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-admin/includes/class-wp-posts-list-table.php(165): wp_edit_posts_query()
#11 /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-admin/edit.php(235): WP_Posts_List_Table->prepare_items()
#12 {main}
  thrown in /www/htdocs/w01c2e29/shop.entwurf.xyz/wp-content/themes/bricks/includes/woocommerce/elements/product-content.php on line 23

Line 23 has the following in it:

		'content' => $edit_link ? sprintf( '<a href="' . $edit_link . '" target="_blank">%s</a>', $label ) : $label,		];

However, if I deactivate Bricks and activate the default theme, everything works without problems.

What could be the problem?

Thank you very much.

Hi @Mochkal,

Thank you for your report.

Can you please share temporary admin access to help@bricksbuilder.io with a link to this thread so we can investigate this?

Thank you @Mochkal for sharing access.

The issue was identified and a ticket was created for this.

Hi Manuel,

We’ve fixed this issue in Bricks 1.9.2 beta, now available as a manual download in your account (see changelog).

Please let us know if you are still experiencing issues.

As with any beta release, please do not use it on any production/live website. It is only meant for testing in a local/staging environment.

Have sent you another Email. Error is still there (on a different site) with beta 1.9.2

Hi Manuel,
The issue should finally be fixed in Bricks 1.9.2, now available as a one-click update in your WordPress Dashboard.

Changelog: Changelog – Bricks

Please let us know if you are still experiencing issues.

Best regards,
timmse