Xenforo DP ads throws off errors every minute or so

Discussion in 'Digital Point Ads' started by craigimass, Oct 2, 2012.

  1. #1
    [TABLE="width: 100%"]
    [TR]
    [TD="class: primaryContent, bgcolor: #FCFCFF"]
    [COLOR=#646464]ErrorException:[/COLOR] Undefined index: forum - [COLOR=#646464]library/DigitalPointAds/ControllerPublic/Forum.php:6[/COLOR][COLOR=#969696]Generated By: Unknown Account, 1 minute ago[/COLOR][/TD]
    [/TR]
    [TR]
    [TH="class: subHeading, bgcolor: #F9D9B0"]Stack Trace[/TH]
    [/TR]
    [TR]
    [TD="class: primaryContent, bgcolor: #FCFCFF"]#0 /usr/local/www/htdocs/talk/library/DigitalPointAds/ControllerPublic/Forum.php(6): XenForo_Application::handlePhpError()#1 /usr/local/www/htdocs/talk/library/XenForo/FrontController.php(310): DigitalPointAds_ControllerPublic_Forum->actionIndex(Object(XenForo_RouteMatch))#2 /usr/local/www/htdocs/talk/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch()#3 /usr/local/www/htdocs/talk/index.php(13): XenForo_FrontController->run()#4 {main}[/TD]
    [/TR]
    [TR]
    [TH="class: subHeading, bgcolor: #F9D9B0"]Request State[/TH]
    [/TR]
    [TR]
    [TD="class: primaryContent, bgcolor: #FCFCFF"]array(3) {  ["url"] => string(45) "http://www.hearth.com/talk/forums/-/index.rss"  ["_GET"] => array(0) {  }  ["_POST"] => array(0) {  }}
    
    Code (markup):
    [/TD]
    [/TR]
    [/TABLE]
     
    craigimass, Oct 2, 2012 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Yeah, there's an issue on the RSS feed page. I'll be rolling out an update soon.

    In the meantime you can edit the DigitalPointAds/ControllerPublic/Forum.php file and just add an @ to the beginning of the $response object like so:

    $GLOBALS['dpa_node_id'] = @$response->params['forum']['node_id'];
    PHP:
     
    digitalpoint, Oct 2, 2012 IP
  3. craigimass

    craigimass Member

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #3
    Adding it exactly as you have above throws off a different error.....as long as the rss feed does not consume excess cpu, etc. I can leave it as was?

    
    [TABLE="width: 100%"]
    [TR]
    [TD="class: primaryContent, bgcolor: #FCFCFF"][COLOR=#646464]ErrorException:[/COLOR] Undefined property: XenForo_ControllerResponse_Redirect::$params - [COLOR=#646464]library/DigitalPointAds/ControllerPublic/Thread.php:6[/COLOR][COLOR=#969696]Generated By: Unknown Account, A moment ago[/COLOR]
    [/TD]
    [/TR]
    [TR]
    [TH="class: subHeading, bgcolor: #F9D9B0"]Stack Trace[/TH]
    [/TR]
    [TR]
    [TD="class: primaryContent, bgcolor: #FCFCFF"]
    #0 /usr/local/www/htdocs/talk/library/DigitalPointAds/ControllerPublic/Thread.php(6): XenForo_Application::handlePhpError()#1 /usr/local/www/htdocs/talk/library/XenForo/FrontController.php(310): DigitalPointAds_ControllerPublic_Thread->actionIndex(Object(XenForo_RouteMatch))#2 /usr/local/www/htdocs/talk/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch()#3 /usr/local/www/htdocs/talk/index.php(13): XenForo_FrontController->run()#4 {main}[/TD]
    [/TR]
    [TR]
    [TH="class: subHeading, bgcolor: #F9D9B0"]Request State[/TH]
    [/TR]
    [TR]
    [TD="class: primaryContent, bgcolor: #FCFCFF"]
    array(3) {  ["url"] => string(84) "http://www.hearth.com/talk/threads/id-like-to-identify-upgrade-this-old-stove.91174/"  ["_GET"] => array(0) {  }  ["_POST"] => array(0) {  }}[/TD]
    [/TR]
    [/TABLE]
    
    
    Code (markup):
     
    craigimass, Oct 2, 2012 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Looks like that's a bit of a unique thread because it actually redirects to another thread.

    If you change the line in question to this, does it go away?

    $GLOBALS['dpa_node_id'] = (isset($response->params) ? @$response->params['forum']['node_id'] : 0);
    PHP:
     
    digitalpoint, Oct 2, 2012 IP
  5. craigimass

    craigimass Member

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #5
    YES, that seems to have fixed it for now.
    Thanks.
     
    craigimass, Oct 3, 2012 IP
  6. craigimass

    craigimass Member

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #6
    Spoke too soon. Seems to not be quite as many, but still throws off errors.

    
    [COLOR=#141414][FONT=Trebuchet MS][TABLE="width: 100%"]
    [TR]
    [TH="class: subHeading, bgcolor: #F9D9B0"]Error Info[/TH]
    [/TR]
    [TR]
    [TD="class: primaryContent, bgcolor: #FCFCFF"][COLOR=#646464]ErrorException:[/COLOR] Undefined property: XenForo_ControllerResponse_Redirect::$params - [COLOR=#646464]library/DigitalPointAds/ControllerPublic/Thread.php:6[/COLOR][COLOR=#969696]Generated By: Unknown Account, 9 minutes ago[/COLOR]
    [/TD]
    [/TR]
    [TR]
    [TH="class: subHeading, bgcolor: #F9D9B0"]Stack Trace[/TH]
    [/TR]
    [TR]
    [TD="class: primaryContent, bgcolor: #FCFCFF"]
    #0 /usr/local/www/htdocs/talk/library/DigitalPointAds/ControllerPublic/Thread.php(6): XenForo_Application::handlePhpError()#1 /usr/local/www/htdocs/talk/library/XenForo/FrontController.php(310): DigitalPointAds_ControllerPublic_Thread->actionIndex(Object(XenForo_RouteMatch))#2 /usr/local/www/htdocs/talk/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch()#3 /usr/local/www/htdocs/talk/index.php(13): XenForo_FrontController->run()#4 {main}[/TD]
    [/TR]
    [TR]
    [TH="class: subHeading, bgcolor: #F9D9B0"]Request State[/TH]
    [/TR]
    [TR]
    [TD="class: primaryContent, bgcolor: #FCFCFF"]
    array(3) {  ["url"] => string(68) "http://www.hearth.com/talk/threads/whats-cultured-stone-worth.91183/"  ["_GET"] => array(0) {  }  ["_POST"] => array(0) {  }}[/TD]
    [/TR]
    [/TABLE]
    [/FONT][/COLOR]
    [COLOR=#65A5D1][FONT=Trebuchet MS][/FONT][/COLOR]
    
    
    Code (markup):
     
    craigimass, Oct 3, 2012 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    Did you make the change to both the files in the "ControllerPublic" directory?
     
    digitalpoint, Oct 3, 2012 IP
  8. craigimass

    craigimass Member

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #8
    No, just Forum.php
     
    craigimass, Oct 3, 2012 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    Apply the same change to the Thread.php file and you should be good (hopefully).
     
    digitalpoint, Oct 3, 2012 IP