问题描述

所以我已经阅读了所有类似的问题,在这里找不到解决方案。基本上,user-facing 网站看起来很好,功能正常。然而,WP 管理员仅显示左侧导航菜单,而不再显示。

我已经尝试了所有的基本解决方案 – 删除主题,删除插件,打开错误报告,所有这些都是一些典型的警告。

一两星期前,管理员工作正常,而且我一直没有入住。此外,它是几个版本的旧 – 但他的这个网站的原始设计师警告不要升级 WordPress 或它会打破代码。

所以我以为我会在这里发布页面来源,看看有没有人可以有一个建议,从这里来看看。注意,这是 WPADMIN 页面源,而不是网站的源。

这是我看到的截图。

当我登录到 WP ADMIN 时,这是我得到的:

<!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8"  dir="ltr" lang="en-US">
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml"  dir="ltr" lang="en-US">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Dashboard &lsaquo; Suncoast Surgical Associates | Tampa and Brandon, Florida General Surgery and Laparoscopic Surgery — WordPress</title>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var userSettings = {
        'url': '/',
        'uid': '3',
        'time':'1391720939'
    },
    ajaxurl = 'http://suncoastsurgicalassociates.com/wp-admin/admin-ajax.php',
    pagenow = 'dashboard',
    typenow = '',
    adminpage = 'index-php',
    thousandsSeparator = ',',
    decimalPoint = '.',
    isRtl = 0;
</script>
<link rel='stylesheet' href='http://suncoastsurgicalassociates.com/wp-admin/load-styles.php?c=1&amp;dir=ltr&amp;load=admin-bar,wp-admin&amp;ver=7f0753feec257518ac1fec83d5bced6a' type='text/css' media='all' />
<link rel='stylesheet' id='thickbox-css'  href='http://suncoastsurgicalassociates.com/wp-includes/js/thickbox/thickbox.css?ver=20111117' type='text/css' media='all' />
<link rel='stylesheet' id='colors-css'  href='http://suncoastsurgicalassociates.com/wp-admin/css/colors-fresh.css?ver=20111206' type='text/css' media='all' />
<!--[if lte IE 7]>
<link rel='stylesheet' id='ie-css'  href='http://suncoastsurgicalassociates.com/wp-admin/css/ie.css?ver=20111130' type='text/css' media='all' />
<![endif]-->
<link rel='stylesheet' id='akismet.css-css'  href='http://suncoastsurgicalassociates.com/wp-content/plugins/akismet/akismet.css?ver=2.5.4.4' type='text/css' media='all' />
<link rel='stylesheet' id='jcrop_style-css'  href='http://suncoastsurgicalassociates.com/wp-content/plugins/scissors-continued/css/jquery.Jcrop.css?ver=3.3.1' type='text/css' media='all' />
<link rel='stylesheet' id='scissors_style-css'  href='http://suncoastsurgicalassociates.com/wp-content/plugins/scissors-continued/css/scissors.css?ver=3.3.1' type='text/css' media='all' />
<script type='text/javascript'>
/* <![CDATA[ */
var WPAkismet = {"comment_author_url_nonce":"3190b6c9aa"};
/* ]]> */
</script>
<script type='text/javascript' src='http://suncoastsurgicalassociates.com/wp-admin/load-scripts.php?c=1&amp;load=jquery,utils&amp;ver=edec3fab0cb6297ea474806db1895fa7'></script>
<script type='text/javascript' src='http://suncoastsurgicalassociates.com/wp-content/plugins/akismet/akismet.js?ver=2.5.4.6'></script>
    <style type="text/css">
    #adminmenu .toplevel_page_formidable div.wp-menu-image{background: url(http://suncoastsurgicalassociates.com/wp-content/plugins/formidable/images/form_16.png) no-repeat center;}
    </style>
    <style type="text/css" media="print">#wpadminbar { display:none; }</style>
</head>
<body class="wp-admin no-js  index-php admin-bar branch-3-3 version-3-3-1 admin-color-fresh">
<script type="text/javascript">document.body.className = document.body.className.replace('no-js','js');</script>

<div id="wpwrap">

