■ユーザーズフォーラム リニューアルのお知らせ
新規投稿は新ユーザーズフォーラムにお願いします。

baserCMS の4.0.2.1のインストール時に、Illegal string offset 'Content' 等の警告がでる

flower4487 > baserCMS の4.0.2.1のインストール時に、Illegal string offset 'Content' 等の警告がでる @ 2017/3/16 17:22
本日、たまたま最新版のbaserCMS 4.0.2.1 をダウンロードしてインストールしようとしたら、

Warning (2): Illegal string offset 'Content' [CORE/Baser/Model/Behavior/BcUploadBehavior.php, line 106]

Warning (2): Illegal string offset 'Content' [CORE/Baser/Model/Behavior/BcUploadBehavior.php, line 111]

Warning (2): Illegal string offset 'EditorTemplate' [CORE/Baser/Model/Behavior/BcUploadBehavior.php, line 106]

Warning (2): Illegal string offset 'EditorTemplate' [CORE/Baser/Model/Behavior/BcUploadBehavior.php, line 111]


というようなエラーがでました。PHPは、7.1.1, SQLite 3.15.1 です。
原因は、BcUploadBehavior.php の $savePathプロパティ変数が配列ではなく文字列なのが原因のようです。

% diff -u BcUploadBehavior.php.orig BcUploadBehavior.php
--- BcUploadBehavior.php.orig   2017-03-16 16:38:26.750626000 +0900
+++ BcUploadBehavior.php        2017-03-16 16:43:09.809059000 +0900
@@ -50,7 +50,7 @@
  *
  * @var string
  */
-       public $savePath = '';
+       public $savePath = array();

 /**
  * 設定


PHP5.3以前ではうごいていたのかもしれませんが、5.4移行は警告がでるのかしもれません。
修正された方がいいと思います。

以上、報告いたします。

■ BaserCMSのバージョン: 4.0.2.1
■ PHPのバージョン: 7.1.1
■ 設置フォルダ: ドキュメントルート
■ PHPスキル(自己評価): C
■ OSの種類: FreeBSD 10.3

ログイン
ユーザー名:
パスワード:


  新規登録 / パスワード紛失

検索

facebook
フォーラムで悩みが解決した場合など、よかったら「いいね!」をポチっとクリックしてください!質問の回答者や開発者の励みになります

フォーラムガイド


関連リンク

オンライン状況
26 人のユーザが現在オンラインです。 (26 人のユーザが フォーラム を参照しています。)

登録ユーザ: 0
ゲスト: 26