We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9207 ☆ A M B ☆
    • 2,475 Posts
    Thanks for taking the time to look over the instructions again -- it’s really appreciated. I know you spent a lot of time doing a great port of this software to MODx, so it’s worth the time to make sure others can benefit from it. Your work is appreciated!
      • 2369
      • 44 Posts
      First let me say that this is a really incredible addition to MODx. I’ve been using MODx for awhile and just recently discovered Piwik.

      I was able to get PiwikX up and running, however for the Last Visits Graph widget I get the following error:

      "Action getLastVisitsGraph not found in the controller Piwik_VisitsSummary_Controller."

      I’m not much of a developer so I’m a bit lost. I checked the VisitsSummary controller.php file to see if that would illuminate the issue but could not resolve the problem.

      Also, how do I go about adding more widgets. I was looking at the lang.managerwidgets.php file and see how it basically works but couldn’t find any documentation on the function calls and parameters for the various widgets.

      Any help would really be appreciated.
        • 13428 ☆ A M B ☆
        • 1,031 Posts
        The Widget-API of Piwik maybe was changed during the update last week. You can fix this in ’language’.managerwidgets.php.

        In the german documentation (http://www.partout.info/piwik_modx.html), adding/changing of an widget is described.

        If you found a solution for the problem, you can mail it to me. If you could provide a translation for the ’adding/changing of an widget’ part it would be nice, too. Have not much time by now.

        Regards
        Jako
          • 11325
          • 8 Posts
          Quote from: atomiccherry at May 23, 2009, 03:10 AM

          First let me say that this is a really incredible addition to MODx. I’ve been using MODx for awhile and just recently discovered Piwik.

          I was able to get PiwikX up and running, however for the Last Visits Graph widget I get the following error:

          "Action getLastVisitsGraph not found in the controller Piwik_VisitsSummary_Controller."

          I’m not much of a developer so I’m a bit lost. I checked the VisitsSummary controller.php file to see if that would illuminate the issue but could not resolve the problem.

          Also, how do I go about adding more widgets. I was looking at the lang.managerwidgets.php file and see how it basically works but couldn’t find any documentation on the function calls and parameters for the various widgets.

          Any help would really be appreciated.

          in the /assets/piwikx/lang/english.managerwidgets.php, change the following:
          $piwikWidgets ['LastVisitsGraph'] = array (
              'position' => 'left',
              'title'    => 'Last visits graph',
              'height'   => '150',
              'module'   => 'VisitsSummary',
              'action'   => 'getLastVisitsGraph',
              'period'   => 'day',
              'date'     => 'today' );
          


          to:
          $piwikWidgets ['LastVisitsGraph'] = array (
              'position' => 'left',
              'title'    => 'Last visits graph',
              'height'   => '210',
              'module'   => 'VisitsSummary',
              'action'   => 'index',
              'period'   => 'day',
              'date'     => 'today' );
          


          This will display the "latest visits" bits.

          It’s only a temporary "fix", while I try and figure out how to display it properly, but I hope it helps.
            --------------------
            If its not broken, I just haven't gotten to it yet.
            ------------------------------------------------------
            Capitalisation is the ONLY difference between
            "I had to help my uncle Jack off a horse.." and "I had to help my uncle jack off a horse.."
            Remember children, check your grammar carefully! smiley
            ------------------------------------------------------
            If vegetable oil is made from vegetables, and olive oil is made from olives, then wtf is baby oil made from??!

            ------------------------------------------------------
            • 2369
            • 44 Posts
            Been away from the forums for a bit.

            Thanks Jako and Scott S! I will try this out and keep my eye open for more permanent solutions. This is such a great community. Everyone is so helpful! smiley
              • 13428 ☆ A M B ☆
              • 1,031 Posts
              in /assets/piwikx/lang/english.managerwidgets.php change the following:
              $piwikWidgets ['LastVisitsGraph'] = array (
                  'position' => 'left',
                  'title'    => 'Last visits graph',
                  'height'   => '150',
                  'module'   => 'VisitsSummary',
                  'action'   => 'getLastVisitsGraph',
                  'period'   => 'day',
                  'date'     => 'today' );


              to:
              $piwikWidgets ['LastVisitsGraph'] = array (
                  'position' => 'left',
                  'title'    => 'Last visits graph',
                  'height'   => '210',
                  'module'   => 'VisitsSummary',
                  'action'   => 'getEvolutionGraph',
                  'period'   => 'day',
                  'date'     => 'today' );



                • 2369
                • 44 Posts
                Thanks, Jako! I’d tried the getEvolutionGraph after looking through the controller.php file but my mistake was also replacing [’LastVisitsGraph’] with [’EvolutionGraph’]. You’re brilliant! Once again the MODx community rocks!
                  • 9207 ☆ A M B ☆
                  • 2,475 Posts
                  Any updates to the instructions here? Thanks!
                    • 2369
                    • 44 Posts
                    I tried Jako’s latest fix but the widget still reports an error of 2 missing parameters, "columns" and "default". I haven’t had the opportunity to pursue it.
                      • 9207 ☆ A M B ☆
                      • 2,475 Posts
                      atomiccherry, can you explain exactly what you did to get it installed? I really gave it an honest effort and came up empty-handed... thus my previous posts. I know Jako did a ton of work for this thing, so if you can share your knowledge on how to get it "out of the box", then I’d be much obliged.