• Combinig Germena Market invoice PDF and Gift Coupon causes Error:
    Fatal error: Cannot declare class FontLib\Autoloader, because the name is already in use in /www/htdocs/w008332f/DinnerWP/wp-content/plugins/woocommerce-german-market/add-ons/woocommerce-invoice-pdf/vendors/dompdf/lib/php-font-lib/src/FontLib/Autoloader.php on line 16

    Any idea?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter meinos

    (@meinos)

    Found solution:
    Add in the autoloader inc from German Market:
    if(!class_exists(‘FontLib\Autoloader’))
    require_once __DIR__ . ‘/lib/php-font-lib/src/FontLib/Autoloader.php’;

    if(!class_exists(‘Dompdf\Autoloader’))
    require_once __DIR__ . ‘/src/Autoloader.php’;

    Plugin Author Alberto Perez

    (@studiosweb)

    Hi @meinos

    Yes, the problem is that woocommerce-invoice-pdf use the same library as WooCommerce gift coupon, that is incompatible.

    We try to make compatible this plugin with WooCommerce invoice pdf,

    thanks,

    Regards,

    Plugin Author Alberto Perez

    (@studiosweb)

    Ok @meinos,

    That change will be included in the next upgrade.

    Thanks,

    Martin_Un

    (@martin_un)

    Hi Alberto,

    seems not to be resolved in 3.2.5.
    could you please include the fix for the next version?

    cheers
    Martin

    Plugin Author Alberto Perez

    (@studiosweb)

    Hi @martin_un

    Yes, that will be included in 3.2.6

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error with Invoice PDF’ is closed to new replies.