Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating » Old Version fixes and change logs »

PATCH 367-03: PHP errors when adding widget areas in index.php


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
 
Prev Previous Post   Next Post Next
  #1  
Old May 14, 2011, 09:52 AM
juggledad's Avatar
juggledad
 
20,009 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
PATCH 367-03: PHP errors when adding widget areas in index.php

DESCRIPTION: When trying to use a new widget ares, the error
Quote:
Warning: array_key_exists() expects parameter 2 to be array, string given in /var/www/(domain removed)/public_html/wp-content/themes/atahualpa367/functions.php on line 404
may show.

CAUSE: This is caused by the new code to handle the new widget areas in 3.6.7 the incorrect variable is being used in one of the lines of code.

To fix this issue,
1) Download the attached file.
2) unzip it on your computer
3) FTP it to the 'atahualpa' folder on your host, replacing the copy that is there.

functions.php.zip

--------------------------------------------------------------
The following is the change that was made to the code:
--------------------------------------------------------------
function.php line 404 was changed from
HTML Code:
if ( array_key_exists('width_' . $i, $args) AND !empty($args['width_' . $i]) ) {
to
HTML Code:
if ( array_key_exists('width_' . $i, $r) AND !empty($r['width_' . $i]) ) {

Last edited by juggledad; Jul 7, 2011 at 12:43 PM.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Atahualpa 367 PHP code trouble fotomag Sidebars & Widgets 13 Jun 22, 2011 08:46 AM
[SOLVED] 3.6.7 PHP error when adding widget areas jakobsmith New Versions, & Updating 4 May 14, 2011 08:18 AM
make index.php be a "page" and blog postings go to different php page zhidoni Atahualpa 3 Wordpress theme 0 Jun 21, 2009 04:25 PM
Adding php in a text widget? trinity Sidebars & Widgets 2 Jun 15, 2009 08:44 AM


All times are GMT -6. The time now is 05:20 PM.


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