蜻蜓短视频系统-文件上传之本地上传报错问题解决-蜻蜓Q蜻蜓s蜻蜓系统上传采用本地上传报错
蜻蜓系统有本地上传方式和云储存上传方式,云方式比较常用是不会有错的,本地上传方式可能会遇到这样的报错。

报错1
Class ‘League\Flysystem\Adapter\Local‘ not found
解决为:
安装Flysystem:
composer require league/flysystem
如安装继续提示报错:
报错2

[ErrorException] pcntl_signal() has been disabled for security reasons
pcntl_signal函数被禁用,打开它。
宝塔直接在禁用函数中删除:

完事儿继续composer require league/flysystem
报错3
接下来可能会

Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108872 bytes) in phar:///usr/bin/composer/src/Composer/DependencyResolver/RuleSet.php on line 83
原因是内存不够,打开 php.ini 配置 , memory_limit 配置项
将 memory_limit=128M 改为 -1
完事儿继续composer require league/flysystem
 提示这样以后基本就ok了
如果还有报错 执行
composer self-update
如果提示

那么继续执行
composer require league/flysystem
如果报错如下:
Problem 1 - intervention/image is locked to version 2.5.1 and an update of this package was not requested. - intervention/image 2.5.1 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP’s fileinfo extension. Problem 2 - laravel/framework is locked to version v6.18.20 and an update of this package was not requested. - laravel/framework v6.18.20 requires league/flysystem ^1.0.34 -> found league/flysystem[1.0.34, …, 1.x-dev] but it conflicts with your root composer.json require (^2.3). Problem 3 - laravel/framework v6.18.20 requires league/flysystem ^1.0.34 -> found league/flysystem[1.0.34, …, 1.x-dev] but it conflicts with your root composer.json require (^2.3). - facade/ignition 1.16.1 requires illuminate/support ~5.5.0 || ~5.6.0 || ~5.7.0 || ~5.8.0 || ^6.0 -> satisfiable by laravel/framework[v6.18.20]. - facade/ignition is locked to version 1.16.1 and an update of this package was not requested.
To enable extensions, verify that they are enabled in your .ini files: - /www/server/php/73/etc/php.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. You can also try re-running composer require with an explicit version constraint, e.g. “composer require league/flysystem:*” to figure out if any version is installable, or “composer require league/flysystem:^2.1” if you know which you need.

那么 继续解决:
先在配置中打开fileinfo 扩展,并且重启PHP服务,再次执行会发现少了一个问题

继续 后面2个问题。
又经过了各种折腾,最终得出,就是版本问题。
执行
composer require league/flysystem:*
解决问题。
现在我们来上传一个视频测试:

上传成功,不过这里还有一个错误是关于 缩略图裁剪失败。
本部分原因是我们禁用了ffmpg的裁剪部分,

需要开启 需要安装ffmpg ,但是 友情提示,目前因为已经依赖了composer的 这个上传依赖,如果再去用ffmpg可能会有未知问题。
YYC松鼠短视频系统 采用ffmpg 未采用composer 可正常使用,并且使用转码和打水印功能。
|