The proper way to enqueue your scripts is the following:
function my_scripts(){ wp_enqueue_script ('my-js','YOUR JS URL HERE'); wp_enqueue_style ('my-style','YOUR CSS URL HERE'); } add_action('wp_enqueue_scripts','my_scripts');
You are using the hook that fires when queuing scripts, but not queuing anything. Take a look into Codex to notice the difference between wp_enqueue_script() and wp_enqueue_scripts().
Also, the 5th argument of wp_enqueue_script() allows you to queue your script in the footer. If you have problem with yout wp_head() hook, try the footer:
wp_enqueue_script ('my-js' , 'YOUR JS URL HERE' , '' , '' , true);
This will queue your js file in the footer, which is required when you need the DOM to be ready for the js file to process.
wp_enqueue_scriptsis for adding stylesheets or JavaScript files to the system. Why are you using thiserror_log("try 9");function here ?wp_head()function? This is what invokes thewp_enqueue_scriptsaction.