• Hi,
    Since the last update, I have warnings telling me
    PHP Warning: copy(/PATHTOFILE/FONTNAME.ttf): failed to open stream: Permission denied in /PATHTOCONTENT/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php on line 368

    nothing else in the logs and only 1 parameter in copy command…

    Thx!

    Php7 with nginx (php-fpm)

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! This is the copy_fonts method that is ran on each update to make sure all the fonts (which are stored in the uploads folder because the fonts folder needs to be writable so you can use custom fonts). It should only run once after each update though (and once when installing the plugin).
    If the font installation fails then it will keep trying. Do you see any red fields in the write permissions bit on the bottom of the PDF Invoice > status tab?

    You could also try to manually install the fonts via that same status page, although you may get those same errors.

    Can you generate a PDF without any errors?
    Ewout

Viewing 1 replies (of 1 total)
  • The topic ‘Warning in copy_fonts function since 2.0.12 update’ is closed to new replies.