1999 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » Fatal error: Class 'Report_StatsReport' not found
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 957 Views |
-
Fatal error: Class 'Report_StatsReport' not found

20 January 2009 at 4:47am
I received the following error while trying to access Reports in Silverstripe 2.2.2:
Fatal error: Class 'Report_StatsReport' not found ...
This error is referenced here and here, but the details were lacking.
To fix the problem remove the following comment from /ecommerce/code/reports/Report.php
/*class Report_StatsReport extends Report {
static $title = "Website statistics";
static $description = "View statistics of this website";static $awstatsURL;
static function set_awstatsURL($pass) {
self::$awstatsURL = $pass;
}function getReportField() {
$awstatsURL = self::$awstatsURL;
return new LiteralField( 'AWStats', "<iframe name=\"reportframe\" class=\"AWStatsReport\" src=\"$awstatsURL\"></iframe>" );
}function getOwnerID() {
return $this->class;
}
}
*/
| 957 Views | ||
|
Page:
1
|
Go to Top |

