1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Media Gallery Resolved Bugs' started by Nobita.Kun, Nov 26, 2015.

  1. Nobita.Kun

    Nobita.Kun Well-Known Member

    I have some errors in Server Error Log.

    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}
    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 :)
  2. Chris D

    Chris D XenForo Developer Staff Member

    Could it be something to do with your groups add-on?

    Seems like it is being accessed via that:
    ["_xfRequestUri"] => string(30) "/groups/media/add?group_id=110"
  3. Nobita.Kun

    Nobita.Kun Well-Known Member

    Sorry. I have inherit all code from you. But the form i forgot change some input fields. :)
  4. Chris D

    Chris D XenForo Developer Staff Member

    In that case this isn't a bug but I will handle that error a little more elegantly.
    Nobita.Kun likes this.

Share This Page