Problem with “PHP GD extension not being installed”

I just realized that on my local site I cannot visualize invoices or packng slips. Instead In woocommerce -> pdfinvoices -> preview, I get this message: Error trying to generate document: The PHP GD extension is required, but is not installed.
If i try to edit an older invoice in woocommerce->orders I get a more complete message.

Exception: The PHP GD extension is required, but is not installed.

C:\xampp\htdocs\mysite\wp-content\plugins\woocommerce-pdf-invoices-packing-slips\vendor\dompdf\dompdf\lib\Cpdf.php (5833)

#0 C:\xampp\htdocs\mysite\wp-content\plugins\woocommerce-pdf-invoices-packing-slips\vendor\dompdf\dompdf\src\Adapter\CPDF.php(677): Dompdf\Cpdf->addPngFromFile('file://C:\\xampp...', 57.442913385827, 733.29354330709, 120, 79.5)
#1 C:\xampp\htdocs\mysite\wp-content\plugins\woocommerce-pdf-invoices-packing-slips\vendor\dompdf\dompdf\src\Renderer\Image.php(68): Dompdf\Adapter\CPDF->image('file://C:\\xampp...', 57.442913385827, 29.096456692913, 120, 79.5, 'normal')

…etc… total of twenty similar error lines

I have php 8.13, wordpress 6.02, woocommerce 6.9.2 and the latest version (3.1.1) of “woocommerce-pdf-invoices-packing-slips”. Until recently the plugin worked without problems and is still working on my live site (fortunately). On my live site, I have the
same PHP, WP, Woocommerce and woocommerce-pdf-invoices-packing-slips versions.

What is this PHP GD extension and why should I need it?

Thanks for your help.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here