Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

Old Dec 15, 2013, 05:30 PM
juggledad's Avatar
23,762 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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' ) ) 
HTML Code:
	if( current_user_can( 'edit_post', get_the_ID() ) ) 
and change line 57 from
HTML Code:
	if( current_user_can( 'edit_post' ) ) 
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, 1332 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 05:32 PM.


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 02:26 PM
[SOLVED] PATCH 373-03: date-modified in post/page .. patch is corrupted dnasir New Versions, & Updating 3 Jan 19, 2012 09:21 AM
Options & Capabilities? PowerTreb ThemeFrame Presales 9 Aug 3, 2011 10: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 04: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 02:57 PM

All times are GMT -6. The time now is 02:51 AM.

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