• Resolved ger0me

    (@ger0me)


    Hi.

    We have a problem after installing the pro version.

    It seems that EAN Barcode Generator and WooCommerce Ultimate Gift Card are conflicting about the QRcode class :

    2025-03-28T14:05:44+00:00 CRITICAL Cannot declare class QRcode, because the name is already in use CONTEXT: {"error":{"type":64,"file":"/var/www/xxxxxx/xxxxxx/wp-content/plugins/ean-for-woocommerce-pro/includes/pro/assets/tcpdf/include/barcodes/qrcode.php","line":265},"remote-logging":true,"backtrace":[{"file":"/var/www/xxxxxx/xxxxxx/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":413,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}

    Could you, please, solve the problem with an update ?

    Kind regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Taha

    (@tahaamin)

    Hi @ger0me,

    Thanks for sharing this. I have forwarded the issue to our development team, and we will update you soon.

    Thanks for your patience.

    Plugin Author Algoritmika

    (@algoritmika)

    Hi, @ger0me,

    Sorry for not getting back to you sooner.

    I believe this should be fixed in the “WooCommerce Ultimate Gift Card” plugin. They should check if the TCPDF2DBarcode class already exists (as we do in our plugin), something like this:

    if ( ! class_exists( 'TCPDF2DBarcode' ) ) {
    require_once 'path/to/tcpdf_barcodes_2d.php';
    }

    I wanted to find the exact line in the “WooCommerce Ultimate Gift Card” plugin code, but as I understand, the QRcode is a premium feature there, right?

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

The topic ‘CRITICAL Cannot declare class QRcode’ is closed to new replies.