Notice: require(): read of 760 bytes failed with errno=12 Cannot allocate memory in /var/www/vhosts/dehobbytante.nl/httpdocs/wp-content/plugins/woocommerce-openpos/vendor/composer/autoload_real.php on line 66 Notice: require(): read of 675 bytes failed with errno=12 Cannot allocate memory in /var/www/vhosts/dehobbytante.nl/httpdocs/wp-content/plugins/woocommerce-openpos/woocommerce-openpos.php on line 102 _is_valid', true, $coupon, $this ) ) { throw new Exception( __( 'Coupon is not valid.', 'woocommerce' ), 100 ); } } catch ( Exception $e ) { /** * Filter the coupon error message. * * @param string $error_message Error message. * @param int $error_code Error code. * @param WC_Coupon $coupon Coupon data. */ $message = apply_filters( 'woocommerce_coupon_error', is_numeric( $e->getMessage() ) ? $coupon->get_coupon_error( $e->getMessage() ) : $e->getMessage(), $e->getCode(), $coupon ); return new WP_Error( 'invalid_coupon', $message, array( 'status' => 400, ) ); } return true; } } Fatal error: Uncaught Error: Class 'WC_Discounts' not found in /var/www/vhosts/dehobbytante.nl/httpdocs/wp-content/plugins/woocommerce-openpos/lib/class-op-discounts.php:16 Stack trace: #0 /var/www/vhosts/dehobbytante.nl/httpdocs/wp-content/plugins/woocommerce-openpos/woocommerce-openpos.php(104): require() #1 /var/www/vhosts/dehobbytante.nl/httpdocs/wp-settings.php(409): include_once('/var/www/vhosts...') #2 /var/www/vhosts/dehobbytante.nl/httpdocs/wp-config.php(100): require_once('/var/www/vhosts...') #3 /var/www/vhosts/dehobbytante.nl/httpdocs/wp-load.php(50): require_once('/var/www/vhosts...') #4 /var/www/vhosts/dehobbytante.nl/httpdocs/wp-blog-header.php(13): require_once('/var/www/vhosts...') #5 /var/www/vhosts/dehobbytante.nl/httpdocs/index.php(17): require('/var/www/vhosts...') #6 {main} thrown in /var/www/vhosts/dehobbytante.nl/httpdocs/wp-content/plugins/woocommerce-openpos/lib/class-op-discounts.php on line 16