Title: Error in Functions.php
Last modified: August 15, 2020

---

# Error in Functions.php

 *  [bilawalsarfraz](https://wordpress.org/support/users/bilawalsarfraz/)
 * (@bilawalsarfraz)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/error-in-functions-php-2/)
 * Hi, this is Bilawal.
    I am using WordPress for more than 3 years and didnt see
   this kind of error in my 3 years experience. The error shows below: `Notice: 
   wp_enqueue_script was called incorrectly. Scripts and styles should not be registered
   or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts
   hooks. This notice was triggered by the offloadingfrontscripts handle. Please
   see Debugging in WordPress for more information. (This message was added in version
   3.3.0.) in /home2/worldha1/public_html/wp-includes/functions.php on line 5225`
   Well i am migrating my website through All in One Migration. Also i am using 
   Publit.io Offloading for Images. Is sameone here to help me. I also tried to 
   Googling my Problem but there are no step by step guides on Google. This error
   happens after migration. Is there any way to solve this problem? If yes then 
   please help…
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-functions-php-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Olga Gleckler](https://wordpress.org/support/users/oglekler/)
 * (@oglekler)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/error-in-functions-php-2/#post-13260423)
 * Hi, Bilawal!
    It looks like you have debugging enabled and this is why you see
   this notice. It is a great feature, but only for development.
 * See how to turn it off:
 * > [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
 * Publit.io Offloading needs to take care of the content of this notice itself.

Viewing 1 replies (of 1 total)

The topic ‘Error in Functions.php’ is closed to new replies.

## Tags

 * [admin_enqueue_scripts](https://wordpress.org/support/topic-tag/admin_enqueue_scripts/)
 * [function.php](https://wordpress.org/support/topic-tag/function-php/)
 * [login_enqueue_scripts](https://wordpress.org/support/topic-tag/login_enqueue_scripts/)
 * [wp_enqueue_scripts](https://wordpress.org/support/topic-tag/wp_enqueue_scripts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Olga Gleckler](https://wordpress.org/support/users/oglekler/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/error-in-functions-php-2/#post-13260423)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
