-
☆ 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!
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.
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!

------------------------------------------------------
If vegetable oil is made from vegetables, and olive oil is made from olives, then wtf is baby oil made from??!
------------------------------------------------------
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!
-
☆ A M B ☆
- 2,475 Posts
Any updates to the instructions here? Thanks!
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.
-
☆ 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.