Title: Show error message
Last modified: August 22, 2016

---

# Show error message

 *  [Md Abul Bashar](https://wordpress.org/support/users/hmbashar/)
 * (@hmbashar)
 * [11 years ago](https://wordpress.org/support/topic/show-error-message/)
 * This plugin working but if i on debug option then show this message “
    Notice:
   wp_register_style was called incorrectly. Scripts and styles should not be registered
   or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts”
 * Please update this plugin.
 * [https://wordpress.org/plugins/db-prefix-change/](https://wordpress.org/plugins/db-prefix-change/)

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

 *  [fwag](https://wordpress.org/support/users/fwag/)
 * (@fwag)
 * [11 years ago](https://wordpress.org/support/topic/show-error-message/#post-5912972)
 * The solution to this problem is very simple:
 * **Replace in db_prefix.php**
 *     ```
       wp_register_style('dbStyle',plugins_url('css/style.css',__FILE__));
       wp_enqueue_style('dbStyle');
       wp_register_script('jquery.validate',plugins_url('js/jquery.validate.min.js',__FILE__),array('jquery'), false, false);
       wp_enqueue_script('jquery.validate');
       wp_register_script('util',plugins_url('js/util.js',__FILE__),array('jquery'), false, false);
       wp_enqueue_script('util');
       ```
   
 * **by**
 *     ```
       function dbprefix_insertFrontEndScripts(){
       wp_register_style('dbStyle',plugins_url('css/style.css',__FILE__));
       wp_enqueue_style('dbStyle');
       wp_register_script('jquery.validate',plugins_url('js/jquery.validate.min.js',__FILE__),array('jquery'), false, false);
       wp_enqueue_script('jquery.validate');
       wp_register_script('util',plugins_url('js/util.js',__FILE__),array('jquery'), false, false);
       wp_enqueue_script('util');
       }
       add_action('wp_enqueue_scripts','dbprefix_insertFrontEndScripts');
       ```
   
 * Save and the error is gone
 *  [fwag](https://wordpress.org/support/users/fwag/)
 * (@fwag)
 * [11 years ago](https://wordpress.org/support/topic/show-error-message/#post-5912978)
 * The problems where bigger than anticipated
 * The solution is still simple. Download [Change DB Prefix 1.3](http://www.webemotion.nl/media/extension/db-prefix-change_1.3.zip)
   and install. This version is an improvement of the prior version. Gets rid of
   all the bugs and improves on the success and error handling.
 *  Plugin Author [Bhumi Shah](https://wordpress.org/support/users/softy5454/)
 * (@softy5454)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/show-error-message/#post-5913040)
 * Thanks, will check and update.

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

The topic ‘Show error message’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/db-prefix-change_373c49.svg)
 * [Change DB Prefix](https://wordpress.org/plugins/db-prefix-change/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/db-prefix-change/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/db-prefix-change/)
 * [Active Topics](https://wordpress.org/support/plugin/db-prefix-change/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/db-prefix-change/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/db-prefix-change/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Bhumi Shah](https://wordpress.org/support/users/softy5454/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/show-error-message/#post-5913040)
 * Status: not resolved