SMF icon indicating copy to clipboard operation
SMF copied to clipboard

[3.0]: Upgrade breaks after backup due to User::$me not being initialized

Open Oldiesmann opened this issue 9 months ago • 0 comments

Basic Information

When running upgrade.php, you get a blank screen when you click "Continue" after the backup completes.

Steps to reproduce

  1. Have an SMF3 board from prior to the recurring events changes
  2. Run upgrade.php

Expected result

Upgrade completes succesfully

Actual result

PHP message: PHP Fatal error: Uncaught Error: Typed static property SMF\\User::$me must not be accessed before initialization in /.../Sources/Db/APIs/MySQL.php:258

Note that there is another issue that will occur once this one is fixed (this one doesn't apply to PostgreSQL but the other one applies to both), but I'll file a separate issue for that.

Version/Git revision

76f5ccf

Database Engine

All

Database Version

10.11.7-MariaDB-1:10.11.7+maria~ubu2204

PHP Version

8.3.6

Logs

No response

Additional Information

This is probably related to #8196 since I didn't have this problem while testing the other upgrade fixes last night.

Oldiesmann avatar May 05 '24 23:05 Oldiesmann