Support » Fixing WordPress » PHP Notice: Undefined index: hook_suffix

  • lkerbs


    PHP Notice: Undefined index: hook_suffix in /home/x/ 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


    If you can trigger the error ( by viewing a specific admin page possibly ) then you could install something like the Health Check & Troubleshooting Plugin 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.



    @lkerbs , did you figure it out? I’m seeing the same error for the exact same line number, too.

    This popped up on a site for me recently as well.


    I have the same problem in my debug.log.

    hmmm. This is definitely a bug in core.

    I fixed it by replacing
    $id = $GLOBALS['hook_suffix'];
    $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.