<div id="adminmenuback"></div>
<div id="adminmenuwrap">
<div id="adminmenushadow"></div>
<ul id="adminmenu" role="navigation">


    <li class="wp-first-item wp-has-submenu wp-has-current-submenu wp-menu-open menu-top menu-top-first menu-icon-dashboard menu-top-last" id="menu-dashboard">
    <div class='wp-menu-image'><a href='index.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='index.php' class="wp-first-item wp-has-submenu wp-has-current-submenu wp-menu-open menu-top menu-top-first menu-icon-dashboard menu-top-last" tabindex="1">Dashboard</a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Dashboard</div><ul><li class="wp-first-item current"><a href='index.php' class="wp-first-item current" tabindex="1">Home</a></li><li><a href='update-core.php' tabindex="1">Updates <span class='update-plugins count-3' title='1 WordPress Update, 2 Theme Updates'><span class='update-count'>3</span></span></a></li><li><a href='index.php?page=akismet-stats-display' tabindex="1">Akismet Stats</a></li></ul></div></div></li>
    <li class="wp-not-current-submenu wp-menu-separator"><div class="separator"></div></li>
    <li class="wp-has-submenu wp-not-current-submenu open-if-no-js menu-top menu-icon-post menu-top-first" id="menu-posts">
    <div class='wp-menu-image'><a href='edit.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='edit.php' class="wp-has-submenu wp-not-current-submenu open-if-no-js menu-top menu-icon-post menu-top-first" tabindex="1" aria-haspopup="true">Posts</a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Posts</div><ul><li class="wp-first-item"><a href='edit.php' class="wp-first-item" tabindex="1">All Posts</a></li><li><a href='post-new.php' tabindex="1">Add New</a></li><li><a href='edit-tags.php?taxonomy=category' tabindex="1">Categories</a></li><li><a href='edit-tags.php?taxonomy=post_tag' tabindex="1">Tags</a></li></ul></div></div></li>
    <li class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-media" id="menu-media">
    <div class='wp-menu-image'><a href='upload.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='upload.php' class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-media" tabindex="1" aria-haspopup="true">Media</a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Media</div><ul><li class="wp-first-item"><a href='upload.php' class="wp-first-item" tabindex="1">Library</a></li><li><a href='media-new.php' tabindex="1">Add New</a></li></ul></div></div></li>
    <li class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-links" id="menu-links">
    <div class='wp-menu-image'><a href='link-manager.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='link-manager.php' class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-links" tabindex="1" aria-haspopup="true">Links</a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Links</div><ul><li class="wp-first-item"><a href='link-manager.php' class="wp-first-item" tabindex="1">All Links</a></li><li><a href='link-add.php' tabindex="1">Add New</a></li><li><a href='edit-tags.php?taxonomy=link_category' tabindex="1">Link Categories</a></li></ul></div></div></li>
    <li class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-page" id="menu-pages">
    <div class='wp-menu-image'><a href='edit.php?post_type=page'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='edit.php?post_type=page' class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-page" tabindex="1" aria-haspopup="true">Pages</a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Pages</div><ul><li class="wp-first-item"><a href='edit.php?post_type=page' class="wp-first-item" tabindex="1">All Pages</a></li><li><a href='post-new.php?post_type=page' tabindex="1">Add New</a></li></ul></div></div></li>
    <li class="wp-not-current-submenu menu-top menu-icon-comments menu-top-last" id="menu-comments">
    <div class='wp-menu-image'><a href='edit-comments.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='edit-comments.php' class="wp-not-current-submenu menu-top menu-icon-comments menu-top-last" tabindex="1">Comments <span class='awaiting-mod count-1'><span class='pending-count'>1</span></span></a></li>
    <li class="wp-not-current-submenu wp-menu-separator"><div class="separator"></div></li>
    <li class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-appearance menu-top-first" id="menu-appearance">
    <div class='wp-menu-image'><a href='themes.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='themes.php' class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-appearance menu-top-first" tabindex="1" aria-haspopup="true">Appearance</a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Appearance</div><ul><li class="wp-first-item"><a href='themes.php' class="wp-first-item" tabindex="1">Themes</a></li><li><a href='widgets.php' tabindex="1">Widgets</a></li><li><a href='theme-editor.php' tabindex="1">Editor</a></li></ul></div></div></li>
    <li class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-plugins" id="menu-plugins">
    <div class='wp-menu-image'><a href='plugin-install.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='plugin-install.php' class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-plugins" tabindex="1" aria-haspopup="true">Plugins </a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Plugins </div><ul><li class="wp-first-item"><a href='plugin-install.php' class="wp-first-item" tabindex="1">Add New</a></li><li><a href='plugin-install.php?page=akismet-key-config' tabindex="1">Akismet Configuration</a></li></ul></div></div></li>
    <li class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-users" id="menu-users">
    <div class='wp-menu-image'><a href='profile.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='profile.php' class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-users" tabindex="1" aria-haspopup="true">Profile</a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Profile</div><ul><li class="wp-first-item"><a href='profile.php' class="wp-first-item" tabindex="1">Your Profile</a></li><li><a href='user-new.php' tabindex="1">Add New User</a></li></ul></div></div></li>
    <li class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-tools" id="menu-tools">
    <div class='wp-menu-image'><a href='tools.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='tools.php' class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-tools" tabindex="1" aria-haspopup="true">Tools</a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Tools</div><ul><li class="wp-first-item"><a href='tools.php' class="wp-first-item" tabindex="1">Available Tools</a></li><li><a href='import.php' tabindex="1">Import</a></li><li><a href='export.php' tabindex="1">Export</a></li></ul></div></div></li>
    <li class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-settings menu-top-last" id="menu-settings">
    <div class='wp-menu-image'><a href='options-general.php'><br /></a></div><div class="wp-menu-arrow"><div></div></div><a href='options-general.php' class="wp-has-submenu wp-not-current-submenu menu-top menu-icon-settings menu-top-last" tabindex="1" aria-haspopup="true">Settings</a>
    <div class='wp-submenu'><div class='wp-submenu-wrap'><div class='wp-submenu-head'>Settings</div><ul><li class="wp-first-item"><a href='options-general.php' class="wp-first-item" tabindex="1">General</a></li><li><a href='options-writing.php' tabindex="1">Writing</a></li><li><a href='options-reading.php' tabindex="1">Reading</a></li><li><a href='options-discussion.php' tabindex="1">Discussion</a></li><li><a href='options-media.php' tabindex="1">Media</a></li><li><a href='options-privacy.php' tabindex="1">Privacy</a></li><li><a href='options-permalink.php' tabindex="1">Permalinks</a></li><li><a href='options-general.php?page=fancybox-for-wordpress' tabindex="1">Fancybox for WP</a></li><li><a href='options-general.php?page=mappress' tabindex="1">MapPress</a></li></ul></div></div></li><li id="collapse-menu" class="hide-if-no-js"><div id="collapse-button"><div></div></div><span>Collapse menu</span></li></ul>
