Fixed Undefined variable: postOrEvent

Dadparvar

Active Member
Hi @Nobita

Here is new error, I don't know why it happened. I just refreshed the page and it came:
Code:
Server Error

Undefined variable: postOrEvent

    XenForo_Application::handlePhpError() in Nobita/Teams/Model/Comment.php at line 362
    Nobita_Teams_Model_Comment->canEditComment() in Nobita/Teams/Model/Comment.php at line 263
    Nobita_Teams_Model_Comment->prepareComment() in Nobita/Teams/ControllerPublic/Post.php at line 36
    Nobita_Teams_ControllerPublic_Post->actionShow() in XenForo/FrontController.php at line 351
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in D:/dev/wamp/www/xenforo/index.php at line 13
the page's URL was: http://localhost/xenforo/index.php?groups/posts/7/show

Regards
 
after that I hover the notification of my board to see new notifications, but this is coming:
Code:
Undefined variable: postOrEvent

    XenForo_Application::handlePhpError() in Nobita/Teams/Model/Comment.php at line 362
    Nobita_Teams_Model_Comment->canEditComment() in Nobita/Teams/Model/Comment.php at line 263
    Nobita_Teams_Model_Comment->prepareComment() in Nobita/Teams/AlertHandler/Comment.php at line 50
    Nobita_Teams_AlertHandler_Comment->getContentByIds() in XenForo/Model/Alert.php at line 234
    XenForo_Model_Alert->_getContentForAlerts() in XenForo/Model/Alert.php at line 77
    XenForo_Model_Alert->getAlertsForUser() in XenForo/ControllerPublic/Account.php at line 75
    XenForo_ControllerPublic_Account->actionAlertsPopup() in XenForo/FrontController.php at line 351
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in D:/dev/wamp/www/xenforo/index.php at line 13
 
Code:
ErrorException: Undefined variable: postOrEvent - library\Nobita\Teams\Model\Comment.php:362
Generated By: test, A moment ago
Stack Trace
#0 D:\dev\wamp\www\xenforo\library\Nobita\Teams\Model\Comment.php(362): XenForo_Application::handlePhpError(8, 'Undefined varia...', 'D:\\dev\\wamp\\www...', 362, Array)
#1 D:\dev\wamp\www\xenforo\library\Nobita\Teams\Model\Comment.php(263): Nobita_Teams_Model_Comment->canEditComment(Array, Array, Array, NULL, Array)
#2 D:\dev\wamp\www\xenforo\library\Nobita\Teams\AlertHandler\Comment.php(50): Nobita_Teams_Model_Comment->prepareComment(Array, Array, Array, Array)
#3 D:\dev\wamp\www\xenforo\library\XenForo\Model\Alert.php(234): Nobita_Teams_AlertHandler_Comment->getContentByIds(Array, Object(XenForo_Model_Alert), 2, Array)
#4 D:\dev\wamp\www\xenforo\library\XenForo\Model\Alert.php(77): XenForo_Model_Alert->_getContentForAlerts(Array, 2, Array)
#5 D:\dev\wamp\www\xenforo\library\XenForo\ControllerPublic\Account.php(75): XenForo_Model_Alert->getAlertsForUser(2, 'fetchPopupItems')
#6 D:\dev\wamp\www\xenforo\library\XenForo\FrontController.php(351): XenForo_ControllerPublic_Account->actionAlertsPopup()
#7 D:\dev\wamp\www\xenforo\library\XenForo\FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 D:\dev\wamp\www\xenforo\index.php(13): XenForo_FrontController->run()
#9 {main}
Request State
array (size=3)
  'url' => string 'http://localhost/xenforo/index.php?account/alerts-popup&&_xfRequestUri=%2Fxenforo%2Findex.php&_xfNoRedirect=1&_xfToken=2%2C1455974943%2Cea26896c47188e54c201b720bb1c9274ed3726e4&_xfResponseType=json' (length=197)
  '_GET' =>
    array (size=5)
      'account/alerts-popup' => string '' (length=0)
      '_xfRequestUri' => string '/xenforo/index.php' (length=18)
      '_xfNoRedirect' => string '1' (length=1)
      '_xfToken' => string '2,1455974943,ea26896c47188e54c201b720bb1c9274ed3726e4' (length=53)
      '_xfResponseType' => string 'json' (length=4)
  '_POST' =>
    array (size=0)
      empty
 
Back
Top