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 » Atahualpa 3 Wordpress theme » New Versions, & Updating » Old Version fixes and change logs »

PATCH 3722-03: Fix an 'Undefined index: bfa_ata_noncename’ warning message


  #1  
Old Feb 9, 2015, 04:48 AM
juggledad's Avatar
juggledad
 
23,511 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you find this patch useful, consider donating. I spent my time digging into the issue and coming up with a fix. Without donations, there is not much incentive for me to try and fix anything that doesn't effect the sites I work on is there?


A PHP Notice (a warning message) may show up using various plugins with Atahualpa, if you have
HTML Code:
define('WP_DEBUG', true);
in your wp-config.php file. The message will look like this:
HTML Code:
[09-Feb-2015 10:50:41 UTC] PHP Notice:  Undefined index: bfa_ata_noncename in /...some list of folders.../wp-content/themes/atahualpa/functions.php on line 652
This patch will prevent the message from appearing.

To fix this issue edit 'function.php' and change line 652 from
HTML Code:
  if ( !wp_verify_nonce( $_POST['bfa_ata_noncename'], plugin_basename(__FILE__) )) {
to
HTML Code:
if (isset($_POST['bfa_ata_noncename']))    
{     

	if ( !wp_verify_nonce( $_POST['bfa_ata_noncename'], plugin_basename(__FILE__) )) {
and change line 682 from
HTML Code:
if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
to
HTML Code:
}

if ( function_exists( 'add_theme_support' ) ) { // Added in 2.9
or you can replace the existing functions.php' with this version (remember to unzip it first)
Attached Files
File Type: zip functions.php.zip (9.3 KB, 253 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; Feb 9, 2015 at 04:52 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PATCH 3722-02: Fix Atahualpa's SEO options META information juggledad Old Version fixes and change logs 0 Jan 30, 2015 04:42 AM
PATCH 3722-01: patch to fix RSS feeds juggledad Old Version fixes and change logs 0 Jan 21, 2015 11:21 AM
Error: 'Undefined index: full_width_footer' kazerniel Header configuration & styling 5 Sep 20, 2014 06:10 AM
Patch 119-01: Notice: Undefined offset: 0 in wp-includes/capabilities.php line 1106 juggledad New Versions & Updates 0 Dec 15, 2013 04:30 PM
PHP Notice: Undefined index: bfa_ata_noncename codered Center area post/pages 1 Feb 12, 2013 01:26 PM


All times are GMT -6. The time now is 08:44 AM.


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