Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Reports section


Reply


7 Posts   2950 Views

Avatar
dio5

Community Member, 501 Posts

1 June 2008 at 10:35pm

Before adding this to the tickets on open.silverstripe.com I was wondering what the reports section in the cms (stable 2.2.2) is supposed to do and if I am the only one where it doesn't work and gives me a fatal error

"Fatal error: Class 'Report_StatsReport' not found in blablabla\cms\code\ReportAdmin.php on line 70"

Avatar
Fuzz10

Community Member, 787 Posts

10 June 2008 at 10:44pm

broken for me as well....

Avatar
mbellino

Community Member, 32 Posts

14 June 2008 at 2:21am

Edited: 14/06/2008 2:26am

same here..

the class "Report_StatsReport" is commented out in the file
../ecommerce/code/reports/Report.php

remove the comment and it works

cheerio

mario

Avatar
Sean

Forum Moderator, 922 Posts

15 July 2008 at 6:25pm

Edited: 21/07/2008 8:31pm

This was caused by ManifestBuilder trying to get classes, even if they're commented out. It was fixed in a later version of sapphire:

http://open.silverstripe.com/changeset/52327

It's also been removed in ecommerce trunk, so it shouldnt be a problem for future releases!

Cheers,
Sean

Avatar
inlive

Community Member, 5 Posts

21 October 2008 at 5:26am

Hello,

I cnt find the way to fix it.

cms/code/ReportAdmin.php on line 70
at what line can i change and in what file?
----------------------------
- Line 70 Reportadmin -       

if($report != 'Report') $processedReports[] = new $report();?
----------------------------

- Line 70 Report.php -

   $sort = array("Order.ID"=>"DESC"),

-----------------------------

who can help?

see original files attached.

Thanx!

Avatar
inlive

Community Member, 5 Posts

22 October 2008 at 7:48pm

HELP WANTED!!

I STILL GET AN ERROR!

Avatar
runnerman

Community Member, 24 Posts

7 November 2008 at 5:04am

Edited: 07/11/2008 5:12am

Are you using the stable version (0.5.2) or a trunk version of the module?

The reports section of the trunk version doesn't work, I read it's being redesigned for the next stable release (0.6). I believe the fix mentioned above is only for the stable version, which is why the line numbers mentioned in the fix don't match with what you're looking at.