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

---

# Fatal error: Call to undefined function wp_scripts()

 *  Resolved [carlosramosweb](https://wordpress.org/support/users/carlosramosweb/)
 * (@carlosramosweb)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_scripts/)
 * Hello! All right?
    Congratulations on the plugin! I had a problem with one of
   my website in the air.
 * [FATAL ERROR]
    Fatal error: Call to undefined function wp_scripts() in /home/…../
   public_html/wp-content/plugins/wp-script-optimizer/classes/list.class.php on 
   line 317
 * The above error appeared after clicking refresh the list.
    Use the versions of
   WordPress 4.1 and WP Scripts & Styles Optimizer 0.3.0
 * [https://wordpress.org/plugins/wp-script-optimizer/](https://wordpress.org/plugins/wp-script-optimizer/)

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

 *  Plugin Author [Hendrik Lersch](https://wordpress.org/support/users/riddler84/)
 * (@riddler84)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_scripts/#post-7653041)
 * I’m sorry, but you need wordpress 4.2.0 or above to run this plugin, because 
   it uses functions they don’t exist before.
 * Unfortunately there is actually no version check in the plugin. It will be in
   the next version, so it won’t run on systems lower than WP 4.2.
 *  Thread Starter [carlosramosweb](https://wordpress.org/support/users/carlosramosweb/)
 * (@carlosramosweb)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-wp_scripts/#post-7653044)
 * Thanks! I upgraded my wordpress and worked properly!

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

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

 * ![](https://ps.w.org/wp-script-optimizer/assets/icon-128x128.png?rev=1450859)
 * [WP Scripts & Styles Optimizer](https://wordpress.org/plugins/wp-script-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-script-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-script-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-script-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-script-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-script-optimizer/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [wp_scripts](https://wordpress.org/support/topic-tag/wp_scripts/)

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