Parse error: syntax error, unexpected token "fn", expecting identifier in /home4/bendwedd/public_html/wp-content/themes/prophoto6/vendor/downshiftorg/common/classes/Fn.php on line 7

Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /home4/bendwedd/public_html/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php:149 Stack trace: #0 /home4/bendwedd/public_html/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php(149): fclose(false) #1 /home4/bendwedd/public_html/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php(209): WC_Log_Handler_File->open('fatal-errors') #2 /home4/bendwedd/public_html/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php(101): WC_Log_Handler_File->add('2025-04-03T09:2...', 'fatal-errors') #3 /home4/bendwedd/public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php(146): WC_Log_Handler_File->handle(1743672509, 'critical', 'syntax error, u...', Array) #4 /home4/bendwedd/public_html/wp-content/plugins/woocommerce/includes/class-wc-logger.php(192): WC_Logger->log('critical', 'syntax error, u...', Array) #5 /home4/bendwedd/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(220): WC_Logger->critical('syntax error, u...', Array) #6 [internal function]: WooCommerce->log_errors() #7 {main} thrown in /home4/bendwedd/public_html/wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php on line 149