Fixed 2.6.6 After install --> "Add Media" on XFMG produces Server Error

Freelancer

Active Member
When I want to regularly "Add Media" on XFMG index it displays a server error on the frontend and throws one in the backend acp log.

Looks like the controller is in conflict.

Code:
Error Info
array_column() expects parameter 1 to be array, null given - library/XenForo/Application.php:1232

Stack Trace
#0 [internal function]: XenForo_Application::handlePhpError(2, 'array_column() ...', '/Applications/X...', 1232, Array)
#1 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/XenForo/Application.php(1232): array_column(NULL, 'social_group_id', NULL)
#2 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/Nobita/Teams/XenGallery/ControllerPublic/Media.php(34): XenForo_Application::arrayColumn(NULL, 'social_group_id')
#3 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/XenGallery/ControllerPublic/Media.php(647): Nobita_Teams_XenGallery_ControllerPublic_Media->_getSiteMediaWrapper('', Object(XenForo_ControllerResponse_View))
#4 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/phc/AdvancedRules/Extend/XenGallery/ControllerPublic/Media.php(24): XenGallery_ControllerPublic_Media->actionAdd()
#5 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/XenForo/FrontController.php(351): phc_AdvancedRules_Extend_XenGallery_ControllerPublic_Media->actionAdd()
#6 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#7 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/index.php(13): XenForo_FrontController->run()
#8 {main}

Request State
Array
(
    [url] => http://localhost/mywebsite/media/add
    [_GET] => Array
        (
        )

    [_POST] => Array
        (
        )

)



Code:
Error Info
Undefined index: media - library/Nobita/Teams/XenGallery/ControllerPublic/Media.php:34

Stack Trace
#0 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/Nobita/Teams/XenGallery/ControllerPublic/Media.php(34): XenForo_Application::handlePhpError(8, 'Undefined index...', '/Applications/X...', 34, Array)
#1 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/XenGallery/ControllerPublic/Media.php(647): Nobita_Teams_XenGallery_ControllerPublic_Media->_getSiteMediaWrapper('', Object(XenForo_ControllerResponse_View))
#2 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/phc/AdvancedRules/Extend/XenGallery/ControllerPublic/Media.php(24): XenGallery_ControllerPublic_Media->actionAdd()
#3 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/XenForo/FrontController.php(351): phc_AdvancedRules_Extend_XenGallery_ControllerPublic_Media->actionAdd()
#4 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#5 /Applications/XAMPP/xamppfiles/htdocs/mywebsite/index.php(13): XenForo_FrontController->run()
#6 {main}

Request State
Array
(
    [url] => http://localhost/mywebsite/media/add
    [_GET] => Array
        (
        )

    [_POST] => Array
        (
        )

)
 
Back
Top