[英]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: 随着匆匆:
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);
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.