Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #1  
Old May 14, 2011, 09:52 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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]) ) {
__________________
"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; 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 01:26 AM.


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