Konuya resim yüklemeye çalıstıgımda bir sorunla karşılastık hatası veriyor ve resimi yüklemiyor admincp'dede resimde gibi bir hata gozukuyor
Hata içeriği
Hata içeriği
Kod:
ErrorException: [E_WARNING] fopen(/home/pesfm/public_html/internal_data/attachments/0/760-b0514650892c4a1c781abdea26eb2cab.data): failed to open stream: Permission denied
src/vendor/league/flysystem/src/Adapter/Local.php:151
Tarafından: Journey
6 Tem 2019 21:28'de
Yığın izleme
#0 [internal function]: XF::handlePhpError(2, 'fopen(/home/pes...', '/home/pesfm/pub...', 151, Array)
#1 src/vendor/league/flysystem/src/Adapter/Local.php(151): fopen('/home/pesfm/pub...', 'w+b')
#2 src/vendor/league/flysystem/src/Filesystem.php(121): League\Flysystem\Adapter\Local->writeStream('attachments/0/7...', Resource id #97, Object(League\Flysystem\Config))
#3 [internal function]: League\Flysystem\Filesystem->putStream('attachments/0/7...', Resource id #97, Array)
#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 [internal function]: League\Flysystem\EventableFilesystem\EventableFilesystem->putStream('attachments/0/7...', Resource id #97, Array)
#8 src/vendor/league/flysystem/src/MountManager.php(269): call_user_func_array(Array, Array)
#9 src/vendor/league/flysystem/src/MountManager.php(179): League\Flysystem\MountManager->invokePluginOnFilesystem('putStream', Array, 'internal-data')
#10 src/XF/Util/File.php(101): League\Flysystem\MountManager->__call('putStream', Array)
#11 src/XF/Util/File.php(101): League\Flysystem\MountManager->putStream('internal-data:/...', Resource id #97, Array)
#12 src/XF/Service/Attachment/Preparer.php(75): XF\Util\File::copyFileToAbstractedPath('/tmp/phpZZrS00', 'internal-data:/...')
#13 src/XF/Service/Attachment/Preparer.php(16): XF\Service\Attachment\Preparer->insertDataFromFile(Object(XF\FileWrapper), 1, Array)
#14 src/XF/Attachment/Manipulator.php(171): XF\Service\Attachment\Preparer->insertAttachment(Object(XF\Attachment\Post), Object(XF\FileWrapper), Object(XF\Entity\User), '3686819f340359f...')
#15 src/XF/Pub/Controller/Attachment.php(88): XF\Attachment\Manipulator->insertAttachmentFromUpload(Object(XF\Http\Upload), NULL)
#16 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Attachment->actionUpload(Object(XF\Mvc\ParameterBag))
#17 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('XF:Attachment', 'upload', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Attachment), NULL)
#18 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(1934): XF\Mvc\Dispatcher->run()
#20 src/XF.php(333): XF\App->run()
#21 index.php(13): XF::runApp('XF\\Pub\\App')
#22 {main}
Durum isteği
array(4) {
["url"] => string(87) "/attachments/upload?type=post&context[node_id]=99&hash=3686819f340359f0ba88f6ccebdbde94"
["referrer"] => string(51) "https://www.pesfm.com/forums/yamalar.99/post-thread"
["_GET"] => array(3) {
["type"] => string(4) "post"
["context"] => array(1) {
["node_id"] => string(2) "99"
}
["hash"] => string(32) "3686819f340359f0ba88f6ccebdbde94"
}
["_POST"] => array(3) {
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
["_xfWithData"] => string(1) "1"
}
}
Son düzenleme: