博尔特:升级到2.2beta后出现空白屏幕

时间:2015-05-14 16:34:45

标签: bolt-cms

我试图访问网站的所有部分(后面和前面)时出现空白屏幕。这是错误日志:

PHP Catchable fatal error:  Argument 1 passed to Bolt\\Content::setValues() must be of the type array, null given, called in /var/www/html/feral/src/Content.php on line 410 and defined in /var/www/html/feral/src/Content.php on line 245, referer: http://localhost/feral/

这是主题的config.yml:

templatefields:
    templates/home.twig:
        subheading:
            type: text
        feature_section_heading:
            type: text
        feature_section_text:
            type: textarea

1 个答案:

答案 0 :(得分:0)

/src/Content.php,第406行,更改:

if ($unserdata !== false) {

为:

if ($unserdata !== false && is_array($unserdata)) {

我还无法重现它,所以这是未经测试的。