Closed (fixed)
Project:
Streaming
Version:
1.2.0
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
25 Apr 2022 at 03:04 UTC
Updated:
22 Jul 2024 at 07:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ksandr commentedComment #3
ksandr commentedComment #4
ksandr commentedComment #5
arturopanettaHi ksandr,
I am trying to reproduce the error, without success. Can you tell me the steps to be able to reproduce it?
Comment #6
sundays commentedI'm having the same issue.
Brand new Drupal 9.4 install via composer with PHP 7.4.
I've only installed a couple of other modules such as Pathauto and Devel.
Followed instructions at https://www.drupal.org/project/streaming but I got this error when trying to add a media item => Streaming Video.
Notice: Undefined index: third_party_settings in Drupal\file\Plugin\Field\FieldWidget\FileWidget::create() (line 43 of /home/ppl/healthflix/web/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php)
And also:
TypeError: Argument 5 passed to Drupal\file\Plugin\Field\FieldWidget\FileWidget::__construct() must be of the type array, null given, called in /home/ppl/healthflix/web/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php on line 43 in Drupal\file\Plugin\Field\FieldWidget\FileWidget->__construct() (line 34 of /home/ppl/healthflix/web/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php)
I can provide the full call stack if that would help.
Thanks
Comment #7
arturopanettaThanks @sundays, the information you have provided allows me to investigate the problem. As soon as I can I try to reproduce the error.
Comment #9
arturopanettaI was able to reproduce the problem and found a solution. The error was caused by an incorrect configuration of the "Streaming Media Views" submodule.
I have set the status of this problem to "Needs revision", if there are no particular problems in a week I will release the new version with the fix.
Thanks <3
Comment #10
arturopanettaComment #11
sundays commentedThank you Arturo.
However, I applied your patch, uninstalled "Streaming Media Views", re-installed it and got an error when trying to add media:
The website encountered an unexpected error. Please try again later.
TypeError: Argument 5 passed to Drupal\file\Plugin\Field\FieldWidget\FileWidget::__construct() must be of the type array, null given, called in /home/ppl/healthflix/web/core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php on line 43 in Drupal\file\Plugin\Field\FieldWidget\FileWidget->__construct() (line 34 of core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php).
And this warning:
Notice: Undefined index: third_party_settings in Drupal\file\Plugin\Field\FieldWidget\FileWidget::create() (line 43 of core/modules/file/src/Plugin/Field/FieldWidget/FileWidget.php).
I did noticed that even after uninstalling "Streaming Media Views", the "Streaming video" option is still listed in the "Add media item" (/media/add). I don't know if it was already there with a clean Drupal or if I need to delete anything else for this patch to have impact.
Could you help? Thank you again.
Comment #12
arturopanettaHi sundays,
I did a test with a clean install of drupal, and everything went ok.
I have used: php 8.1, drupal 9.4.1, php_ffmpeg 0.18, drupal/php_ffmpeg:latest.
With a clean install it goes.
The "Streaming video" type is added by the "Streaming media views" module. True, you can remove it before applying the patch, otherwise the configuration remains dirty:
I'll wait for news if it works for you.
Thank :)
Comment #13
sundays commentedI don't want to start with a clean install again but I found a way!
I just needed to go to admin/structure/media and delete the Streaming video type that was there, even after uninstalling the "Streaming media views" module.
After I re-installed, everything went fine and transcoding worked.
Thanks!
Comment #14
queenvictoria commentedHey that's good news arturopanetta thank you. I'll also test it in the next few days.
Hey I wanted to contribute a patch but I haven't done that in the be gitlab flow. I don't seem to be able to fork the repository. Do you have any tips?
Comment #15
arturopanetta@sundays Glad it works without reinstalling.
@queenvictoria Yes, the right way to fork an issue in gitlab is to use the green "Create issue fork" button at the top of the discussion.
Comment #16
queenvictoria commentedThat works for me thanks @arturopanetta
Comment #17
rossio commentedHello, I have the same problem, I am working localhost with xampp, on Windows 11.
Drupal Version 9.4.15, php 8.1.25, phpffmeg Version: 8.x-1.1, streaming Version: 1.2.0. I applied the patch previously uninstalling de module removing Streaming Video type. It still gives me the blank screen. The only thing that I am missing is the ffmpeg settings, I left the paths blank following the note:"Leave empty if the binary is located within system PATH." Please advise
Comment #18
arturopanettaFixed on 2.x