PHP 7.2にアップデートした時Tiny Tiny RSSがrequires mcrypt functions which are not foundとエラーを出す時の対処法
PHP 7.2でmcryptモジュールは削除されました.
PHP: PHP 7.1.x で推奨されなくなる機能 - Manual
よってこれまでmcryptでフィードを暗号化していたTiny Tiny RSSでは以下のようなエラーが出ます.
Tiny Tiny RSS was unable to start properly. This usually means a misconfiguration or an incomplete upgrade.
Please fix errors indicated by the following messages:
* FEED_CRYPT_KEY requires mcrypt functions which are not found.
You might want to check tt-rss wiki or the forums for more information.
Please search the forums before creating new topic for your question.
これを解決するには以下に書いてある手順を実行します.
TT-RSS broken after PHP update to version 7.2 (Arch Linux) - Tiny Tiny RSS: Community
/var/www/localhost/htdocs/tt-rssのようなTiny Tiny RSSがインストールされているディレクトリに移動する- ディレクトリのパーミッションを適切に設定する
sudo chmod -R 777 cache/images cache/js feed-icons lockのような感じ php update.php --decrypt-feedsを実行するconfig.phpのFEED_CRYPT_KEYをdefine('FEED_CRYPT_KEY', '');のように空文字に設定する
これでupdate_daemon2.phpがこれまで通り正常に動いてくれるようになります.
フィードが暗号化されなくなるので要注意. とは言ってももう暗号化する方法がサポートされていないので仕方がないのですが.
そもそも受信したフィードが暗号化されてて嬉しいのか謎. 私は見られても困らないので嬉しくない. 何故設定していたのか完全に謎.
hatena-bookmark