[SOLVED] 3.6.7 PHP error when adding widget areas
I'm having this problem with ATA 3.6.7:
I want to have a frontpage on the site with 3 widget areas (columns) in the center column area. Due to the recent changes to the theme, I'm adding this widget area code in index.php: PHP Code:
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 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 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 On line 403-407 in functions.php, I have: PHP Code:
Server: Apache/2.2.17 (Unix) PHP/5.3.5 |
where in index.php did you add the code?
|
I put it on lines 40-44.
I've used the same code with the Shortcode Exec PHP-plugin and got the same errors. Guess I could remove the errors by turning off PHP error reporting, but that doesn't seem like a good solution. |
Try this, edit functions.php and change line 404 from
HTML Code:
if ( array_key_exists('width_' . $i, $args) AND !empty($args['width_' . $i]) ) { HTML Code:
if ( array_key_exists('width_' . $i, $r) AND !empty($r['width_' . $i]) ) { |
Quote:
|
All times are GMT -6. The time now is 05:28 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.