Title: Localhost dev error
Last modified: August 22, 2016

---

# Localhost dev error

 *  [gdekadt](https://wordpress.org/support/users/gdekadt/)
 * (@gdekadt)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/localhost-dev-error/)
 * Error appearing on localhost dev version running in MAMP. Error message shows
   when I hit publish. When I check the front-end the post has actually been saved.
 * “Undefined offset: 0 in > […] /wp-includes/capabilities.php on line 1067”
 * Seems very similar to these issue: [http://wordpress.stackexchange.com/questions/83514/undefined-offset-0-in-wp-includes-capabilities-php-on-line-1067](http://wordpress.stackexchange.com/questions/83514/undefined-offset-0-in-wp-includes-capabilities-php-on-line-1067)
 * [http://forum.bytesforall.com/showthread.php?t=21276](http://forum.bytesforall.com/showthread.php?t=21276)
 * I’ll have a look and see if I can fix now (but time is short and I may have to
   drop it)

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

 *  Thread Starter [gdekadt](https://wordpress.org/support/users/gdekadt/)
 * (@gdekadt)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/localhost-dev-error/#post-5356844)
 * Yup that did it…
    Add “, get_the_ID() to “functions.php line 563 `if( !current_user_can('
   edit_post' ) ) return;` now: `if( !current_user_can( 'edit_post', get_the_ID()))
   return;`
 *  Thread Starter [gdekadt](https://wordpress.org/support/users/gdekadt/)
 * (@gdekadt)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/localhost-dev-error/#post-5356914)
 * Similar bug – now on a production server when editing user details…
 * Notice: Undefined index: showemail in [theme]functions.php on line 471
 * Warning: Cannot modify header information – headers already sent by (output started
   at [theme]/functions.php:471) in [public_html]/wp-includes/pluggable.php on line
   1173

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

The topic ‘Localhost dev error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/baskerville/2.3.1/screenshot.jpg)
 * Baskerville
 * [Support Threads](https://wordpress.org/support/theme/baskerville/)
 * [Active Topics](https://wordpress.org/support/theme/baskerville/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/baskerville/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/baskerville/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [gdekadt](https://wordpress.org/support/users/gdekadt/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/localhost-dev-error/#post-5356914)
 * Status: not resolved