Fatal error: Undefined constant FS_CHMOD_FILE when printing
-
Hi,
I’m getting a recurring fatal error when printing via:
/wp-admin/admin-ajax.php?print-order=XXX&print-order-type=packingslip&action=print_orderPHP Fatal error: Uncaught Error: Undefined constant "Tyche\WCDN\Services\FS_CHMOD_FILE" in .../includes/services/class-pdf.php:427Plugin version: 7.2.0
WordPress version: 7.0
PHP version: 8.3.31Likely cause: it seems that
wp-admin/includes/file.phpwhich defines the constant isn’t always loaded during anadmin-ajax.phprequest.The issue may be related to the fact that
FS_METHODis set tossh2rather thandirectin my setup (however, ssh2 works perfectly in other cases like updating or installing plugins and so on). The issue also appeared with recent versions of the plugin while it worked fine for several years before. Unfortunately, I don’t know which exact version of the plugin started the issue.Thanks for looking into it.
You must be logged in to reply to this topic.