Why is this function crashing my wordpress installation? [closed]

First, be sure to enable WP_DEBUG in your wp-config.php file, so that you can see fatal error messages.

In this case, the problem is that you’ve named your function load_wforms(), but you reference the callback wforms in your add_action() call:

function load_wforms() {}  

…vs…

add_action('init', 'wforms'); 

The second parameter, wforms, refers to a function named wforms() – but your function is named load_wforms(). Change your add_action to this:

add_action( 'init', 'load_wforms' );

(Side note: you should enqueue scripts at wp_enqueue_scripts, rather than init.)

Edit

Also: fix the syntax error as noted by @milo in his comment:

wp_register_script('wforms', get_stylesheet_directory_uri().'/js/wforms.js'), false, '2.0');

You have an extra parenthesis:

'/js/wforms.js')

…should be:

'/js/wforms.js'