Blank Dashboard 1.4

Hi,

I have updated my installation of Piwik when the update notification came through and all went well. I have now been using 1.4 for a while without any glitches.

Today the dashboard has decided to call it quits. It loads the page up to the “Widgets” drop down and then a blank page. The source shows that there was “Oops! An error has occurred.”

The websites tab is update and I can see that the stats are getting updated.

I ran the cron job and it went through perfectly. I dumped browser cache and deleted the tmp/assets and tmp/template_c contents but still no luck.

The other tabs work fine and I am getting all the graphs, data but the dashboard just does not work :frowning:

Would appreciate any help!

Shafeeq

Look in your webserver error logs, there should be something?

Hi Matt,

Apache Log shows


<br /><br />Backtrace --><div style="font-family:Courier;font-size:10pt">#0  Piwik_ErrorHandler(2, Division by zero, /var/www/piwik/core/Visualization/Chart/VerticalBar.php, 65, Array ([dataSetsToDisplay] => Array ([0] => nb_visits),[dataSetToDisplay] => nb_visits,[bar] => bar_filled Object ([type] => bar_filled,[colour] => #3B5AA9,[outline-colour] => #063E7E,[alpha] => 0.5,[text] => Visits,[font-size] => 12,[tip] => #val# #key#),[yValues] => Array ([0] => 0,[1] => 0,[2] => 0,[3] => 0,[4] => 0,[5] => 0,[6] => 0,[7] => 0,[8] => 0,[9] => 0),[labelName] => Visits,[unit] => ,[barValues] => Array ([0] => bar_value Object ([top] => 0,[tip] => 0h<br><b>0</b> Visits (0%)),[1] => bar_value Object ([top] => 0,[tip] => 1h<br><b>0</b> Visits (0%)),[2] => bar_value Object ([top] => 0,[tip] => 2h<br><b>0</b> Visits (0%)),[3] => bar_value Object ([top] => 0,[tip] => 3h<br><b>0</b> Visits (0%)),[4] => bar_value Object ([top] => 0,[tip] => 4h<br><b>0</b> Visits (0%)),[5] => bar_value Object ([top] => 0,[tip] => 5h<br><b>0</b> Visits (0%)),[6] => bar_value Object ([top] => 0...#1  Piwik_Visualization_Chart_VerticalBar->customizeChartProperties() called at [/var/www/piwik/core/ViewDataTable/GenerateGraphData.php:127]#2  Piwik_ViewDataTable_GenerateGraphData->main() called at [/var/www/piwik/core/Controller.php:146]#3  Piwik_Controller->renderView(Piwik_ViewDataTable_GenerateGraphData_ChartVerticalBar Object ([] => 24,[] => ,[] => 1,[] => ,[] => 1,[] => Array ([hideFutureHoursWhenToday] => 1,[filter_sort_column] => label,[filter_sort_order] => asc,[filter_limit] => ,[disable_queued_filters] => 1),[] => Array ([show_goals] => 1,[show_search] => ,[show_table] => 1,[show_table_all_columns] => 1,[show_all_views_icons] => 1,[show_export_as_image_icon] => ,[show_export_as_rss_feed] => 1,[show_exclude_low_population] => ,[show_offset_information] => ,[show_pagination_control] => ,[show_footer] => 1,[show_footer_icons] => 1,[apiMethodToRequestDataTable] => VisitTime.getVisitInformationPerServerTime,[uniqueId] => VisitTimegetVisitInformationPerServerTime),[] => 0,[] => Piwik_DataTable Object ([] => Array ([0] => Piwik_DataTable_Row Object ([c] => Array ([0] => Array ([label] => 0h,[nb_visits] => 0),[1] => Array (),[3] => )),[1] => Piwik_DataTable_Row Object ([c] => Array ([0] => Array ([label] => 1h,[nb_v...#4  Piwik_VisitTime_Controller->getVisitInformationPerServerTime()#5  call_user_func_array(Array ([0] => Piwik_VisitTime_Controller Object ([] => VisitTime,[] => 2011-05-09,[] => Piwik_Date Object ([] => 1304932300,[] => UTC),[] => 3,[] => Piwik_Site Object ([] => 3)),[1] => getVisitInformationPerServerTime), Array ()) called at [/var/www/piwik/core/FrontController.php:127]#6  Piwik_FrontController->dispatch(VisitTime, getVisitInformationPerServerTime, Array ()) called at [/var/www/piwik/core/FrontController.php:147]#7  Piwik_FrontController->fetchDispatch(VisitTime, getVisitInformationPerServerTime, Array ()) called at [/var/www/piwik/core/ViewDataTable/GenerateGraphHTML.php:150]#8  Piwik_ViewDataTable_GenerateGraphHTML->getFlashData() called at [/var/www/piwik/core/ViewDataTable/GenerateGraphHTML.php:116]#9  Piwik_ViewDataTable_GenerateGraphHTML->buildView() called at [/var/www/piwik/core/ViewDataTable/GenerateGraphHTML.php:90]#10 Piwik_ViewDataTable_GenerateGraphHTML->main() called at [/var/www/piwik/core/Controller.php:146]#11 Piwik_Controller->renderView(Piwik_ViewDataTable_GenerateGraphHTML_ChartVerticalBar Object ([] => 100%,[] => 250,[] => standard,[] => CoreHome/templates/graph.tpl,[] => 1,[] => Array ([hideFutureHoursWhenToday] => 1,[filter_sort_column] => label,[filter_sort_order] => asc,[filter_limit] => 24),[] => Array ([show_goals] => 1,[show_search] => ,[show_table] => 1,[show_table_all_columns] => 1,[show_all_views_icons] => 1,[show_export_as_image_icon] => 1,[show_export_as_rss_feed] => 1,[show_exclude_low_population] => ,[show_offset_information] => ,[show_pagination_control] => ,[show_footer] => 1,[show_footer_icons] => 1,[apiMethodToRequestDataTable] => VisitTime.getVisitInformationPerServerTime,[uniqueId] => VisitTimegetVisitInformationPerServerTime),[] => 0,[] => ,[] => Array (),[] => Array (),[] => getVisitInformationPerServerTime,[] => VisitTime,[] => ,[] => VisitTime.getVisitInformationPerServerTime,[] => ,[] => Array ([nb_visits] => Visits,[nb_uniq_visitors] => Unique visitors,[nb_a...#12 Piwik_VisitTime_Controller->getVisitInformationPerServerTime()#13 call_user_func_array(Array ([0] => Piwik_VisitTime_Controller Object ([] => VisitTime,[] => 2011-05-09,[] => Piwik_Date Object ([] => 1304932300,[] => UTC),[] => 3,[] => Piwik_Site Object ([] => 3)),[1] => getVisitInformationPerServerTime), Array ()) called at [/var/www/piwik/core/FrontController.php:127]#14 Piwik_FrontController->dispatch() called at [/var/www/piwik/index.php:58]</div><br />
	    <strong>There is an error. Please report the message and full backtrace in the <a href='?module=Proxy&action=redirect&url=http://forum.piwik.org' target='_blank'>Piwik forums</a> (please do a Search first as it might have been reported already!).<br /><br/>
	    Warning:</strong> <i>Division by zero</i> in <b>/var/www/piwik/core/Visualization/Chart/VerticalBar.php</b> on line <b>65</b>

Thanks for any help!

Try this patch http://dev.piwik.org/trac/changeset/4616

Thank you Matt!

But this did not help :frowning: I still have a blank page after the Widgets drop down. The Widgets dialog is also empty.

I am attaching screen shots if this will help…

Shafeeq

What do you see in your error log after applying the patch?

No errors in the Apache logs any more…

Hi Matt,

Should I check something else?

Then only change to my server systems is the introduction of memcached — would that be causing this problem?

Thanks!
Shafeeq

Did it involve rebuilding php and/or enabling opcode caching?

I enabled CURL in PHP.

To eliminate issues with the installation, I downloaded a fresh copy of “latest.zip” - same problem.

I moved the installation to another server which does not have memcached - same problem :frowning:

Shafeeq

I found the solution : the issue was to do with a corrupted dashboard layout. I created a new user and copied layout field content.

Viola!