Title: PHP Notice: Undefined index: hook_suffix
Last modified: January 2, 2019

---

# PHP Notice: Undefined index: hook_suffix

 *  [lkerbs](https://wordpress.org/support/users/lkerbs/)
 * (@lkerbs)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-notice-undefined-index-hook_suffix/)
 * `PHP Notice: Undefined index: hook_suffix in /home/x/x.com/wp-admin/includes/
   class-wp-screen.php on line 217`
 * This keeps coming up in my debug log. Any idea what could be causing it?

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

 *  [Howdy_McGee](https://wordpress.org/support/users/howdy_mcgee/)
 * (@howdy_mcgee)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-notice-undefined-index-hook_suffix/#post-11045120)
 * If you can trigger the error ( by viewing a specific admin page possibly ) then
   you could install something like the [Health Check & Troubleshooting Plugin](https://wordpress.org/plugins/health-check/)
   to disable plugins and enable them one by one until you find the offending plugin.
   You can do the same with the theme – this will at least help you narrow down 
   where the issue lies. If it lies with a plugin or theme (premium or from the 
   WordPress repository ) you can report the issue to the developer via the support
   forums or through their support methods and hope they resolve this issue in a
   future update.
 * If it turns out to be a custom theme or custom plugin that is causing the issue
   I would guess that it’s an issue with how an admin page or settings page is being
   added or registered. At that point we would need to see some kind of code to 
   help further.
 *  [slomeli79](https://wordpress.org/support/users/slomeli79/)
 * (@slomeli79)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-notice-undefined-index-hook_suffix/#post-11071356)
 * [@lkerbs](https://wordpress.org/support/users/lkerbs/) , did you figure it out?
   I’m seeing the same error for the exact same line number, too.
 *  [Marty](https://wordpress.org/support/users/bozzmedia/)
 * (@bozzmedia)
 * [7 years ago](https://wordpress.org/support/topic/php-notice-undefined-index-hook_suffix/#post-11406188)
 * This popped up on a site for me recently as well.
 *  [pexys](https://wordpress.org/support/users/pexys/)
 * (@pexys)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-notice-undefined-index-hook_suffix/#post-11558438)
 * Hi,
 * I have the same problem in my debug.log.
 *  [samjco](https://wordpress.org/support/users/samjco/)
 * (@samjco)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-notice-undefined-index-hook_suffix/#post-12007421)
 * hmmm. This is definitely a bug in core.
 * I fixed it by replacing
    `$id = $GLOBALS['hook_suffix'];` with `$id = isset($
   GLOBALS['hook_suffix']) ? $GLOBALS['hook_suffix'] : "";`

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

The topic ‘PHP Notice: Undefined index: hook_suffix’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 6 participants
 * Last reply from: [samjco](https://wordpress.org/support/users/samjco/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/php-notice-undefined-index-hook_suffix/#post-12007421)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
