【问题标题】:Getting WSOD on all Admin pages在所有管理页面上获取 WSOD
【发布时间】:2017-12-30 07:22:10
【问题描述】:

正如标题所说,我在进入任何管理页面时都会出现 WSOD(死机白屏)。这只是在我周一、周五到达时才开始发生的,一切正常。

这是我尝试过的

  1. 检查 php 设置:

    memory_limit    5000M   128M
    max_execution_time  600000000   600000000
    output_buffering    On  4096
    output_handler  mb_output_handler   no value
    Connection: 300 - Keep-Alive: 15
    default_socket_timeout  60
    memcache.default_timeout_ms 1000    1000
    mysql.connect_timeout 60 60
    
  2. 向 index.php 添加错误报告

    error_reporting(E_ALL);
    ini_set('display_errors', TRUE);
    ini_set('display_startup_errors', TRUE);
    
  3. 检查 drupal 看门狗和 apache 日志

    没有错误

  4. 检查网络服务器和数据库服务器上的磁盘空间

    充足的空间

  5. 运行命令以查找任何 PHP 错误

    find /data/ -type f -name "*.php" -exec php -l {} \; | grep -v 'No syntax errors'
    find /data/ -type f -name "*.inc" -exec php -l {} \; | grep -v 'No syntax errors'
    find /data/ -type f -name "*.module" -exec php -l {} \; | grep -v 'No syntax errors'
    

    错误:无

  6. 清空缓存表

    TRUNCATE TABLE cache; (anything that started with cache)
    
  7. 重新启动的网络服务器
  8. 禁用所有主题,仅启用花环主题并将其设置为默认

    update `system` set status = 0 where type = 'theme'
    UPDATE system SET status=1 WHERE name = 'garland';
    UPDATE variable SET value='s:7:"garland"' WHERE name = 'theme_default';
    Truncate cache tables
    
  9. 禁用所有模块并一次重新启用 1 个。我从用户模块开始,它在屏幕上显示有关系统模块的错误。我启用了系统模块,然后我又得到了 WSOD。

更新: 我将 admin_theme 变量设置为 garland。然后页面工作。当我去admin/build/themes 并启用marvin 时,我得到了WSOD。即使重新禁用 marvin 并清除缓存表,我仍然得到 WSOD。

【问题讨论】:

    标签: apache drupal-6 wsod


    【解决方案1】:

    对我来说导致它的问题是我有 _theme 函数,里面没有代码。

    function tf_cart_theme()
    {
      //
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-05
      • 1970-01-01
      • 2011-01-15
      • 1970-01-01
      • 2011-10-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多