Title: message: &#8220;Undefined variable: site_id&#8221;
Last modified: October 11, 2021

---

# message: “Undefined variable: site_id”

 *  [magicoders](https://wordpress.org/support/users/patopaiar/)
 * (@patopaiar)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/message-undefined-variable-site_id/)
 * Hi!
 * I have the shortcode correctly configured in a live site, but in the staging,
   after a theme change, the same shortcode does not render the favorites, and I
   can see in the Query Monitor console message: “Undefined variable: site_id””
 * This is not a multiste.
 * I also tried adding site_id=”1″ to the shortcode, but it continued displaying
   the same error message.
 * Any ideas what could be going on? How to get this shortcode back to working? 
   Thank you,

The topic ‘message: “Undefined variable: site_id”’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [magicoders](https://wordpress.org/support/users/patopaiar/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/message-undefined-variable-site_id/)
 * Status: not resolved