Request Không upload được file.

Millegz

Private
Hiện tại mình đang thử web, nhưng khi mình upload ảnh hoặc file bất kì thì bị lỗi, không thể up được.
Ngoài ra mình có thấy thông báo lỗi như thế này :
1610774000042.png


#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] str...', '/home/vhosts/ww...', 159, Array)
#1 src/vendor/league/flysystem/src/Adapter/Local.php(159): stream_copy_to_stream(Resource id #132, Resource id #133)
#2 src/vendor/league/flysystem/src/Filesystem.php(122): League\Flysystem\Adapter\Local->writeStream('sitemaps/temp-s...', Resource id #132, Object(League\Flysystem\Config))
#3 [internal function]: League\Flysystem\Filesystem->putStream('sitemaps/temp-s...', Resource id #132, Object(League\Flysystem\Config))
#4 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(431): call_user_func_array('parent::putStre...', Array)
#5 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(395): League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod('putStream', Array)
#6 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(71): League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall('putStream', Array)
#7 src/vendor/league/flysystem/src/MountManager.php(615): League\Flysystem\EventableFilesystem\EventableFilesystem->putStream('sitemaps/temp-s...', Resource id #132, Array)
#8 src/XF/Util/File.php(185): League\Flysystem\MountManager->putStream('sitemaps/temp-s...', Resource id #132, Array)
#9 src/XF/Sitemap/Builder.php(409): XF\Util\File::copyFileToAbstractedPath('/home/vhosts/ww...', 'internal-data:/...')
#10 src/XF/Sitemap/Builder.php(85): XF\Sitemap\Builder->saveTempFile()
#11 src/XF/Job/Sitemap.php(25): XF\Sitemap\Builder->build(7.99475)
#12 src/XF/Job/Manager.php(258): XF\Job\Sitemap->run(7.99475)
#13 src/XF/Job/Manager.php(200): XF\Job\Manager->runJobInternal(Array, 7.99475)
#14 src/XF/Job/Manager.php(84): XF\Job\Manager->runJobEntry(Array, 7.99475)
#15 job.php(43): XF\Job\Manager->runQueue(false, 8)
#16 {main}

1610774105302.png


Xin hỏi các cao nhân có cách nào khắc phục không ạ ?
 
Bạn có dùng add-ons gì để hỗ trợ upload file, upload ảnh không vậy?
Không, mình chỉ dùng mỗi addon up ảnh qua add-pics, mình đã thử tạo khá nhiều website tương tự, điểm chung là nếu bị lỗi (mình đã nêu trên) thì sẽ không up được file, dù là mới tạo.
 
Mình đã tìm ra, vấn đề này là do lỗi của addons add-pics, bạn nâng cấp lên phiên bản 1.0.5 là hết ngay nhé!
 
Back
Top