Skip to content

Dashboard stats missing a var declaration, causing the script to stop executing

Summary

The dashboard.php stops executing during collective stats, as the $today var isn't declared in show_collective_stats.php during "joined growth rate" -- it should be defined on line 285:

$today = getdate();

Steps to reproduce

Load the dashboard.php page.

PHP version

PHP 8.0.16

What is the current bug behavior?

dashboard.php stops executing during the show_collective_stats.php require.

What is the expected correct behavior?

The full script executes.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information