Php/fuelphp/バージョンアップ
fuelphp1.9へバージョンアップ
ja_JP.UTF-8なエラーが起こる場合
エラー詳細
Fuel\Core\PhpErrorException [ Fatal Error ]: The configured locale(s) "ja_JP.UTF-8" can not be found on your system.
以下インストール対応
sudo dnf install -y glibc-langpack-ja
ja_JP.UTF-8なエラーが起こる場合(ページ更新で出たり出なかったり)
fuel/app/config/config.php
- 'locale' => 'ja_JP.UTF-8', + 'locale' => 'ja_JP.utf8',
array_key_existsエラーが起こる場合
エラー詳細
Fuel\Core\PhpErrorException [ Runtime Deprecated code usage ]: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead DOCROOT/index.php @ line 66
対応方法
修正前
array_key_exists($route, Router::$routes)
修正後
$route = $route ?? '';
$route = array_key_exists($route, Router::$routes)
? Router::$routes[$route]->translation
: Config::get('routes.'.$route);
fuelphp1.8.2へバージョンアップ
composer.json
"require": {
"php": ">=5.3.3",
"composer/installers": "~1.0",
"fuel/docs": "1.7.*",
"fuel/core": "1.7.*",
"fuel/auth": "1.7.*",
"fuel/email": "1.7.*",
"fuel/oil": "1.7.*",
"fuel/orm": "1.7.*",
"fuel/parser": "1.7.*",
"fuelphp/upload": "2.0.2",
"monolog/monolog": "1.5.*",
"phpseclib/phpseclib": "2.0.0",
"michelf/php-markdown": "1.4.0"
},
composer.json
"require": {
"php": ">=5.3.3",
"composer/installers": "~1.0",
"fuel/docs": "1.8.*",
"fuel/core": "1.8.*",
"fuel/auth": "1.8.*",
"fuel/email": "1.8.*",
"fuel/oil": "1.8.*",
"fuel/orm": "1.8.*",
"fuel/parser": "1.8.*",
"fuelphp/upload": "2.0.2",
"monolog/monolog": "1.5.*",
"phpseclib/phpseclib": "2.0.0",
"michelf/php-markdown": "1.4.0"
},
バージョンアップ
composer update