简体   繁体   English

WSOD即将开启drupal 7项目的第一页

[英]WSOD coming on opening the 1st page of drupal 7 project

I have checked tail -n 20 /Applications/MAMP/logs/php_error.log . 我检查了tail -n 20 /Applications/MAMP/logs/php_error.log No errors in log. 日志中没有错误。 I am using MAMP. 我正在使用MAMP。

Also I have added 我还补充说

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);  

in index.php . index.php

My memory limit in php.ini is 我在php.ini中的内存限制是

memory_limit = 512M 

Any suggestions? 有什么建议么?

Maybe you have to enable clean URLs? 也许你必须启用干净的URL? Add this to .htaccess file: 将此添加到.htaccess文件:

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>

Try to look at drupal's log. 试着看看drupal的日志。 With drush: 随着匆匆:

  • drush en dblog drush en dblog
  • drush ws
  1. Error log was not coming because i was adding code in index.php, it should have been added at the end of the settings.php file: 错误日志未来,因为我在index.php中添加代码,它应该已经添加到settings.php文件的末尾:

    error_reporting(E_ALL); 使用error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_errors',TRUE); ini_set('display_startup_errors', TRUE); ini_set('display_startup_errors',TRUE);

  2. After i checked logs, there were normal warnings. 检查完日志后,发出正常警告。 After that i enabled drush & it showed database is being connected but parameters are wrong. 之后我启用了drush并显示数据库正在连接但参数错误。 Removing $database array from settings.php file and then installing like a fresh vanilla instance solved the issue. 从settings.php文件中删除$ database数组,然后像新鲜的vanilla实例一样安装解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PostgreSQL访问记录的第一元素 - PostgreSQL accessing the 1st element of the record Postgres 按事件组中的第一个事件排序 - Postgres order by 1st event in group of events 查询以找到3个时间戳(ts),其中第1个最接近给定的ts,另2个最接近第一个找到的ts - query to find 3 timestamps(ts) with 1st closest to the given ts and 2 closest to the 1st that was found Heroku-每个月的第一天更新db列 - Heroku - Update db column each 1st of the month 即使使用索引,第一次运行的查询也非常慢 - Extremely slow query on 1st run, even with indexes 如何获取 PostgreSQL 中每个组的第一和第二条记录 - How to get the 1st and 2nd records for each group in PostgreSQL SQL 查询:第2个子句是否被第1个子句过滤? - SQL Query: is 2nd clause filtered by 1st clause? PostgreSQL自定义周数 - 包含2月1日的第一周 - PostgreSQL custom week number - first week containing Feb 1st 如何在postgres中选择当月的第一天和下个月的第一天(从当月开始) - How do I select between 1st day of the current month and the 1st day of the following month (from current month) in postgres 我有两个表,第一个国家/地区第二个国家/地区使用ST_来查询该州是否位于该国家/地区内 - I have two tables, 1st country 2nd is state queried using ST_contains the state lies within the country or not
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM