Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Old Version fixes and change logs (http://forum.bytesforall.com/forumdisplay.php?f=37)
-   -   PATCH 367-03: PHP errors when adding widget areas in index.php (http://forum.bytesforall.com/showthread.php?t=14160)

juggledad May 14, 2011 09:52 AM

PATCH 367-03: PHP errors when adding widget areas in index.php
 
1 Attachment(s)
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.

Attachment 1403

--------------------------------------------------------------
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]) ) {


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

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