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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Patch: Fixes 2 minor Reports errors


Go to End


3 Posts   5727 Views

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

17 May 2007 at 9:43am

When running the "Pages edited in the last 2 weeks" report, I get the following errors:

Notice: Trying to get property of non-object in /var/www/silverstripe/sapphire/core/model/SiteTree.php on line 189

Notice: Trying to get property of non-object in /var/www/silverstripe/sapphire/core/model/SiteTree.php on line 190

When running the "Empty pages" report (with no empty pages) I get the following error:

Notice: Undefined variable: result in /var/www/silverstripe/cms/code/SideReport.php on line 31

This patch fixes both of those errors: http://www.elijahlofgren.com/silverstripe/patches/Fix-2-Reports-errors-silverstripe.2.0.DailyBuild.2007-05-16.patch

Let me know if you'd prefer that I combine undefined variable patches and only submit 1 per day. I don't want to create a lot of extra work for you. ;)

- Elijah

Avatar
Tim

Community Member, 201 Posts

17 May 2007 at 10:04am

Keep the patches rolling! Great work :-)

Avatar
Sam

Administrator, 690 Posts

17 May 2007 at 10:24am

Combined patches would be good - particularly if you're solving a lot of instances of the same kind of problem.