Not a bug Argument 1 passed to XenGallery_Model_Album::prepareAlbum()

truonglv

Well-known member
I have some errors in Server Error Log.

Code:
ErrorException: Argument 1 passed to XenGallery_Model_Album::prepareAlbum() must be of the type array, boolean given, called in /*****/library/XenGallery/ControllerPublic/Media.php on line 2404 and defined - library/XenGallery/Model/Album.php:845
Generated By: ***** Sunday at 8:09 PM

#0 /****/library/XenGallery/Model/Album.php(845): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/home/nginx/dom...', 845, Array)
#1 /****/library/XenGallery/ControllerPublic/Media.php(2404): XenGallery_Model_Album->prepareAlbum(false)
#2 /*****/library/XenForo/FrontController.php(351): XenGallery_ControllerPublic_Media->actionPreviewVideo()
#3 /*****/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /****/index.php(13): XenForo_FrontController->run()
#5 {main}

Code:
array(3) {
  ["url"] => string(91) "http://nobita.me/index.php?xengallery/preview-video&_xfResponseType=json&media_id=undefined"
  ["_GET"] => array(3) {
    ["xengallery/preview-video"] => string(0) ""
    ["_xfResponseType"] => string(4) "json"
    ["media_id"] => string(9) "undefined"
  }
  ["_POST"] => array(7) {
    ["embed_url"] => string(43) "https://www.youtube.com/watch?v=7sxpKhIbr0E"
    ["container_type"] => string(0) ""
    ["container_id"] => string(1) "0"
    ["_xfRequestUri"] => string(30) "/groups/media/add?group_id=110"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}

Hope that is enough :)
 
Could it be something to do with your groups add-on?

Seems like it is being accessed via that:
Code:
["_xfRequestUri"] => string(30) "/groups/media/add?group_id=110"
 
Could it be something to do with your groups add-on?

Seems like it is being accessed via that:
Code:
["_xfRequestUri"] => string(30) "/groups/media/add?group_id=110"
Sorry. I have inherit all code from you. But the form i forgot change some input fields. :)
 
Back
Top Bottom