SonataMediaProviderVideoBundleとそれに関連するすべてのものをインストールしました。SonataMediaBundle SonataMediaProviderVideoBundle引数1はFFMpeg FFProbe :: __ construct()に渡され、FFProbeDriverインスタンス、配列が指定されている必要があります
私はソナタのメディアのバックエンドを介してビデオをアップロードしようとすると、私は(SF 3.1.5)このエラーを持っている:
Catchable Fatal Error: Argument 1 passed to FFMpeg\FFProbe::__construct() must be an instance of FFMpeg\Driver\FFProbeDriver, array given, called in D:\wamp\www\test-sf3\TestSonata\var\cache\dev\appDevDebugProjectContainer.php
配列はproviders.ymlラインから41 https://github.com/xmon/SonataMediaProviderVideoBundle/blob/master/Resources/config/providers.yml
を取られますそしてここにFFMpeg \ Driver \ FFProbeDriverのインスタンスを47行目で待つ__constructがあります:git hub - > PHP-FFMpeg/PHP-FFMpeg/blob/master/src/FFMpeg/FFProbe.php
ここは私ですスタックトレース:
見つかっ0Exception detected!
Catchable Fatal Error: Argument 1 passed to FFMpeg\FFProbe::__construct() must be an instance of FFMpeg\Driver\FFProbeDriver, array given, called in D:\wamp\www\test-sf3\TestSonata\var\cache\dev\appDevDebugProjectContainer.php on line 10246 and defined
500 Internal Server Error - ContextErrorException
Stack Trace
in vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php at line 47 -
/** @var MapperInterface */
private $mapper;
public function __construct(FFProbeDriver $ffprobe, Cache $cache)
{
$this->ffprobe = $ffprobe;
$this->optionsTester = new OptionsTester($ffprobe, $cache);
at ErrorHandler ->handleError ('4096', 'Argument 1 passed to FFMpeg\FFProbe::__construct() must be an instance of FFMpeg\Driver\FFProbeDriver, array given, called in D:\wamp\www\test-sf3\TestSonata\var\cache\dev\appDevDebugProjectContainer.php on line 10246 and defined', 'D:\wamp\www\test-sf3\TestSonata\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php', '47', array())
in vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php at line 47 +
at FFProbe ->__construct (array('ffmpeg.binaries' => 'D:/wamp/bin/ffmpeg/bin/ffmpeg.exe', 'ffprobe.binaries' => 'D:/wamp/bin/ffmpeg/bin/ffprobe.exe'), object(Logger))
in var\cache\dev\appDevDebugProjectContainer.php at line 10246 +
at appDevDebugProjectContainer ->getXmonFfmpeg_FfprobeService (false)
in var\cache\dev\appDevDebugProjectContainer.php at line 10237 +
at appDevDebugProjectContainer ->{closure} (null, object(FFMpegFFProbe_0000000055a8e24d00000000163507555ab0ef05b0b9e546824f0bb3e27d88c9), 'streams', array('pathfile' => 'D:\wamp\tmp\phpA9E3.tmp'), object(Closure))
in var\cache\dev\appDevDebugProjectContainer.php at line 13430 +
at Closure ->__invoke (null, object(FFMpegFFProbe_0000000055a8e24d00000000163507555ab0ef05b0b9e546824f0bb3e27d88c9), 'streams', array('pathfile' => 'D:\wamp\tmp\phpA9E3.tmp'), object(Closure))
in var\cache\dev\appDevDebugProjectContainer.php at line 13430 +
at FFMpegFFProbe_0000000055a8e24d00000000163507555ab0ef05b0b9e546824f0bb3e27d88c9 ->streams ('D:\wamp\tmp\phpA9E3.tmp')
in vendor\xmon\sonata-media-provider-video-bundle\Xmon\SonataMediaProviderVideoBundle\Provider\VideoProvider.php at line 142 +
at VideoProvider ->doTransform (object(Media))
in var\cache\dev\classes.php at line 17962 +
at BaseProvider ->transform (object(Media))
in vendor\sonata-project\media-bundle\Form\DataTransformer\ProviderDataTransformer.php at line 97 +
at ProviderDataTransformer ->reverseTransform (object(Media))
in vendor\symfony\symfony\src\Symfony\Component\Form\Form.php at line 1057 +
at Form ->normToModel (object(Media))
in vendor\symfony\symfony\src\Symfony\Component\Form\Form.php at line 633 +
at Form ->submit (array('providerName' => 'sonata.media.provider.video', 'thumbnailCapture' => '5', 'category' => '1', '_token' => 'CIunMwS122qjpqflpF4LSQH21TTztAPc0yeSHKtyuwE', 'binaryContent' => object(UploadedFile)), true)
in vendor\symfony\symfony\src\Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler.php at line 113 +
at HttpFoundationRequestHandler ->handleRequest (object(Form), object(Request))
in vendor\symfony\symfony\src\Symfony\Component\Form\Form.php at line 488 +
at Form ->handleRequest (object(Request))
in vendor\sonata-project\admin-bundle\Controller\CRUDController.php at line 504 +
at CRUDController ->createAction()
in vendor\sonata-project\media-bundle\Controller\MediaAdminController.php at line 39 +
at MediaAdminController ->createAction (object(Request))
at call_user_func_array (array(object(MediaAdminController), 'createAction'), array(object(Request)))
in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php at line 153 +
at HttpKernel ->handleRaw (object(Request), '1')
in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php at line 68 +
at HttpKernel ->handle (object(Request), '1', true)
in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php at line 169 +
at Kernel ->handle (object(Request))
in web\app_dev.php at line 30 +
、画像を投稿し、正しくフォーマットさテキストとしてスタックトレースを貼り付けていません(コード)pls – pedrorijo91