upgrade to 2.3.9 breaks proxy_fcgi

[proxy_fcgi:error] Got error ‘PHP message: PHP Parse error: syntax error, unexpected ‘)’ in /wp-content/plugins/food-and-drink-menu/includes/class-blocks.php on line 43\n’

[proxy_fcgi:error] Got error ‘PHP message: PHP Parse error: syntax error, unexpected ‘)’ in /wp-content/plugins/food-and-drink-menu/includes/class-patterns.php on line 60\n’

in class-blocks.php I found 3 comma-errors (marked with <—comma )

register_block_type_from_metadata( 
			FDM_PLUGIN_DIR . '/blocks/menu.block.json', 
			array(
				'render_callback' => array( $this, 'render_menu' ),
			)<strong>,<---comma</strong> 
		);

		register_block_type_from_metadata( 
			FDM_PLUGIN_DIR . '/blocks/menu_section.block.json', 
			array(
				'render_callback' => array( $this, 'render_menu_section' ),
			)<strong>,<---comma </strong>
		);

		register_block_type_from_metadata( 
			FDM_PLUGIN_DIR . '/blocks/menu_item.block.json', 
			array(
				'render_callback' => array( $this, 'render_menu_item' ),
			)<strong>,<---comma </strong>
		);

and inside class-patterns.php there’s one error

public function fdm_add_pattern_category() {
		
		register_block_pattern_category(
			'fdm-block-patterns',
			array(
				'label' => __( 'Five Star Restaurant Menu', 'food-and-drink-menu' )
			)<strong>, <---comma</strong>
		);
	}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here