Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 98304 bytes) in /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Compatibility/FileSystem.php on line 99

Fatal error: Uncaught Error: Call to undefined function Automattic\WooCommerce\Internal\Utilities\WP_Filesystem() in /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Utilities/FilesystemUtil.php:112 Stack trace: #0 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Utilities/FilesystemUtil.php(25): Automattic\WooCommerce\Internal\Utilities\FilesystemUtil::initialize_wp_filesystem() #1 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php(237): Automattic\WooCommerce\Internal\Utilities\FilesystemUtil::get_wp_filesystem() #2 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(439): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\File->is_readable() #3 [internal function]: Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->Automattic\WooCommerce\Internal\Admin\Logging\FileV2\{closure}() #4 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(436): array_map() #5 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(338): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->convert_paths_to_objects() #6 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(351): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->get_files_by_id() #7 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php(118): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->get_file_by_id() #8 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Admin/Logging/LogHandlerFileV2.php(60): Automattic\WooCommerce\Internal\Admin\Logging\FileV2\FileController->write_to_file() #9 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-logger.php(189): Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2->handle() #10 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-logger.php(236): WC_Logger->log() #11 /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(414): WC_Logger->critical() #12 [internal function]: WooCommerce->log_errors() #13 {main} thrown in /var/www/vhosts/refinedhandmade.co.nz/httpdocs/wp-content/plugins/woocommerce/src/Internal/Utilities/FilesystemUtil.php on line 112