刚刚用drupal改变了主题,我留下了白色的死亡画面.默认主题是Zen.这是存储在sites/mysite.com/themes
主题我更改为我认为是themes/
没有访问数据库下的主题之一.有FTP访问权限.有没有办法改变主题或安装一个有用的主题?
纠正问题的最简单方法是找出问题所在.
转到index.php并在之后添加以下行 <?php
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
Run Code Online (Sandbox Code Playgroud)
然后在这里发布错误.完成后不要忘记评论/删除.
编辑:
如果我理解正确,这就是你在开始使用WSOD之前所做的.
.
如果是这样,请按照下列步骤操作:
创建一个空白主题. 为此,请在计算机中创建名为"theme_b"的文件夹.
在里面创建以下文件:theme_b.info,template.php,style.css和page.tpl.php
打开theme_b.info并粘贴它:
name = theme_b
description = bla
version = 1
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css
Run Code Online (Sandbox Code Playgroud)
保存.
打开page.tpl.php并粘贴它:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<?php print $head ?>
<title><?php print $head_title ?></title>
<?php print $styles ?>
<?php print $scripts ?>
</head>
<body>
<div><?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?></div>
<div><?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?></div>
<div id="sidebar-left" class="sidebar"><?php print $left ?></div>
<div>
<?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
<?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
<?php if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif; ?>
<?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
<?php if ($show_messages && $messages): print $messages; endif; ?>
<?php print $help; ?>
</div>
<div>
<?php print $content; ?>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
保存.
然后将文件夹theme_a上传到sites/yoursite.com/themes,替换现有的theme_a文件夹.
这应该使您能够访问drupal的管理部分.