Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null test missing in Archive.php #423

Closed
anonymous-matomo-user opened this issue Nov 19, 2008 · 2 comments
Closed

null test missing in Archive.php #423

anonymous-matomo-user opened this issue Nov 19, 2008 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@anonymous-matomo-user
Copy link

Using the auto archiving feature with a few bugs, see #422.

I’m using 0.2.22.

I’ve got the following error now when visiting my Piwik web interface:

Fatal error: Call to a member function toString() on a non-object in /var/www/piwik/core/Archive.php on line 120

It seems that there is a null test missing.
Keywords: archive

@anonymous-matomo-user
Copy link
Author

I’ve pin pointed the source of the problem

This URL:

/piwik/index.php?module=CoreHome&action=index&idSite=1&period=month&date=

cause the problem:

The date value is empty. When this value is empty, Piwik does not set it to a default value and fail because of it.

I think it is very simple to correct… once you know where to correct it. (in Piwik_API_Request may be ?, this is where i’ve stopped digging for the problem).

@mattab
Copy link
Member

mattab commented Nov 24, 2008

fixed in 755

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants