Title: not working getting error Fatal error: Call to undefined function wp_scripts()
Last modified: September 1, 2016

---

# not working getting error Fatal error: Call to undefined function wp_scripts()

 *  Resolved [abhay007](https://wordpress.org/support/users/abhay007/)
 * (@abhay007)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/not-working-getting-error-fatal-error-call-to-undefined-function-wp_scripts/)
 * Hi Sir
 * I am getting error after installing this plugin. Please check below mentioned
   message for complete detail.
 * > Fatal error: Call to undefined function wp_scripts() in G:\xampp\htdocs\vednetra\
   > wp-content\plugins\wp-maintenance-mode\includes\classes\wp-maintenance-mode-
   > admin.php on line 71
 * [https://wordpress.org/plugins/wp-maintenance-mode/](https://wordpress.org/plugins/wp-maintenance-mode/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [George J](https://wordpress.org/support/users/georgejipa/)
 * (@georgejipa)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/not-working-getting-error-fatal-error-call-to-undefined-function-wp_scripts/#post-7698408)
 * Hello [@abhay007](https://wordpress.org/support/users/abhay007/),
 * Looks like you have an older version of WordPress because wp_scripts() was introduced
   in WordPress 4.2.0. Before I will update the plugin to maintain backward compatibility…
   you should replace:
 *     ```
       $wp_scripts = wp_scripts();
       ```
   
 * with:
 *     ```
       global $wp_scripts;
       ```
   
 * Files:
    – plugins\WP-Maintenance-Mode\includes\classes\wp-maintenance-mode.php–
   plugins\WP-Maintenance-Mode\includes\classes\wp-maintenance-mode-admin.php
 * Thanks.
 *  [George J](https://wordpress.org/support/users/georgejipa/)
 * (@georgejipa)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/not-working-getting-error-fatal-error-call-to-undefined-function-wp_scripts/#post-8164609)
 * Version 2.0.8 was released and the bug was solved. Thanks!
    -  This reply was modified 9 years, 9 months ago by [George J](https://wordpress.org/support/users/georgejipa/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘not working getting error Fatal error: Call to undefined function wp_scripts()’
is closed to new replies.

 * ![](https://ps.w.org/wp-maintenance-mode/assets/icon-256x256.gif?rev=3027645)
 * [LightStart - Maintenance Mode, Coming Soon and Landing Page Builder](https://wordpress.org/plugins/wp-maintenance-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-maintenance-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-maintenance-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-maintenance-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-maintenance-mode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [George J](https://wordpress.org/support/users/georgejipa/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/not-working-getting-error-fatal-error-call-to-undefined-function-wp_scripts/#post-8164609)
 * Status: resolved