Title: Script error
Last modified: July 3, 2017

---

# Script error

 *  [gypsyboss](https://wordpress.org/support/users/gypsyboss/)
 * (@gypsyboss)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/script-error-20/)
 * Hi, I’m getting a script error on the favorites plugin and had to deactivate 
   it, it was just rolling and rolling (loading) .. any tips? I have the latest 
   update (when it was activated) thanks in advance.

Viewing 1 replies (of 1 total)

 *  [LoicTheAztec](https://wordpress.org/support/users/lomars/)
 * (@lomars)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/script-error-20/#post-9292831)
 * I got also a script error, when using the functions `the_favorites_button()` 
   or `get_favorites_button()`. This has happen few days ago.
 * It display’s this error message:
 * >  Warning: in_array() expects parameter 2 to be array, null given in /home/something/
   > public_html/temp/wpfolder/wp-content/plugins/favorites/app/Entities/User/UserRepository.
   > php on line 188
 * I am using WordPress 4.8 with plugins:
    – WooCommerce 3.1 – WPML (last version)–…

Viewing 1 replies (of 1 total)

The topic ‘Script error’ is closed to new replies.

 * ![](https://ps.w.org/favorites/assets/icon-128x128.png?rev=1677726)
 * [Favorites](https://wordpress.org/plugins/favorites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/favorites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/favorites/)
 * [Active Topics](https://wordpress.org/support/plugin/favorites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/favorites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/favorites/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [LoicTheAztec](https://wordpress.org/support/users/lomars/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/script-error-20/#post-9292831)
 * Status: not resolved