We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24629
    • 370 Posts
    Hi,
    I seem to get a conflict between Google Analytics Dashboard v1.0.1 (http://modx.com/extras/package/googleanalyticsdashboardwidget) and Analytics (http://modx.com/extras/package/analytics).
    Analyitcs Dashboard v1.0.2 doesn't appear in the package manager (???)

    GAD gives me this error
    [16-May-2014 15:00:03] PHP Fatal error:  Class 'GoogleAnalytics' not found in /var/www/vhosts/xxxxx.nl/httpdocs/core/components/analytics/elements/widget/widget.analytics.php on line 9

    the widget tries to load class GoogleAnalytics in model/analytics/analytics.class.php
    BUT the class is, offcourse, not there because the Extra analytics claims the namespace 'Analytics' and has a analytics.class.php that does NOT have the class 'GoogleAnalytics'.
    Or am i missing something?

    So @wiegers, is it possible you provide an updated dashboard widget that lives in its own, more specific, namespace? Or does version 1.0.2 fix this problem and where can i find it in the packagemanager?
    OR
    @ yogooo same goes for you smiley can you use a less general namespace

    maybe its a good idea everybody prefixes namespaces for Extras (Apps) with a companyname.

    tnx
    RDG [ed. note: rdaneeel last edited this post 9 years, 11 months ago.]
      • 38121
      • 36 Posts
      Hi Ralph, the [unwritten] namespace naming convention is to name the namespace according to the name of the extra. According to it the namespace for Google Analytics Dashboard should be "GoogleAnalyticsDashboard". Issue #1 for Analytics discusses this topic. We contacted the developer about this issue, he even replied.

      The general name of analytics was picked because the original plan was to include tracking code for other analytics services (never received a request in this direction so it's only Google right now).