1
我有這個網站工作完美,但今天突然間我打開它,什麼也沒有顯示出來。所以我去了,並啓用WP_DEBUG,我得到了這個致命的錯誤。致命錯誤:調用theme_config.php中的非對象的成員函數display()
「致命錯誤:調用第12行」/home/Mywebsite/public_html/wp-content/themes/medica-parent/theme_config/config/theme_config.php中非對象的成員函數display()
我不知道這意味着什麼。我甚至無法訪問Website.com/wp-login.php。我甚至禁用了數據庫中的所有插件,但這並沒有幫助。
你們能幫我一把嗎?對不起,我是新來的Wordpress。
這是該文件的代碼。
<?php
/**
* Generate theme details
*/
global $wp_version;
if(version_compare('3.3.2',$wp_version,'>=')) {
$theme_info = get_theme_data(TEMPLATEPATH . '/style.css');
$cfg['theme_version'] = $theme_info['Version'];
} else {
$theme_info = wp_get_theme(null, WP_CONTENT_DIR . '/themes/');
if (is_child_theme())
$cfg['theme_version'] = $theme_info->parent()->display('Version');
else
$cfg['theme_version'] = $theme_info->display('Version');
}
$template_info = @get_theme_data(TEMPLATEPATH . '/style.css');
$cfg['theme_version'] = $template_info['Version'];
$cfg['mods_version'] = '2.0.8';
$cfg['theme_name'] = 'Medica';
$cfg['prefix'] = sanitize_title($cfg['theme_name']);
$cfg['author_name'] = 'ThemeFuse';
$cfg['theme_author'] = '<a target="_blank" href="http://themefuse.com">ThemeFuse</a> - ';
$cfg['forum_url'] = 'http://themefuse.com/forum/medica-wp/';
$cfg['manual_url'] = 'http://themefuse.com/wp-docs/medica/';
//$cfg['disabled_extensions'] = array('SLIDER');
$cfg['disabled_extensions'] = array();
$cfg['screen_options']['nav-menus'] = array('add-post','add-post_tag');
$cfg['install_options']['tax'] = array($cfg['prefix'] . '_homepage_category', 'categories_select');
$cfg['install_options']['pos'] = array('posts_select');
你可以嘗試重命名主題目錄。但問題似乎在這裏:'$ theme_info = wp_get_theme(null,WP_CONTENT_DIR。'/ themes /');' – 2014-08-29 15:51:03