Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme » New Versions & Updates »

Patch 119-01: Notice: Undefined offset: 0 in wp-includes/capabilities.php line 1106


  #1  
Old Dec 15, 2013, 04:30 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Patch 119-01: Notice: Undefined offset: 0 in wp-includes/capabilities.php line 1106

If you have upgraded to WordPress 3.8, you may see the following message mixed in with post comments
HTML Code:
Notice: Undefined offset: 0 in /wp-includes/capabilities.php on line 1106
This is caused by a change in WordPress enforcing a parameter needed for an internal function.

This error can be fixed by editing 'template_tags.php' (it's in montezuma/includes) and change line 50 from
HTML Code:
	if( current_user_can( 'edit_post' ) ) 
to
HTML Code:
	if( current_user_can( 'edit_post', get_the_ID() ) ) 
and change line 57 from
HTML Code:
	if( current_user_can( 'edit_post' ) ) 
to
HTML Code:
	if( current_user_can( 'edit_post', get_the_ID() ) ) 
or replacing the existing template_tags.php with the attached file (after unzipping it of course)

This fix will be in the next release of Montezuma.
Attached Files
File Type: zip template_tags.zip (2.4 KB, 2204 views)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Dec 15, 2013 at 04:32 PM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Notice: Undefined index: bfa_ata_noncename codered Center area post/pages 1 Feb 12, 2013 01:26 PM
[SOLVED] PATCH 373-03: date-modified in post/page .. patch is corrupted dnasir New Versions, & Updating 3 Jan 19, 2012 08:21 AM
Options & Capabilities? PowerTreb ThemeFrame Presales 9 Aug 3, 2011 09:02 AM
PATCH 367-02: Page Titles are double with 3.6.7 (now part of PATCH 367-04) juggledad Old Version fixes and change logs 0 May 13, 2011 03:57 PM
Notice: Undefined variable: odd_or_even in bfa://content_inside_loop on line 6 tasha Center area post/pages 2 Apr 7, 2011 01:57 PM


All times are GMT -6. The time now is 03:13 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.