Email reports range

I tried to send a mail report sing the “Send Report now” button.

After a while the email was in my inbox, but there seems to be some problem:

  • the report is set to be on a monthly schedule
  • the mailed report was for 1 week of data
  • I was browsing piwik showing 1 week of data when I cliked on the “send report now” button

Is this a bug?

I see nowhere an option to set the date range that a report should analyze, so I suppose the date range is automatically taken from report schedule (eg monthly schedule show 1 month of data)

PS: not sure if it is exactly related, but there is this message in the Apache error log:

There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Notice:
Undefined index: range in /piwik.local/www/plugins/PDFReports/API.php on line 522

Backtrace -->
#0 Piwik_ErrorHandler(...) called at [/piwik.local/www/plugins/PDFReports/API.php:522]#1 Piwik_PDFReports_API->sendReportEmail(...) called at [/piwik.local/www/plugins/PDFReports/API.php:489]#2 Piwik_PDFReports_API->sendEmailReport(...) called at [:]#3 call_user_func_array(...) called at [/piwik.local/www/core/API/Proxy.php:179]#4 Piwik_API_Proxy->call(...) called at [/piwik.local/www/core/API/Request.php:121]#5 Piwik_API_Request->process(...) called at [/piwik.local/www/plugins/API/Controller.php:27]#6 Piwik_API_Controller->index(...) called at [:]#7 call_user_func_array(...) called at [/piwik.local/www/core/FrontController.php:138]#8 Piwik_FrontController->dispatch(...) called at [/piwik.local/www/index.php:53]


Date range “scheduled” report is not possible (only daily/weekly/monthly). But it’s possible to send date range scheduled reports by email on demand as you tried.
I fixed the notice: http://dev.piwik.org/trac/changeset/5964

Hello,
I’m getting the same error, but on “All websites” page and no sites are displayed on that page anymore :frowning:

Error:


<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/>
            Notice:</strong> <i>Array to string conversion</i> in <b>/var/www/piwik/tmp/templates_c/%%9A^9A3^9A34FA06%%index.tpl.php</b> on line <b>49</b>
