Quantcast
Channel: Topic Tag: error 500 | WordPress.org
Viewing all articles
Browse latest Browse all 1704

lowgenius on "[Theme: Hueman] 500 Error"

$
0
0

It appears that it is an OT-related issue.

I just got this back from my host. Two messages. The *second* message is that rolling back to PHP 5.2.17 (instead of 5.4.23) makes the theme work. Obviously this isn't a real fix, since we don't want to rely on running an older version of PHP. As I can clearly see that this code section is using option-tree specific variables, I have copied this message to support topics at both the Hueman theme and Option Tree support fora. Hopefully between the two of you, you can figure out what's broken and how to fix it so it works in PHP 5.4.23+ :)

The first message is this list of errors:

===================
PHP Warning: Illegal string offset 'background-color' in D:\Inetpub\vhosts\lowgenius.com\staging.peoples-news-network.com\wp-content\themes\hueman\functions\dynamic-styles.php on line 219

PHP Warning: Illegal string offset 'background-image' in D:\Inetpub\vhosts\lowgenius.com\staging.peoples-news-network.com\wp-content\themes\hueman\functions\dynamic-styles.php on line 220

PHP Warning: Illegal string offset 'background-position' in D:\Inetpub\vhosts\lowgenius.com\staging.peoples-news-network.com\wp-content\themes\hueman\functions\dynamic-styles.php on line 221

PHP Warning: Illegal string offset 'background-attachment' in D:\Inetpub\vhosts\lowgenius.com\staging.peoples-news-network.com\wp-content\themes\hueman\functions\dynamic-styles.php on line 222

PHP Warning: Illegal string offset 'background-repeat' in D:\Inetpub\vhosts\lowgenius.com\staging.peoples-news-network.com\wp-content\themes\hueman\functions\dynamic-styles.php on line 223

PHP Warning: Illegal string offset 'background-size' in D:\Inetpub\vhosts\lowgenius.com\staging.peoples-news-network.com\wp-content\themes\hueman\functions\dynamic-styles.php on line 224

======================

All of those strings are used on those lines, within the following conditional:

(line 215) // body background
if ( ot_get_option('body-background') != '' ) {

$body_background = ot_get_option('body-background');
(L219) $body_color = $body_background['background-color'];
$body_image = $body_background['background-image'];
$body_position = $body_background['background-position'];
$body_attachment = $body_background['background-attachment'];
$body_repeat = $body_background['background-repeat'];
(L224) $body_size = $body_background['background-size'];

================

I'm no PHP coder, but I *am* a rusty old ASPX coder. This appears to me to be an error created by an OT-specific code segment within the theme when there is a value set for variable ot_get_option('body-background'). As I'm not familiar enough with PHP to chase down where, precisely, this string is set by default to a non-null value, I will leave it up to you talented folks to determine precisely what the problem is and how to fix it. I'll be monitoring these threads so I can fix it by hand ASAP, in anticipation of a later, formal fix pushed out in a theme update (after, I'm assuming, a fix is pushed out through OT as it seems likely to me that OT is generating this code.)


Viewing all articles
Browse latest Browse all 1704

Trending Articles