Title: &#8220;Undefined variable&#8221; (page_hook)
Last modified: June 18, 2018

---

# “Undefined variable” (page_hook)

 *  [lauramay7](https://wordpress.org/support/users/lauramay7/)
 * (@lauramay7)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-page_hook/)
 * Hello!
 * We use Bento with the expansion pack. We upgraded the theme the other day, and
   are now receiving the following error message all over the back-end of our site:
 * Notice: Undefined variable: page_hook in (directory)/public_html/wp-content/themes/
   bento/includes/metaboxes/includes/CMB2_Options_Hookup.php on line 90
 * Any ideas?
 * Thanks so much!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-page_hook%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-page_hook/#post-10421343)
 * Hello Laura,
 * thank you for choosing Bento! I can’t seem to be able to locate the message on
   the provided URL – is the issue still topical?
 *  Thread Starter [lauramay7](https://wordpress.org/support/users/lauramay7/)
 * (@lauramay7)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-page_hook/#post-10421416)
 * It is – but it’s only displayed in the back end. I rolled back to Bento v 1.8
   and the message is gone.
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-page_hook/#post-10422364)
 * Thanks for the details! We will fix the issue in the upcoming 2.0 release (coming
   within 1-2 weeks).
 *  Thread Starter [lauramay7](https://wordpress.org/support/users/lauramay7/)
 * (@lauramay7)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-page_hook/#post-10464353)
 * Hello!
    The issue is still there with 2.0, I’m afraid. page_hook in /home/imimedia/
   public_html/wp-content/themes/bento/includes/metaboxes/includes/CMB2_Options_Hookup.
   php on line 90 is all over the place, and the admin dashboard is….schizophrenic?
   Site stats goes strange, and the WooCommerce stats extends into one super-long
   column. I’m rolling back to 1.8 again, but wanted to let you know this is still
   happening 🙂 Thanks!
 *  Theme Author [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * (@satoristudio)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-page_hook/#post-10464512)
 * Thank you for reporting, Laura! I think I’ve found the culprit this time, will
   include the fix into the 2.0.1 theme update which is due in a couple of days.
   Thanks for your patience!

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

The topic ‘“Undefined variable” (page_hook)’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/bento/2.5/screenshot.png)
 * Bento
 * [Support Threads](https://wordpress.org/support/theme/bento/)
 * [Active Topics](https://wordpress.org/support/theme/bento/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/bento/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/bento/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [satoristudio](https://wordpress.org/support/users/satoristudio/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/undefined-variable-page_hook/#post-10464512)
 * Status: not resolved