Skip to content

[3.0]: Cannot install 3.0 - Typed static property SMF\User::$me must not be accessed before initialization #9336

Description

@sbulen

Basic Information

After adding the admin info: install.php?step=5

Fatal error: Uncaught Error: Typed static property SMF\User::$me must not be accessed before initialization in D:\wamp64\www\11van30\Sources\Time.php:191
Stack trace:
0 D:\wamp64\www\11van30\Sources\Time.php(817): SMF\Time->__construct('@1785601571')
1 D:\wamp64\www\11van30\Sources\Maintenance\Tools\Install.php(1151): SMF\Time::strftime('%Y-%m-%d', 1785601571)
2 D:\wamp64\www\11van30\Sources\Maintenance\Maintenance.php(298): SMF\Maintenance\Tools\Install->finalize()
3 D:\wamp64\www\11van30\install.php(31): SMF\Maintenance\Maintenance->execute(1)
4 {main} thrown in D:\wamp64\www\11van30\Sources\Time.php on line 191

Happens in both MySQL 8.4.4/PHP 8.4.5 and MariaDB 11.5.2/PHP 8.4.5.

If you ignore the error & try to bring up the forum, you'll get:

Cannot assign null to property SMF\User::$dataset of type SMF\UserDataset

Steps to reproduce

1.Run a fresh install, using current GitHub
2.

Expected result

Forum

Actual result

No response

Version/Git revision

3.0 Alpha 4 - current as of today

Database Engine

All

Database Version

MySQL 8.4.4 & MariaDB 11.5.2

PHP Version

8.4.5

Logs

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions