• Resolved anghorpl

    (@anghorpl)


    When trying to access PDF Coupon, there is a critical error message.

    In server logs i can see folowing:

    17469#0: *1052759 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “x” in?/___secret___/wp-content/plugins/flexible-coupons/vendor_prefixed/mpdf/mpdf/src/Image/Svg.php?on line 2878PHP message: PHP Warning: Undefined array key “y” in?/___secret___/wp-content/plugins/flexible-coupons/vendor_prefixed/mpdf/mpdf/src/Image/Svg.php?on line 2878PHP message: PHP Warning: Undefined array key “w” in?/___secret___/wp-content/plugins/flexible-coupons/vendor_prefixed/mpdf/mpdf/src/Image/Svg.php?on line 2878PHP message: PHP Warning: Undefined array key “h” in?/___secret___/wp-content/plugins/flexible-coupons/vendor_prefixed/mpdf/mpdf/src/Image/Svg.php?on line 2878PHP message: PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in?/___secret___/wp-content/plugins/flexible-coupons/vendor_prefixed/mpdf/mpdf/src/Mpdf.php:7847
    Stack trace:
    #0?/___secret___/wp-content/plugins/flexible-coupons/vendor_prefixed/mpdf/mpdf/src/Mpdf.php(1875): FlexibleCouponsVendor\Mpdf\Mpdf->Image()
    #1?/___secret___/wp-content/plugins/flexible-coupons/vendor_prefixed/mpdf/mpdf/src/Mpdf.php(12714): FlexibleCouponsVendor\Mpdf\Mpdf->SetBackground()
    #2?/___secret___/wp-content/plugins/flexible-coupons/vendor_prefixed/mpdf/mpdf/src/Mpdf.php(12281): FlexibleCouponsVendor\Mpdf\Mpdf->WriteFixedPosHTML()
    #3?/___secret___/wp-content/plugins/flexible-coupons/vendor_prefixed/wpdesk/wp-coupons-core/src/Coupons/PDF/PDFWrapper.php(126): FlexibleCouponsVendor\Mpdf\Mpdf->WriteHTML()
    #4 /___secret___/vhosts” while reading response header from upstream

    Please let me know if this can be fixed.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter anghorpl

    (@anghorpl)

    Well… did some digging and it works fine with PHP 7.4 but issue is back once I switch to PHP 8.0

    Thread Starter anghorpl

    (@anghorpl)

    So, it’s not a PHP problem. This plugin allows you to pick any image file from the media library. We extensively use SVG images and added one of them to the Coupon layout — no warnings about wrong file format from the plugin.
    But it is a problem apparently. Once SVG was switched to classic PNG no more errors even with PHP 8.

    • This reply was modified 1 year, 3 months ago by anghorpl.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error when trying access PDF coupon’ is closed to new replies.