Hi All,
I have problem with widgets, that appear blank or with the error message (error message from the attachment, where you can see “Unexpected data type to render”). The page where I put widgets looks like on the attachment. I didn’t do anything strange, just copied the code of widget and pasted on the page (code of that part of the page below that message).
I have checked all suggestions regarding blank widgets, and none of these work
The most strangest thing is, that if I log in to Piwik dashboard for that domain (in the same browser), and then I refreshed the page, all widgets are working fine. I have no idea, what’s wrong, especially, that in the other place of the website, there is one widget too, but this one works without any problems all the time.
I’d be grateful for any suggestion, what could cause that problem.
Thanks
Pete
Code of the page:
<h3>Visits</h3>
<div id="widgetIframe1" style="min-height: 250px;"><iframe width="100%" height="250" src="http://(...)/index.php?module=Widgetize&action=iframe&columns[]=nb_visits&columns[]=bounce_rate&moduleToWidgetize=VisitsSummary&actionToWidgetize=getEvolutionGraph&idSite=2&period=day&date=today&disableLink=1&widget=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
<h3>Goals overview</h3>
<div id="widgetIframe2" style="min-height: 160px;"><iframe width="100%" height="160" src="http://(...)/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Goals&actionToWidgetize=widgetGoalsOverview&idSite=2&period=day&date=today&disableLink=1&widget=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
<h3>Length of Visits</h3>
<div id="widgetIframe3" style="min-height: 140px;"><iframe width="100%" height="140" src="http://(...)/index.php?module=Widgetize&action=iframe&moduleToWidgetize=VisitorInterest&actionToWidgetize=getNumberOfVisitsPerVisitDuration&idSite=2&period=day&date=today&disableLink=1&widget=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
<h3>Visits by Day of Week</h3>
<div id="widgetIframe4" style="min-height: 350px;"><iframe width="100%" height="350" src="http://(...)/index.php?module=Widgetize&action=iframe&moduleToWidgetize=VisitTime&actionToWidgetize=getByDayOfWeek&idSite=2&period=day&date=today&disableLink=1&widget=1" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
Of course in the place of “(…)” is correct domain.
Error message:
Unexpected data type to render.
Backtrace:
#0 /var/www/html/Analytics/core/ViewDataTable/Cloud.php(74): Piwik_ViewDataTable->checkStandardDataTable()
#1 /var/www/html/Analytics/core/Controller.php(152): Piwik_ViewDataTable_Cloud->main()
#2 /var/www/html/Analytics/plugins/VisitorInterest/Controller.php(42): Piwik_Controller->renderView(Object(Piwik_ViewDataTable_Cloud), true)
#3 [internal function]: Piwik_VisitorInterest_Controller->getNumberOfVisitsPerVisitDuration(true)
#4 /var/www/html/Analytics/core/FrontController.php(138): call_user_func_array(Array, Array)
#5 /var/www/html/Analytics/core/FrontController.php(159): Piwik_FrontController->dispatch('VisitorInterest', 'getNumberOfVisi...', Array)
#6 /var/www/html/Analytics/plugins/Widgetize/Controller.php(67): Piwik_FrontController->fetchDispatch('VisitorInterest', 'getNumberOfVisi...', Array)
#7 [internal function]: Piwik_Widgetize_Controller->iframe()
#8 /var/www/html/Analytics/core/FrontController.php(138): call_user_func_array(Array, Array)
#9 /var/www/html/Analytics/index.php(53): Piwik_FrontController->dispatch()
#10 {main}