[FIXED] Problem with VisitsSummary

Hello,

I have a problem with VisitsSummary on my dashboard. I have an internal server error (500) and in my log files :

PHP Fatal error: Call to a member function getRowsCount() on a non-object in /home/home/www/piwik/plugins/VisitsSummary/Controller.php on line 130, referer: http:/URL/index.php?module=CoreHome&action=index&idSite=1&period=day&date=today

How can i fix that ?

I’m running on Piwik 1.9.2 and i just remove / add all file for try but i have the same problem…

Thanks for your help !

Internal 500 error could be related to a problem with and htaccess file. (Are you using one?)

I would also check your php.ini and see if teh memory setting could be bumped up to something higher. if possible try setting to at least 512 megs

I have only this error in my logs files.

My memory limit is set to 512M for apache and i haven’t htaccess in piwik directory.

I have only error on VisitsSummary graph.

You said memory limit is set for apache, but is it from the php.ini file or the apache.conf?

Have you tried deleting the widget from the dashboard and re-add it later?

Can you check another domain in piwik (if one is availble) to see if error persists.

What php version are you running? What version of python if applicble?

Hello,

I set memory limit in php config for apache2. (not for php cli)

Yes i try to delete widget, after delete and add it work but when i refresh i have same error (internal server error)

I have the problem for all domain from my piwik.

PHP Version => 5.3.3-7+squeeze13

It should not be a memory error since it does not mention memory ?

leskolat, memory errors are usually reported on the screen or in the error log.

here it seems it’s a bug in Piwik somehow - can you try latest beta: http://piwik.org/piwik-1.10-b5.zip

and let me know if you sitll have the problem ?

It should not be a memory error since it does not mention memory ?

leskolat, memory errors are usually reported on the screen or in the error log.

Ok i just thought the widget thing was reminisent of a memory problem.

here it seems it’s a bug in Piwik somehow - can you try latest beta: [piwik.org]

and let me know if you sitll have the problem ?

If the beta is an issue how about updating the php to 5.4.x? Worst case it will still be there but some have reported an improvement in some performance with it as a php 5.4.x.

Here the bug is php warning, so it means unfortunately that some special data lead piwik to “bug” so I’d say if we can reproduce the issue we can fix it in piwik!

Something else came to mind. How are you putting the piwik code on your pages? is it via an include? I see the error points to a taxonomy on your site that is /home/home/www… is the site structure really that way?

Yop,

@matt :

There is a bug in database version update :
UPDATE option SET option_value = ‘1.10-b4’ WHERE option_name = ‘version_core’;

And that fixed my problem :slight_smile: Many thanks for piwik !

@lesjokolat : Yes, i reinstalled the server by importing a backup, or to the way a little weird.

Merci beaucoup !