Title: Error in wp_enqueue_script on frontend
Last modified: December 27, 2016

---

# Error in wp_enqueue_script on frontend

 *  [kuflievskiy](https://wordpress.org/support/users/wpkuf/)
 * (@wpkuf)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-in-wp_enqueue_script-on-frontend/)
 * Hello!
 * I have received an error on my site due to the error in wp_enqueue_script function
   usage.
 * The code below works for me:
 * \`
    wp_enqueue_script( ‘mip-script’, plugin_dir_url( __FILE__ ) . ‘prettyphoto/
   jquery.prettyPhoto.js’, array( ‘jquery’ ) ); `
 * Coould you please check it and fix in the plugin ?

The topic ‘Error in wp_enqueue_script on frontend’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/multiple-images-upload.svg)
 * [Multiple Post Image](https://wordpress.org/plugins/multiple-images-upload/)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-images-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-images-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-images-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-images-upload/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [kuflievskiy](https://wordpress.org/support/users/wpkuf/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/error-in-wp_enqueue_script-on-frontend/)
 * Status: not resolved