• Resolved gsc89

    (@gsc89)


    Hi,

    I am getting an error for packing slip generation as follows:

    TCPDF ERROR: Could not include font definition file: helvetica

    I have tried updating to the latest version and it still does this, it does this on my local copy of the website and on qa / staging servers.

    I don’t think its specifcially enviroment related as my local copy is different from qa / live hosting.

    I am running PHP 7.4 WP / WordPress 5.6

    I just tried WP 5.8.1 since I noticed I wasn’t on the latest version.

    WooCommerce is version 4.9.3

    I have checked the font’s folder in TCPDF and can see the files are there, not getting any PHP errors, I downloaded the latest TCPDF from github as another test and tried those versions of the font’s it didn’t help.

    Also I am not set to use Helvetica, I have set the PDF’s to courier so I am not sure why it says Helvetica instead.

    Has anyone got anything else I can try to debug this issue or advice? I did search this specific error in relation to TCPDF and found some mention of it on various forums but non of those solutions worked.

    Not sure if it makes any difference but wordpress is Bedrock based (installed via composer).

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor David G

    (@gravid7)

    Hi @gsc89

    Thanks for reaching out to us.

    If possible can you try to upload the lib folder from the below path manually? You can download the plugin on local and then upload a particular folder manually so, it will not cause the issue. Also, you can check if any permission-related issues in the plugin folder.

    Path:- /wp-content/plugins/booster-plus-for-woocommerce/includes/lib/

    Let us know if you need further help from us.

    Thread Starter gsc89

    (@gsc89)

    Hi @gravid7,

    I have tried replacing the entire plugin folder several times by downloading it fresh from the website multiple times to make sure it wasn’t some corruption in the download.

    As I said this is happening when the website is setup locally (for development) and on both staging and production hosting.

    Now locally there will be no issue with permissions, I don’t have the typical permission issues with you get commonly on unix based systems because I run on windows locally which typically eliminates any permission related issues and this error still happens.

    There is no PHP errors for me to debug as I said, but can confirm what permissions are expected and on what folder(s) / file(s)?

    I can have these checked on staging / production which both run on unix to rule this out.

    Is there any reason it would repeatedly mention not being able to load Helvetica even when the fonts are not set to be using this?

    I am deleting a PDF packing slip each time and remaking it to test anything I am doing, at present the site is only set to generate packing slips if this makes any difference to this.

    Thread Starter gsc89

    (@gsc89)

    Can anyone confirm if there is anything else I can try or if anyone can answer any of the questions in my last response regarding permissions or why it keeps giving a Helvetica error when this font is not set to be used for the packing slips it “should” be outputting?

    Plugin Author ronyp

    (@ronyp)

    Hello @gsc89,

    I am Rony from the support team.
    Can you please reach us here?

    Kind Regards,
    Rony P – Support Team

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

The topic ‘Could not include font definition file’ is closed to new replies.