Fixed Unable to upload media. Server Error.

51463

Well-known member
I am unable to upload media after upgrade. I get a server error message

server error.webp



I looked in my server errors and this is what i get.


Code:
ErrorException: copy(/home/website/public_html/internal_data/attachments/0/0-.data): failed to open stream: No such file or directory - library/XenGallery/Model/Watermark.php:161
Generated By: testuser, A moment ago


Stack Trace

#0 [internal function]: XenForo_Application::handlePhpError(2, 'copy(/home/website...', '/home/website...', 161, Array)
#1 /home/website/public_html/library/XenGallery/Model/Watermark.php(161): copy('/home/website...', '/home/website...')
#2 /home/website/public_html/library/XenGallery/DataWriter/Media.php(382): XenGallery_Model_Watermark->addWatermarkToImage(Array)
#3 /home/website/public_html/library/XenForo/DataWriter.php(1409): XenGallery_DataWriter_Media->_postSave()
#4 /home/website/public_html/library/XenGallery/ControllerPublic/Media.php(3028): XenForo_DataWriter->save()
#5 /home/website/public_html/library/XenGallery/ControllerPublic/Media.php(2821): XenGallery_ControllerPublic_Media->_associateAttachmentsAndMedia(Array, Array, Array)
#6 /home/website/public_html/library/XenForo/FrontController.php(347): XenGallery_ControllerPublic_Media->actionSaveMedia()
#7 /home/website/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/website/public_html/index.php(13): XenForo_FrontController->run()
#9 {main}


Request State

array(3) {
  ["url"] => string(37) "http://website.com/media/save-media"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(14) {
    ["type"] => string(5) "album"
    ["album_id"] => string(8) "136.test"
    ["image_upload_type"] => string(6) "upload"
    ["image_upload"] => array(1) {
      [3888] => array(6) {
        ["media_title"] => string(5) "Koala"
        ["media_description"] => string(0) ""
        ["tags"] => string(0) ""
        ["media_tag"] => string(0) ""
        ["media_embed_url_original"] => string(0) ""
        ["media_embed_url"] => string(0) ""
      }
    }
    ["media_image_upload"] => string(4) "true"
    ["media_"] => string(4) "true"
    ["image_upload_hash"] => string(32) "db5be4b7b8043b822a36e03e17c05ca3"
    ["container_type"] => string(5) "album"
    ["container_id"] => string(3) "136"
    ["_xfConfirm"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(10) "/media/add"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}




Does it have something to do with the watermark?
I checked the settings and they are still there, i haven't changed anything.
It is MG 1.1
 
Last edited:
With watermarks disabled. They upload with no problem.

With watermarks enabled, i keep getting a server error
 
Back
Top Bottom