<br /><br />Backtrace --><div style="font-family:Courier;font-size:10pt">#0  Piwik_ErrorHandler(...) called at [/var/www/piwik/tmp/templates_c/%%9A^9A3^9A34FA06%%index.tpl.php:49]#1  include(...) called at [/var/www/piwik/libs/Smarty/Smarty.class.php:1263]#2  Smarty->fetch(...) called at [/var/www/piwik/core/View.php:138]#3  Piwik_View->render(...) called at [/var/www/piwik/plugins/MultiSites/Controller.php:162]#4  Piwik_MultiSites_Controller->getSitesInfo(...) called at [/var/www/piwik/plugins/MultiSites/Controller.php:36]#5  Piwik_MultiSites_Controller->index(...) called at [:]#6  call_user_func_array(...) called at [/var/www/piwik/core/FrontController.php:138]#7  Piwik_FrontController->dispatch(...) called at [/var/www/piwik/index.php:53]</div><br />
 </pre></div><br />[

Are you using 1.7.1?

Me, yes

Yes, 1.7.1
Attached is screen of a dashboard, same error as before.

Any possible fixes for this? I really need to use All sites dashboard.

Thank you.

Please try to uptrade to 1.7.2-rc2 ? http://builds.piwik.org/piwik-1.7.2-rc2.zip

if it does not fix the issue please post here the exact JS error you get or please create a bug report with the HTML output of the page that fails to load, and the JS error. Thanks

Hello,

I’ve updated to the 1.7.2-rc2 , but still getting same empty page. Here is js errors I get:


Timestamp: 03/19/2012 04:51:10 PM
Error: unterminated string literal
Source File: http://mysite.com/index.php?module=MultiSites&action=index&idSite=1&period=day&date=today
Line: 149, Column: 18
Source Code:
 params['site'] = ' 


Timestamp: 03/19/2012 04:51:10 PM
Error: allSites is not defined
Source File: http://mysite.com/index.php?module=MultiSites&action=index&idSite=1&period=day&date=today
Line: 252

I do see that there is unclosed bracket, but I can’t find where to fix it.
params[‘mOrderBy’] = ‘visits’;
params[‘order’] = ‘desc’;
params[‘site’] = ’

<div st

Full rendered output:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Piwik &rsaquo;  Web Analytics Reports - maxya.ru</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Piwik - Open Source Web Analytics" />
<meta name="description" content="Web Analytics report for 'maxya.ru' - Piwik" />
<link rel="shortcut icon" href="plugins/CoreHome/templates/images/favicon.ico" /> 
<script type="text/javascript">var translations = {"General_InvalidDateRange_js": "Invalid Date Range, Please Try Again","General_DateRangeFrom_js": "From","General_DateRangeTo_js": "To","General_Loading_js": "Loading...","General_OpenInNewWindow_js": "Open in a new window","General_SaveImageOnYourComputer_js": "To save the image on your computer, right click on the image and select \"Save Image As...\"","General_ExportAsImage_js": "Export as Image","CoreHome_IncludeAllPopulation_js": "Include all population","CoreHome_ExcludeLowPopulation_js": "Exclude low population","CoreHome_PageOf_js": "%1$s of %2$s","CoreHome_DaySu_js": "Su","CoreHome_DayMo_js": "Mo","CoreHome_DayTu_js": "Tu","CoreHome_DayWe_js": "We","CoreHome_DayTh_js": "Th","CoreHome_DayFr_js": "Fr","CoreHome_DaySa_js": "Sa","CoreHome_ShortDay_1_js": "Sun","CoreHome_ShortDay_2_js": "Mon","CoreHome_ShortDay_3_js": "Tue","CoreHome_ShortDay_4_js": "Wed","CoreHome_ShortDay_5_js": "Thu","CoreHome_ShortDay_6_js": "Fri","CoreHome_ShortDay_7_js": "Sat","CoreHome_LongDay_1_js": "Sunday","CoreHome_LongDay_2_js": "Monday","CoreHome_LongDay_3_js": "Tuesday","CoreHome_LongDay_4_js": "Wednesday","CoreHome_LongDay_5_js": "Thursday","CoreHome_LongDay_6_js": "Friday","CoreHome_LongDay_7_js": "Saturday","CoreHome_ShortMonth_1_js": "Jan","CoreHome_ShortMonth_2_js": "Feb","CoreHome_ShortMonth_3_js": "Mar","CoreHome_ShortMonth_4_js": "Apr","CoreHome_ShortMonth_5_js": "May","CoreHome_ShortMonth_6_js": "Jun","CoreHome_ShortMonth_7_js": "Jul","CoreHome_ShortMonth_8_js": "Aug","CoreHome_ShortMonth_9_js": "Sep","CoreHome_ShortMonth_10_js": "Oct","CoreHome_ShortMonth_11_js": "Nov","CoreHome_ShortMonth_12_js": "Dec","CoreHome_MonthJanuary_js": "January","CoreHome_MonthFebruary_js": "February","CoreHome_MonthMarch_js": "March","CoreHome_MonthApril_js": "April","CoreHome_MonthMay_js": "May","CoreHome_MonthJune_js": "June","CoreHome_MonthJuly_js": "July","CoreHome_MonthAugust_js": "August","CoreHome_MonthSeptember_js": "September","CoreHome_MonthOctober_js": "October","CoreHome_MonthNovember_js": "November","CoreHome_MonthDecember_js": "December","General_Save_js": "Save","General_OrCancel_js": "or %s Cancel %s"};if(typeof(piwik_translations) == 'undefined') { var piwik_translations = new Object; }for(var i in translations) { piwik_translations[i] = translations[i];} function _pk_translate(translationStringId) { if( typeof(piwik_translations[translationStringId]) != 'undefined' ){  return piwik_translations[translationStringId]; }return "The string "+translationStringId+" was not loaded in javascript. Make sure it is suffixed with _js and that you called  {loadJavascriptTranslations plugins='\$YOUR_PLUGIN_NAME'} before your javascript code.";}</script>
<script type="text/javascript">
	var piwik = {};
	piwik.token_auth = "43da8f9ebc4c4557c6c3348f104c265a";
	piwik.piwik_url = "http://stats.dumplin.ru/";
	piwik.userLogin = "maxim";	piwik.idSite = "1";	piwik.siteName = "maxya.ru";	piwik.siteMainUrl = "http://maxya.ru";	piwik.period = "day";		piwik.currentDateString = "2012-03-19";
	piwik.startDateString = "2012-03-19";	piwik.endDateString = "2012-03-19";	piwik.minDateYear = 2011;	piwik.minDateMonth = parseInt("11", 10);	piwik.minDateDay = parseInt("23", 10);	piwik.maxDateYear = 2012;	piwik.maxDateMonth = parseInt("03", 10);	piwik.maxDateDay = parseInt("19", 10);	piwik.language = "en";</script><!--[if lt IE 9]>
<script language="javascript" type="text/javascript" src="libs/jqplot/excanvas.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="index.php?module=Proxy&action=getCss&cb=c5d8e22584220e7aa17673ff53998577" />
<script type="text/javascript" src="index.php?module=Proxy&action=getJs&cb=c5d8e22584220e7aa17673ff53998577"></script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="themes/default/ieonly.css?cb=c5d8e22584220e7aa17673ff53998577" />
<![endif]-->
<style type="text/css">body { display : none; }</style>
</head>
<body>
<script type="text/javascript">
		if(self == top) {
			var theBody = document.getElementsByTagName('body')[0];
			theBody.style.display = 'block';
		} else {
			top.location = self.location;
		}
	</script>
<div id="root"><div id="topBars">
<div id="topLeftBar">
<span class="topBarElem"><a id="topmenu-corehome" href="index.php?module=CoreHome&action=index&idSite=1&period=day&date=today">Dashboard</a></span> | 
<span class="topBarElem"><b>All Websites</b></span> | 
<span class="topBarElem"><a id="topmenu-widgetize" href="index.php?module=Widgetize&action=index&idSite=1&period=day&date=today">Widgets</a></span> | 
<span class="topBarElem"><a id="topmenu-api" href="index.php?module=API&action=listAllAPI&idSite=1&period=day&date=today">API</a></span> | 
<span class="topBarElem"><a id="topmenu-pdfreports" href="index.php?module=PDFReports&action=index&idSite=1&period=day&date=today">Email Reports</a></span> | 
<span class="topBarElem" style="padding-right:70px">
<span id="languageSelection" style="position:absolute">
<form action="index.php?module=LanguagesManager&action=saveLanguage" method="post">
<select name="language" id="language">
<option value="" href="?module=Proxy&action=redirect&url=http://piwik.org/translations/">About Piwik translations</option>
<option value="am"  title="አማርኛ (Amharic)">አማርኛ</option>
<option value="ar"  title="العربية (Arabic)">العربية</option>
<option value="be"  title="Беларуская (Belarusian)">Беларуская</option>
<option value="bg"  title="Български (Bulgarian)">Български</option>
<option value="ca"  title="Català (Catalan)">Català</option>
<option value="cs"  title="Česky (Czech)">Česky</option>
<option value="da"  title="Dansk (Danish)">Dansk</option>
<option value="de"  title="Deutsch (German)">Deutsch</option>
<option value="el"  title="Ελληνικά (Hellenic)">Ελληνικά</option>
<option value="en" selected="selected" title="English (English)">English</option>
<option value="es"  title="Español (Spanish)">Español</option>
<option value="et"  title="Eesti keel (Estonian)">Eesti keel</option>
<option value="eu"  title="Euskara (Basque)">Euskara</option>
<option value="fa"  title="فارسی (Persian)">فارسی</option>
<option value="fi"  title="Suomi (Finnish)">Suomi</option>
<option value="fr"  title="Français (French)">Français</option>
<option value="gl"  title="Galego (Galician)">Galego</option>
<option value="he"  title="עברית (Hebrew)">עברית</option>
<option value="hu"  title="Magyar (Hungarian)">Magyar</option>
<option value="id"  title="Bahasa Indonesia (Indonesian)">Bahasa Indonesia</option>
<option value="is"  title="Íslenska (Icelandic)">Íslenska</option>
<option value="it"  title="Italiano (Italian)">Italiano</option>
<option value="ja"  title="日本語 (Japanese)">日本語</option>
<option value="ka"  title="ქართული (Georgian)">ქართული</option>
<option value="ko"  title="한국어 (Korean)">한국어</option>
<option value="lt"  title="Lietuvių (Lithuanian)">Lietuvių</option>
<option value="lv"  title="Latviešu (Latvian)">Latviešu</option>
<option value="nb"  title="Norsk (bokmål) (Norwegian Bokmål)">Norsk (bokmål)</option>
<option value="nl"  title="Nederlands (Dutch)">Nederlands</option>
<option value="nn"  title="Nynorsk (Norwegian Nynorsk)">Nynorsk</option>
<option value="pl"  title="Polski (Polish)">Polski</option>
<option value="pt-br"  title="Português brasileiro (Brazilian Portuguese)">Português brasileiro</option>
<option value="pt"  title="Português (Portuguese)">Português</option>
<option value="ro"  title="Română (Romanian)">Română</option>
<option value="ru"  title="Русский (Russian)">Русский</option>
<option value="sk"  title="Slovensky (Slovak)">Slovensky</option>
<option value="sl"  title="Slovenščina (Slovenian)">Slovenščina</option>
<option value="sq"  title="Shqip (Albanian)">Shqip</option>
<option value="sr"  title="Srpski (Serbian)">Srpski</option>
<option value="sv"  title="Svenska (Swedish)">Svenska</option>
<option value="te"  title="తెలుగు (Telugu)">తెలుగు</option>
<option value="th"  title="ภาษาไทย (Thai)">ภาษาไทย</option>
<option value="tr"  title="Türkçe (Turkish)">Türkçe</option>
<option value="uk"  title="Українська (Ukrainian)">Українська</option>
<option value="zh-cn"  title="简体中文 (Simplified Chinese)">简体中文</option>
<option value="zh-tw"  title="繁體中文 (Traditional Chinese (Taiwan))">繁體中文</option>
</select>
<input type="submit" value="go" />
</form>
</span>
<script type="text/javascript">
	piwik.languageName = "English";
	</script>
</span>
</div>
<div id="topRightBar">
<span class="topBarElem">Hello, <strong>maxim</strong>!</span>
| <span class="topBarElem"><a href='index.php?module=CoreAdminHome'>Settings</a></span>| <span class="topBarElem"><a href='index.php?module=Login&action=logout'>Sign out</a></span>
</div>
</div>
<div id="header">
<span id="logo">
<a href="index.php" title="Piwik # Open Source Web Analytics" style="text-decoration: none;">
<img src='http://stats.dumplin.ru/themes/default/images/logo-header.png' alt="Piwik" style='margin-left:10px' height='50px'/>
</a>
</span><noscript>
<div id="javascriptDisable">
JavaScript must be enabled in order for you to use Piwik in standard view.<br />However, it seems JavaScript is either disabled or not supported by your browser.<br />To use standard view, enable JavaScript by changing your browser options, then <a href="">try again</a>.<br />
</div>
</noscript></div>
<div class="ui-confirm" id="alert">
<h2></h2>
<input id="yes" type="button" value="Ok" />
</div>
<div id="multisites">
<div id="main">
<script type="text/javascript">
	var allSites = new Array();
	var params = new Array();
			allSites[0] = new setRowData(1, 0, 0, "-", 'maxya.ru', 'http://maxya.ru', '0', '0', ''-'');
			allSites[1] = new setRowData(2, 1548, 3517, "-", 'catalog-familly', 'http://catalog-familly.ru', '62.09%', '72.23%', '');
			allSites[2] = new setRowData(3, 4159, 15043, "-", 'hudeem', 'http://www.hudeem-vmeste.ru', '63.29%', '83.16%', '');
			allSites[3] = new setRowData(4, 0, 0, "-", 'rabotadoma', 'http://rabotadoma.net', '0', '0', ''-'');
			allSites[4] = new setRowData(5, 0, 0, "-", '2012surviver', 'http://2012surviver.com', '0', '0', ''-'');
			allSites[5] = new setRowData(6, 0, 0, "-", 'modeltrainrailroads', 'http://modeltrainrailroads.com', '0', '0', ''-'');
			allSites[6] = new setRowData(7, 0, 0, "-", 'bbeckel.com', 'http://bbeckel.com', '0', '0', ''-'');
			allSites[7] = new setRowData(8, 0, 0, "-", 'irabeckel.com', 'http://irabeckel.com', '0', '0', ''-'');
			allSites[8] = new setRowData(9, 0, 0, "-", 'boobs', 'http://myboobs4you.com', '0', '0', ''-'');
			allSites[9] = new setRowData(10, 0, 0, "-", 'irlsonline', 'http://irlsonline.com', '0', '0', ''-'');
			allSites[10] = new setRowData(11, 0, 0, "-", 'buycampingshower', 'http://buycampingshower.com', '0', '0', ''-'');
			allSites[11] = new setRowData(12, 0, 0, "-", 'The 2012', 'http://the-2012.net', '0', '0', ''-'');
			allSites[12] = new setRowData(13, 0, 0, "-", 'buildhomemadeboat.com', 'http://buildhomemadeboat.com', '0', '0', ''-'');
			allSites[13] = new setRowData(14, 0, 0, "-", 'numerologicalnumbers', 'http://numerologicalnumbers.com', '0', '0', ''-'');
			allSites[14] = new setRowData(15, 0, 0, "-", 'dogtrainingtips.6te.net', 'http://dogtrainingtips.6te.net', '0', '0', ''-'');
			allSites[15] = new setRowData(16, 0, 0, "-", 'easy-woodworking.com', 'http://easy-woodworking.com', '0', '0', ''-'');
			allSites[16] = new setRowData(17, 0, 0, "-", 'lin4.ws', 'http://lin4.ws', '0', '0', ''-'');
			allSites[17] = new setRowData(18, 0, 0, "-", 'pizdanashko', 'http://siteUrl.com', '0', '0', ''-'');
			allSites[18] = new setRowData(19, 0, 0, "-", 'Name', 'http://siteUrl.com', '0', '0', ''-'');
		params['period'] = 'day';
	params['date'] = 'today';
	params['evolutionBy'] = 'visits';
	params['mOrderBy'] = 'visits';
	params['order'] = 'desc';
	params['site'] = '
<div style='word-wrap: break-word; border: 3px solid red; padding:4px; width:70%; background-color:#FFFF96;'>
	    <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/>
	    Notice:</strong> <i>Array to string conversion</i> in <b>/var/www/piwik/tmp/templates_c/%%9A^9A3^9A34FA06%%index.tpl.php</b> on line <b>49</b>
<br /><br />Backtrace --><div style="font-family:Courier;font-size:10pt">#0  Piwik_ErrorHandler(...) called at [/var/www/piwik/tmp/templates_c/%%9A^9A3^9A34FA06%%index.tpl.php:49]#1  include(...) called at [/var/www/piwik/libs/Smarty/Smarty.class.php:1263]#2  Smarty->fetch(...) called at [/var/www/piwik/core/View.php:133]#3  Piwik_View->render(...) called at [/var/www/piwik/plugins/MultiSites/Controller.php:162]#4  Piwik_MultiSites_Controller->getSitesInfo(...) called at [/var/www/piwik/plugins/MultiSites/Controller.php:36]#5  Piwik_MultiSites_Controller->index(...) called at [:]#6  call_user_func_array(...) called at [/var/www/piwik/core/FrontController.php:138]#7  Piwik_FrontController->dispatch(...) called at [/var/www/piwik/index.php:53]</div><br />
 </pre></div><br />Array';
	params['limit'] = '50';
	params['page'] = 1;
	params['prev'] = "Previous";
	params['next'] = "Next";
	params['row'] = '<td class=\"multisites-label label\" >\n    <a title=\"View reports\" href=\"index.php?module=CoreHome&action=index&date=%date%&period=%period%&idSite=%idsite%\">%name%<\/a>\n    \n    <span style=\"width: 10px; margin-left:3px\"> \n	<a target=\"_blank\" title=\"Go to %main_url%\" href=\"%main_url%\"><img src=\"plugins/MultiSites/images/link.gif\" /><\/a>\n    <\/span>\n<\/td>\n<td class=\"multisites-column\">\n    %visits%\n<\/td>\n<td class=\"multisites-column\">\n    %actions%\n<\/td>\n<td class=\"multisites-column\">\n    %revenue%\n<\/td>\n	<td style=\"width:170px\">\n	    <div class=\"visits\" style=\"display:none\">%visitsSummary%<\/div>\n	    <div class=\"actions\"style=\"display:none\">%actionsSummary%<\/div>\n			    <div class=\"revenue\"style=\"display:none\">%revenueSummary%<\/div>\n	    <td style=\"width:180px\">\n    <div id=\"sparkline_%idsite%\" style=\"width: 100px; margin: auto\">\n	%sparkline%\n    <\/div>\n<\/td>\n';
	params['dateSparkline'] = '2012-02-19,2012-03-19';
</script>
<div class="top_controls_inner">
<div id="periodString">
<div id="date">Date range: <b>2012-03-19</b> <img src='themes/default/images/icon-calendar.gif' alt="" /></div>
<div id="periodMore">
<div class="period-date">
<h6>Date</h6>
<div id="datepicker"></div>
</div>
<div class="period-type">
<h6>Period</h6>            
<span id="otherPeriods">
<input type="radio" name="period" id="period_id_day" value="index.php?module=MultiSites&action=index&idSite=1&period=day&date=today" checked="checked" />
<label for="period_id_day" >Day</label><br />
<input type="radio" name="period" id="period_id_week" value="index.php?module=MultiSites&action=index&idSite=1&period=week&date=today" />
<label for="period_id_week" >Week</label><br />
<input type="radio" name="period" id="period_id_month" value="index.php?module=MultiSites&action=index&idSite=1&period=month&date=today" />
<label for="period_id_month" >Month</label><br />
<input type="radio" name="period" id="period_id_year" value="index.php?module=MultiSites&action=index&idSite=1&period=year&date=today" />
<label for="period_id_year" >Year</label><br />
<input type="radio" name="period" id="period_id_range" value="index.php?module=MultiSites&action=index&idSite=1&period=range&date=today" />
<label for="period_id_range" >Date range</label><br />
</span>
<input tabindex="3" type="submit" value="Apply Date Range" id="calendarRangeApply" />
<div id="ajaxLoadingCalendar" style="display:none"><div class="loadingPiwik"><img src="themes/default/images/loading-blue.gif" alt="" /> Loading data... </div></div>
</div>
</div>
</div>    
<span id="header_message" class="header_info">
<span class="header_short">
About Piwik 1.7.2-rc2
</span>
<span class="header_full">
<a href='?module=Proxy&action=redirect&url=http://piwik.org' target='_blank'> Piwik 1.7.2-rc2</a> is a collaborative project. <br /> If you're a fan of Piwik, you can help! Check out <a target='_blank' href='?module=Proxy&action=redirect&url=http://piwik.org/contribute/'> How to participate in Piwik?</a>
</span>
</span></div>
<div class="centerLargeDiv">
<h2>All Websites dashboard 
<span class='smallTitle'>(Total: <strong>5707</strong> visits, <strong>18560</strong> actions, <strong>0</strong> revenue)</span>
</h2>
<table id="mt" class="dataTable" cellspacing="0">
<thead>
<tr>
<th id="names" class="label" onClick="params = setOrderBy(this,allSites, params, 'names');">
<span>Website</span>
<span class="arrow "></span>
</th>
<th id="visits" class="multisites-column" style="width: 100px" onClick="params = setOrderBy(this,allSites, params, 'visits');">
<span>Visits</span>
<span class="arrow multisites_desc"></span>
</th>
<th id="actions" class="multisites-column" style="width: 110px" onClick="params = setOrderBy(this,allSites, params, 'actions');">
<span>Pageviews</span>
<span class="arrow "></span>
</th>
<th id="revenue" class="multisites-column" style="width: 110px" onClick="params = setOrderBy(this,allSites, params, 'revenue');">
<span>Revenue</span>
<span class="arrow "></span>
</th>
<th id="evolution" style=" width:350px" colspan="2">
<span class="arrow "></span>
<span class="evolution" style="cursor:pointer;" onClick="params = setOrderBy(this,allSites, params, $('#evolution_selector').val() + 'Summary');"> Evolution</span>
<select class="selector" id="evolution_selector" onchange="params['evolutionBy'] = $('#evolution_selector').val(); switchEvolution(params);">
<option value="visits"  selected >Visits</option>
<option value="actions" >Pageviews</option>
<option value="revenue" >Revenue</option>			</select>
</th>
</tr>
</thead>
<tbody id="tb">
</tbody>
<tfoot>
<tr>
<td colspan="8" class="clean" style="text-align: right; padding-top: 15px;padding-right:10px">
<a href="index.php?module=MultiSites&action=index&idSite=1&period=day&date=today&module=SitesManager&action=index&showaddsite=1"><img src='plugins/UsersManager/images/add.png' alt="" style="margin: 0;" /> Add a new website</a>
</td>
</tr>
<tr row_id="last" >
<td colspan="8" class="clean" style="padding: 20px">
<span id="prev" class="pager"  style="padding-right: 20px;"></span>
<span class="dataTablePages">
<span id="counter">
</span>
</span>
<span id="next" class="clean" style="padding-left: 20px;"></span>
</td>
</tr>
</tfoot>
</table>
</div>
<script type="text/javascript">
prepareRows(allSites, params, 'visits');

piwikHelper.refreshAfter(300 *1000);
</script>
</div>
</div>
</div>
</body>
</html>

Thanks for the report, the full output was useful. Apply this patch which should fix it: http://dev.piwik.org/trac/changeset/6066

Thank you for help. It fixed the issue.