</div>
<div id="wpcontent">


<div id="wpbody">

<div id="wpbody-content">
        <div id="screen-meta" class="metabox-prefs">

            <div id="contextual-help-wrap" class="hidden">
                <div id="contextual-help-back"></div>
                <div id="contextual-help-columns">
                    <div class="contextual-help-tabs">
                        <ul>

                            <li id="tab-link-overview" class="active">
                                <a href="#tab-panel-overview">
                                    Overview                                </a>
                            </li>

                            <li id="tab-link-help-navigation" class="">
                                <a href="#tab-panel-help-navigation">
                                    Navigation                              </a>
                            </li>

                            <li id="tab-link-help-layout" class="">
                                <a href="#tab-panel-help-layout">
                                    Layout                              </a>
                            </li>

                            <li id="tab-link-help-content" class="">
                                <a href="#tab-panel-help-content">
                                    Content                             </a>
                            </li>
                                                </ul>
                    </div>

                                        <div class="contextual-help-sidebar">

我注意到帮助侧栏是它结束的地方。然而,这并不给我任何具体的看法。

任何帮助将不胜感激。

谢谢…

最佳解决方案

好的.. 找到了

这是违规的代码,它在 706 行的 wp-adminincludesscreen.php 中:

<?php echo self::$this->_help_sidebar; ?>

它应该是:

<?php echo $this->_help_sidebar; ?>

不知道为什么这个突然决定坏了。坦白说,我不知道我会不会发现。

但是如果可能的话,想帮助别人。

照顾大家.. 谢谢…

次佳解决方案

我有同样的问题,这个解决方案对我来说是有效的。即:变更:

echo self::$this->_help_sidebar;

echo $this->_help_sidebar;

参考文献

注:本文内容整合自 Google/Baidu/Bing 辅助翻译的英文资料结果。如果您对结果不满意,可以加入我们改善翻译效果:薇晓朵技术论坛。