• While creating an invoice for a new order and with debugging enabled I was receiving the following error:

    count(): Argument #1 ($var) must be of type Countable|array, string given in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/classes/ttfontsuni.php, line 613

    Changing line 613 from

    for ($i = 0; $i < count($psName); $i++) {

    to

    for ($i = 0; $i < strlen($psName); $i++) {

    seems to have fixed the problem.

  • The topic ‘Not bad’ is closed to new replies.