• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Error after clicking on Daily Statistics link in ACP


Well-known member
The error occurs not only there, you'll be able to get it on a click on "Attachment Browser" and other parts too

PHP Version 5.2.6-1+lenny10


Well-known member
What version of PHP are you running?
I've tested it on my local machine on MAMP server with PHP 5.2.17 and on the production server with PHP 5.2.6-1+lenny9. In both cases I've got this error.

On PHP 5.3.6 there is no such error.


XenForo developer
Staff member
Fixed. library/XenForo/Helper/Date.php, change:
$presets[$date->modify($presetData[0])->format('Y-m-d')] = new XenForo_Phrase($presetData[1]);
$presets[$date->format('Y-m-d')] = new XenForo_Phrase($presetData[1]);


Well-known member
For some reason although you should be able to chain function calls, php sometimes has a problem when chaining inside an array parameter. In php 5.3 the bug is fixed.