亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

php警告Creating default object from empty value 問(wèn)題的解決方法

 更新時(shí)間:2014年04月02日 10:08:26   作者:  
PHP 提示 Creating default object from empty value 的問(wèn)題,一般是由于PHP版升級(jí)的原因,PHP 5.4 以上的版本一般會(huì)報(bào)這個(gè)錯(cuò)誤

解決方法是找到報(bào)錯(cuò)的位置然后看哪個(gè)變量是沒有初始化而直接使用的,將這個(gè)變量先實(shí)例化一個(gè)空類。如:

復(fù)制代碼 代碼如下:
$ct = new stdClass();

修改文件相應(yīng)代碼,如:
復(fù)制代碼 代碼如下:
if ( ! isset( $themes[$current_theme] ) ) {
 delete_option( 'current_theme' );
 $current_theme = get_current_theme();
}
$ct = new stdClass(); <!--添加這行-->
$ct->name = $current_theme;

問(wèn)題解決。

相關(guān)文章

最新評(píng)論