Shape 5

Wordpress Club Themes => Bridge of Hope - Club => : yumeracing December 01, 2011, 06:33:38 AM



: Mootools Problem
: yumeracing December 01, 2011, 06:33:38 AM
Hi,

After purchasing this template for Wordrpress, install went perfect, i get this message after activating the theme and visit the website:

Fatal error: Call to undefined function wp_dequeue_script() in /home/www/www.sitename.nl/www/site/wp-content/themes/s5_bridge_of_hope/s5_admin/s5_fw.php on line 17

Line 17 is:

   wp_dequeue_script( 'mootools' );

I realy dont have a clue where to start troubleshoot....
Please can anyone help me?


: Re: Mootools Problem
: Tristan Rineer December 01, 2011, 11:23:02 AM
The easy solution is to comment out that line by adding 2 slashes in front of it ("//" - without the quotes).

The reason for that line of code is to prevent conflicts from multiple copies/versions of mootools running at the same time by making sure only one copy/version is active.

Option 1:
:
  // wp_dequeue_script( 'mootools' ); 

Option 2:
:
  /* wp_dequeue_script( 'mootools' ); */ 

Both will comment out that function call and prevent it from running.