ラボ > FuelPHP:auth関連、基本情報関連、エラー絡み

FuelPHP 「Crypto key error」ってのが出てきた

インストして確認しつつ設定していったら「Crypto key error」ってのが出てきた。

作成日:2018-08-03, 更新日:2018-08-03

経緯とエラー

FuelPHPをサーバにupして一つずつ設定(参照:FuelPHPをインストしたあとの各設定類)。
その後、適当なページを作成して確認。
すると「Crypto key error」という見慣れないエラーページが表示された。

Crypto key error

No write access to APPPATH/config/crypt.php.

The FuelPHP crypto functions require a set of unique and truelly random crypto keys. These keys are automatically generated and written to the crypto configuration file the first time the application accesses a crypto function.

Please copy the following code into APPPATH/config/crypt.php manually:

      <?php
      /**
       * Part of the Fuel framework.
      ~ 以下、略 ~

※fuelPHPのバージョン:1.8

要はこのページに表示されたPHPソースをコピって「APPPATH/config/crypt.php」を作れってコトらしい。
※coreのどっかにいるわけでは無いので、新規で「APPPATH/config/crypt.php」を作ればいいみたい。

メモ

「Crypto」っていうから、きっと暗号絡み・・・auth認証のトコで何かあるんだろうね。

関連項目

FuelPHPをインストしたあとの各設定類