Categories
WordPress

Han’s wordpress error lib

基础环境:
Apache: apache_2.2.4-win32-x86-no_ssl.msi
php:php-5.4.7-Win32-VC9-x86.zip
Mysql:mysql-installer-community-5.5.27.2.msi
WordPress:WordPress 3.2.1.
Warning: Creating default object from empty value in C:Program Files (x86)Apache Software FoundationApache2.2htdocswp-includesuser.php on line 660
if ( !is_multisite() ) {
$blog_id = get_current_blog_id();
$blogs = array();
$blogs[ $blog_id ] = (object) $blogs[ $blog_id ];//add
$blogs[ $blog_id ]->userblog_id = $blog_id;
$blogs[ $blog_id ]->blogname = get_option(‘blogname’);
$blogs[ $blog_id ]->domain = ”;
$blogs[ $blog_id ]->path = ”;
$blogs[ $blog_id ]->site_id = 1;
$blogs[ $blog_id ]->siteurl = get_option(‘siteurl’);
return $blogs;
}
Warning: Creating default object from empty value in C:Program Files (x86)Apache Software FoundationApache2.2htdocswp-includesclass-wp-admin-bar.php on line 167
function add_node( $parent_id, &$menu, $child ) {
foreach( $menu as $id => $menu_item ) {
if ( $parent_id == $id ) {
$menu->{$parent_id}[‘children’] = (object) $menu->{$parent_id}[‘children’];//add
$menu->{$parent_id}[‘children’]->{$child[‘id’]} = $child;
$child = null;
return true;
}
if ( ! empty( $menu->{$id}[‘children’] ) )
$this->add_node( $parent_id, $menu->{$id}[‘children’], $child );
}
$child = null;
return false;
}
Warning: Creating default object from empty value in C:Program Files (x86)Apache Software FoundationApache2.2htdocswp-adminincludestheme.php on line 23
function current_theme_info() {
$themes = get_themes();
$current_theme = get_current_theme();
if ( ! isset( $themes[$current_theme] ) ) {
delete_option( ‘current_theme’ );
$current_theme = get_current_theme();
}
$ct = new stdClass();//add
$ct->name = $current_theme;
$ct->title = $themes[$current_theme][‘Title’];
升级WordPress时出现的错误 解决方法:不升级
Fatal error: Maximum execution time of 30 seconds exceeded in C:Program Files (x86)Apache Software FoundationApache2.2htdocswp-includesclass-http.php on line 902

Fatal error: Maximum execution time of 30 seconds exceeded in C:Program Files (x86)Apache Software FoundationApache2.2htdocswp-includeswp-db.php on line 502

Leave a Reply

Your email address will not be published. Required fields are marked *