How to reinstall broken WordPress plugin using wp-cli

If you cannot execute wp-cli command due to the error generated by one of your plugins

Command:

wp plugin status

Output:

Warning: include_once(/home/username/public_html/subdomains/domain.com/wp-content/plugins/woocommerce/includes/libraries/wp-async-request.php): failed to open stream: No such file or directory in /home/username/public_html/subdomains/domain.com/wp-content/plugins/woocommerce-abandoned-cart/includes/background-processes/wcal-async-request.php on line 3

 

Just use –skip-plugins parameter along with –force

As result you will get:

wp plugin install woocommerce --skip-plugins --force

 … Read the rest

How to play a midi file via html file

You need to use Javascript plugin

http://www.midijs.net

Include the library and specify to file you wish to play

<script src='http://www.midijs.net/lib/midi.js'></script>
<script>MIDIjs.play('/home/username/file.midi');</script>

Done

Source: https://stackoverflow.com/questions/5662293/how-to-play-a-midi-file-in-html… Read the rest