xjvf
V2EX  ›  macOS

OS X el captain (10.11.4) 下装 flarum 用的 PHP 7 报错了

  •  
  •   xjvf · Feb 25, 2016 · 3394 views
    This topic created in 3907 days ago, the information mentioned may be changed or developed.

    目前已有

    $ php -v

    PHP 7.0.3 (cli) (built: Feb 6 2016 03:16:24) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

    $ brew --version
    Homebrew 0.9.5 (git revision ecba1; last commit 2016-02-23)

    $ httpd -v
    Server version: Apache/2.4.18 (Unix)
    Server built: Feb 12 2016 16:50:38

    $ mysql --version
    mysql Ver 15.1 Distrib 10.1.11-MariaDB, for osx10.11 (x86_64) using readline 5.1

    现在的环境出现下面这个错误是咋回事儿

    Notice: Undefined property: stdClass::$data in /Users/my-username/Sites/vendor/flarum/core/src/Http/Controller/ClientView.php on line 326

    需要看我的 httpd.conf 和 httpd-vhosts.conf 吗?

    3 replies  •  2016-02-25 17:56:40 +08:00
    blogcool
    blogcool
    Feb 25, 2016
    1
    是 php 代码的问题,和 apache 无关吧, Notice 的提示可以关了。
    qqjt
    qqjt
    Feb 25, 2016
    2
    flarum 不支持 php7
    xjvf
    xjvf
    OP
    Feb 25, 2016
    3
    @qqjt 握了棵草。。。感谢回复
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4556 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 05:43 · PVG 13:43 · LAX 21:43 · JFK 00:43
    ♥ Do have faith in what you're doing.