Bug(バグ) #4187
Task(タスク) #4112: PHP7対応のための修正を行う
Class 'sfPearRest13' not found のエラーによりプラグインのインストールに失敗する
Start date:
2020-04-01
Due date:
% Done:
100%
3.6 で発生するか:
No (いいえ)
3.8 で発生するか:
No (いいえ)
Description
master ブランチ (8cbcdac4) にて、opPlugin:install タスクを実行すると一部のプラグインで Fatal error により異常終了する問題が起きている。
$ php symfony opPlugin:install opTimelinePlugin -r 1.2.6.1 PHP Warning: Declaration of sfPearRest::downloadHttp($url, $lastmodified = NULL, $accept = false) should be compatible with PEAR_REST::downloadHttp($url, $lastmodified = NULL, $accept = false, $channel = false) in /vagrant/lib/vendor/symfony/lib/plugin/sfPearRest.class.php on line 30 PHP Notice: Only variables should be passed by reference in /vagrant/lib/vendor/symfony/lib/plugin/sfSymfonyPluginManager.class.php on line 186 PHP Notice: Only variables should be passed by reference in /vagrant/lib/plugin/opPluginManager.class.php on line 220 >> plugin installing plugin "opTimelinePlugin" PHP Warning: Declaration of opPluginDownloader::getDependency2Object(&$c, $i, $p, $s) should be compatible with & PEAR_Downloader::getDependency2Object(&$c, $i, $p, $s) in /vagrant/lib/plugin/opPluginDownloader.class.php on line 18 >> sfPearFrontendPlugin downloading opTimelinePlugin-1.2.6.1.tgz ... >> sfPearFrontendPlugin Starting to download opTimelinePlugin-1.2.6.1.tgz (235,547 >> sfPearFrontendPlugin bytes) >> sfPearFrontendPlugin . [...] >> sfPearFrontendPlugin . >> sfPearFrontendPlugin ...done: 235,547 bytes >> sfPearFrontendPlugin WARNING: channel "plugins.openpne.jp" has updated its >> sfPearFrontendPlugin protocols, use "pear channel-update plugins.openpne.jp" to >> sfPearFrontendPlugin update PHP Fatal error: Uncaught Error: Class 'sfPearRest13' not found in /vagrant/lib/vendor/symfony/lib/plugin/sfPearConfig.class.php:27 Stack trace: #0 /vagrant/lib/vendor/PEAR/PEAR/Downloader.php(1022): sfPearConfig->getREST('1.3', Array) #1 /vagrant/lib/vendor/PEAR/PEAR/Downloader/Package.php(637): PEAR_Downloader->_getDepPackageDownloadUrl(Array, Array) #2 /vagrant/lib/vendor/PEAR/PEAR/Downloader/Package.php(466): PEAR_Downloader_Package->_detect2Dep(Array, Array, 'required', Array) #3 /vagrant/lib/vendor/PEAR/PEAR/Downloader/Package.php(380): PEAR_Downloader_Package->_detect2(Array, Array, Array, Array) #4 /vagrant/lib/vendor/PEAR/PEAR/Downloader.php(412): PEAR_Downloader_Package->detectDependencies(Array) #5 /vagrant/lib/vendor/symfony/lib/plugin/sfPluginManager.class.php(207): PEAR_Downloader->download(Array) #6 /vagrant/lib/vendor/symfony/lib/plugin/sfPluginManager.class.php(112): sfPluginManager->doInstallPlugin('opTimelinePlugi...', Array) #7 /vagrant/lib/vendor/symfony/lib/task/plugin/sfPluginInstallTask.class.php(122): in /vagrant/lib/vendor/symfony/lib/plugin/sfPearConfig.class.php on line 27
Subtasks
History
#1 Updated by Youichi Kimura over 7 years ago
- Tracker changed from Task(タスク) to Bug(バグ)
- 3.6 で発生するか set to No (いいえ)
- 3.8 で発生するか set to No (いいえ)
#2 Updated by Youichi Kimura over 7 years ago
lib/plugin/sfPearRest13.class.php
に以下の内容のファイルを配置する事でインストールに成功することを確認:
<?php
require_once 'PEAR/REST/13.php';
class sfPearRest13 extends PEAR_REST_13
{
public function __construct($config, $options = array())
{
$class = isset($options['base_class']) ? $options['base_class'] : 'sfPearRest';
$this->_rest = new $class($config, $options);
}
}
#3 Updated by kaoru n over 4 years ago
- Target version changed from OpenPNE 3.9.0 to OpenPNE 3.10.x
#4 Updated by kaoru n over 4 years ago
- Priority changed from Normal(通常) to High(高め)
#5 Updated by kaoru n over 4 years ago
- Target version changed from OpenPNE 3.10.x to OpenPNE 3.11.x
#6 Updated by kaoru n over 4 years ago
- Status changed from New(新規) to Pending Review(レビュー待ち)
- Assignee changed from Youichi Kimura to kaoru n
- % Done changed from 0 to 50
https://github.com/openpne/OpenPNE3/pull/593
にてプルリクエストしました
#7 Updated by Rimpei Ogawa over 4 years ago
- Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
- % Done changed from 50 to 70
#8 Updated by isao sano over 4 years ago
- Status changed from Pending Testing(テスト待ち) to Pending Merge(マージ待ち)
- % Done changed from 70 to 80
試験完了しました。
問題ありません。
#9 Updated by kaoru n over 4 years ago
- Status changed from Pending Merge(マージ待ち) to Fixed(完了)
- % Done changed from 80 to 100
マージしました