buckaroo-it / WooCommerce

Repository containing the WooCommerce Payment Plugin by Buckaroo
2 stars 3 forks source link

BP-3661 Error 404 on blocks.js #277

Open jelle-opencii opened 1 month ago

jelle-opencii commented 1 month ago

I get a 404 on the loading of blocks.js in the WordPress admin. This issue comes from line 112 of index.php in the root folder. This is the only wp_enqueue_script where plugin_dir_url( FILE ) is not prepended to the file path, Changing this line to wp_enqueue_script( 'buckaroo-block-script', plugin_dir_url( FILE ) . 'assets/js/dist/blocks.js', array( 'wp-blocks', 'wp-element' ) ); makes it load the file.

Buckaroo-Rene commented 1 month ago

Hi @jelle-opencii ,

Thank you for contacting us about the issue that you where facing. What versions are you using?

jelle-opencii commented 1 month ago

Hi @Buckaroo-Rene

Buckaroo: 3.13.1 WooCommerce: 9.1.2 WordPress: 6.5.5 PHP version: 8.0.29

Buckaroo-Rene commented 1 month ago

Hi @jelle-opencii ,

Thank you for your quick reply :rocket:. Our development team will take a loot at it. We'll let you know the outcome.