Fixed Error on member profil sometimes

Nioute

Member
Hello,

I am a new customer, so thx for this mod. But i got a bug sometimes when i click to member profil or when i go to => Members => currents visitor.

Code:
Server Error

Invalid model 'XenGallery_Model_Media' specified

    XenForo_Model::create() in Nobita/Teams/Helper/Activity.php at line 685
    Nobita_Teams_Helper_Activity->_getModelCache() in Nobita/Teams/Helper/Activity.php at line 51
    Nobita_Teams_Helper_Activity->__construct() in Nobita/Teams/ControllerPublic/Abstract.php at line 169
    Nobita_Teams_ControllerPublic_Abstract::getSessionActivityDetailsForList()
    call_user_func() in XenForo/Model/Session.php at line 332
    XenForo_Model_Session->addSessionActivityDetailsToList() in XenForo/Model/Session.php at line 388
    XenForo_Model_Session->getSessionActivityDetails() in XenForo/ControllerPublic/Member.php at line 211
    XenForo_ControllerPublic_Member->actionMember() in XenForo/FrontController.php at line 347
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in /var/www/html/index.php at line 13

Do you know why or how can i fix it please ?

Thank you in advance
 
Hi.

I can give the Temporary fix it.
Open the file: library/Nobita/Teams/Helper/Activity.php

At the line 306:
PHP:
protected function _outputXenMediaActivities(array $results, array $params, array $extraData = array())
    {

Add below these lines:
PHP:
if (! class_exists('XenMedia_Model_Media'))
        {
            return new XenForo_Phrase('viewing_unknown_page');
        }

After you editted. It look like this:

PHP:
protected function _outputXenMediaActivities(array $results, array $params, array $extraData = array())
    {
        if (! class_exists('XenMedia_Model_Media'))
        {
            return new XenForo_Phrase('viewing_unknown_page');
        }
 
Thank you to try but it doesn't work T_T

----------------------
Edit
Strange sometimes it works sometimes not oO

--------------------------
Edit2
Bug still here
 
Last edited:
Drop an PM with me with your Email Address. I will send the package update for you :)
 
Back
Top