1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Bug Fatal Error: Call to a member function getBody() on a non-object

Discussion in 'Better Analytics' started by hollosch, Jan 3, 2016.

  1. #1
    Hi,
    i get following error:

    Fehlermeldung des Servers
    Fehlerinformation
    ErrorException: Fatal Error: Call to a member function getBody() on a non-object -library/DigitalPointBetterAnalytics/Helper/Reporting.php:524
    Generiert durch: hollosch, Vor 3 Minuten
    Stapelverfolgung
    #0 [internal function]: XenForo_Application::handleFatalError()
    #1 {main}
    Benötigter Status
    array(3) {
    ["url"] => string(52) "http://www.mydomain.com/admin.php?analytics/heatmap"
    ["_GET"] => array(1) {
    ["analytics/heatmap"] => string(0) ""
    }
    ["_POST"] => array(0) {
    }
    }

    How to fix it ?
     
    hollosch, Jan 3, 2016 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #2
    can you set up a jsfiddle with an example of this error so we can see it in action?
     
    sarahk, Jan 3, 2016 IP
  3. hollosch

    hollosch Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    Whats a jsfiddle?
     
    hollosch, Jan 3, 2016 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #4
    jsfiddle.net is a site that lets you demo your code - it's safer than giving people access to your site and you can play around with just the functionality that is causing problems.
     
    sarahk, Jan 3, 2016 IP
  5. hollosch

    hollosch Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    Hi,
    and what data should i post in a fiddle ??? I'm not a programmer...
     
    hollosch, Jan 4, 2016 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    Is it something that is happening consistently? That error would imply that your server had an issue communicating with Google's API servers for pulling Analytics reports.
     
    digitalpoint, Jan 4, 2016 IP
  7. hollosch

    hollosch Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #7
    Hi, after logging out of the ACP an new logging in - the heatmap works one time. Then i get a white page....
     
    hollosch, Jan 11, 2016 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    Did your server error log have an error from that?
     
    digitalpoint, Jan 11, 2016 IP
  9. hollosch

    hollosch Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #9
    In error-logs is no error from that.
     
    hollosch, Jan 11, 2016 IP
  10. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #10
    Honestly not really sure. How much data do you have in your Analytics? Is it so little that it might not *have* any data for the metric/dimension you picked?

    Hard to debug on this end since everything seems to be working fine when I try it.
     
    digitalpoint, Jan 11, 2016 IP
  11. hollosch

    hollosch Greenhorn

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #11
    Here a new error:

    Fehlermeldung des Servers
    Fehlerinformation
    Zend_Http_Client_Adapter_Exception: Unable to Connect to ssl://www.googleapis.com:443. Error #110: Connection timed out - library/Zend/Http/Client/Adapter/Socket.php:235
    Generiert durch: Unbekanntes Benutzerkonto, Heute um 02:36 Uhr
    Stapelverfolgung
    
    #0 /../library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('www.googleapis....', 443, true)
    #1 /../library/DigitalPointBetterAnalytics/Helper/Reporting.php(491): Zend_Http_Client->request('GET')
    #2 /../library/DigitalPointBetterAnalytics/Helper/Reporting.php(395): DigitalPointBetterAnalytics_Helper_Reporting->_execHandler('analytics_realt...')
    #3 /../library/DigitalPointBetterAnalytics/Model/Analytics.php(205): DigitalPointBetterAnalytics_Helper_Reporting->getRealtime('rt:activeUsers', 'rt:pagePath', '-rt:activeUsers', 'rt:pagePath=~/i...')
    #4 /../library/DigitalPointBetterAnalytics/CronEntry/Cron.php(15): DigitalPointBetterAnalytics_Model_Analytics->getRealtimeUsage()
    #5 [internal function]: DigitalPointBetterAnalytics_CronEntry_Cron::runVeryOften(Array)
    #6 /../library/XenForo/Model/Cron.php(357): call_user_func(Array, Array)
    #7 /../library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array)
    #8 /../library/XenForo/Model/Deferred.php(295): XenForo_Deferred_Cron->execute(Array, Array, 7.9999988079071, '')
    #9 /../library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999988079071, '', false)
    #10 /../library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
    #11 /../deferred.php(23): XenForo_Model_Deferred->run(false)
    #12 {main}
    
    Benötigter Status
    
    array(3) {
      ["url"] => string(37) "http://regio-portal.wiki/deferred.php"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(4) {
        ["_xfRequestUri"] => string(6) "/wiki/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    Code (markup):
     
    hollosch, Jan 12, 2016 IP
  12. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #12
    That error is an issue with your server being able to communicate with Google's API servers... specifically www.googleapis.com over SSL.

    If the error goes away on it's own, it might have been a temporary routing issue between your server and Google. If it's consistent, you will want to talk to your server administrator and see why your server can't communicate with Google's servers.
     
    digitalpoint, Jan 12, 2016 IP