Error msg when I post a new page

Community Forums Forums Design Tips and Tricks Error msg when I post a new page

This topic is: not resolved

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  joshf 1 year, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19779

    djer
    Participant

    I’m getting the following error message when I create new pages and press update.  I am running WP 3.5.1 :

     

    Notice: Undefined offset: 0 in /home/marketfa/public_html/wp/wp-includes/capabilities.php on line 1067

    Notice: Undefined offset: 0 in /home/marketfa/public_html/wp/wp-includes/capabilities.php on line 1067

    Notice: Undefined offset: 0 in /home/marketfa/public_html/wp/wp-includes/capabilities.php on line 1067

    Notice: Undefined offset: 0 in /home/marketfa/public_html/wp/wp-includes/capabilities.php on line 1067

    Warning: Cannot modify header information – headers already sent by (output started at /home/marketfa/public_html/wp/wp-includes/capabilities.php:1067) in /home/marketfa/public_html/wp/wp-includes/pluggable.php on line 876

    Any ideas?

    #19967

    joshf
    Participant
    Post count: 2

    Yeah, this has been popping up for me too. This seems to be the fix:

    Change line 235 in genesis/lib/functions/options.php from:

    if ( ( ‘page’ == $post->post_type && ! current_user_can( ‘edit_page’ ) ) || ! current_user_can( ‘edit_post’ ) )

    To:

    if ( ! current_user_can( ‘edit_post’, $post->ID ) )

    Source: http://wordpress.stackexchange.com/questions/83514/undefined-offset-0-in-wp-includes-capabilities-php-on-line-1067

    If anyone has a better solution, I’m all ears!

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

You must be logged in to reply to this topic.