@mattab opened this Issue on July 20th 2017 Owner

On demo2 getting all these errors:
could it maybe be a regression in master?

WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\AverageTimeOnSite could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\BounceRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ActionsPerVisit could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ConversionRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\AverageTimeOnSite could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\BounceRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ConversionRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ActionsPerVisit could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\AverageTimeOnSite could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\BounceRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ActionsPerVisit could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ConversionRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\AverageTimeOnSite could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\BounceRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ActionsPerVisit could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ConversionRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\BounceRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ConversionRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\AverageTimeOnSite could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ActionsPerVisit could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\BounceRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ConversionRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ActionsPerVisit could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\AverageTimeOnSite could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\AverageTimeOnSite could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\BounceRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ActionsPerVisit could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\ConversionRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\BounceRate could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING: /storage/piwik-demo2/www/demo2.piwik.org/core/DataTable/Renderer/Console.php(149): Recoverable Error - Object of class Piwik\Plugins\CoreHome\Columns\Metrics\AverageTimeOnSite could not be converted to string - Piwik 3.0.4 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
@sgiehl commented on July 20th 2017 Member

There were no changes in the corresponding pieces of code, so guess the error was there a bit longer.
Problem is that the ProcessedMetrics are added to the DataTable Metadata. The Console-Renderer tries to echo all metadata of the data table. As the Columns do not implement a __toString method an error occurs.

Actually that should be easy to fix. But I'm not sure what the expected behavior would be here. Should the object be serialized or should the class name be printed?

@mattab Any thoughts?

@mattab commented on July 21st 2017 Owner

Not sure when this is triggered so not sure what the best fix would be. Maybe we can start displaying the classname and/or any "key attribute" from this object in toString?

@sgiehl commented on July 21st 2017 Member

What exactly is that Console Renderer even good for?
I would expect it can print a DataTable on console, e.g. for logging. But It currently outputs some parts with html tags, which doesn't make any sense to me.

@mattab commented on July 24th 2017 Owner
  • Looks like we should maybe just remove the Console renderer then. Moving to 3.1.0 as it would be a API BC break
@sgiehl commented on July 24th 2017 Member

We can also change the Console renderer to output everything in plain text.

This Issue was closed on September 1st 2017
Powered by GitHub Issue Mirror