[FileMaker][PHP] PHP Site Assistantで生成したサイトでPHPのNoticeが出る対処
FileMaker Server 11 の PHP Site Assistant で生成したサイトで、部分的にこんなNoticeが表示される場合がある。
Notice: Only variable references should be returned by reference 〜〜 LayoutImpl.php
どうもPHPのバージョンによる問題のようで、FileMakerのAPIはPHP4で書かれていてWebサーバ側がPHP5だと起きるのかな?と思われる。
あれー、でもFileMakerServerのディレクトリ配下にPHPが含まれてるし、バージョン違いでの問題なんてあるのかなぁと腑に落ちない点もあるものの、以下の対処でとりあえず回避できた(と思う)。
C:\Program Files (x86)\FileMaker\FileMaker Server\Web Publishing\publishing-engine\php\FileMaker\Implementation\LayoutImpl.php (深い)
の37行目あたりを書き換える
return $Vcb5e100e =& new FileMaker_Error($this->_fm, 'Field Not Found'); ↓↓ $ret = $Vcb5e100e =& new FileMaker_Error($this->_fm, 'Field Not Found'); return $ret;