Problems with wp-admin\includes\theme.php from fresh install
-
Hi,
I downloaded WordPress along with USBWebServer yesterday to give it a try and it worked well, I was able to install themes and plugins no problem and set up a site the way I wanted it and was quite impressed, now I’ve installed it onto my web server running windows server 2008 r2 64bit and it’s up and working but when I try to install a new theme i get an error, which is repeated 4 times,
PHP Warning: Illegal offset type in isset or empty in C:\inetpub\wwwroot\kosa\wp-admin\includes\theme.php on line 269
PHP Warning: Illegal offset type in C:\inetpub\wwwroot\kosa\wp-admin\includes\theme.php on line 272the code it refers to is,
// Loop over the wporg canonical list and apply translations $wporg_features = array(); foreach ( (array) $feature_list as $feature_category => $feature_items ) { if ( isset($category_translations[$feature_category]) ) $feature_category = $category_translations[$feature_category]; $wporg_features[$feature_category] = array(); foreach ( $feature_items as $feature ) { <strong>if ( isset($features[$feature_category][$feature]) )</strong> $wporg_features[$feature_category][$feature] = $features[$feature_category][$feature]; else $wporg_features[$feature_category][$feature] = $feature; } }
I’m brand new to PHP so I’ve no idea what’s happening,
I can install theme’s manually which is a bit of a pain but then I get another error when I try to customize them,
PHP Warning: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\kosa\wp-admin\custom-header.php on line 1248
PHP Warning: array_merge(): Argument #2 is not an array in C:\inetpub\wwwroot\kosa\wp-admin\custom-header.php on line 1268if ( $has_flex_height && ( ! $has_flex_width || $width > $max_width ) ) { $dst['dst_height'] = absint( $height * ( $max_width / $width ) ); }
line 1268 is a closing }
The errors are a bit of a pain but the real kicker is when the site is viewed externally there’s no theme at all?
I have a feeling it’s an issue with my install settings but I’ve no idea what.
Any help would be appreciated,
Thanks
Damon
- The topic ‘Problems with wp-admin\includes\theme.php from fresh install’ is closed to new replies.