Page MenuHomePhorge

PHP 8.1 "strlen(null)" exceptions block rendering the Account Creation page after installation
Closed, ResolvedPublic

Assigned To
Authored By
aklapper
Apr 26 2023, 11:16
Tags
None
Referenced Files
F283579: phorgeitauth-38-55.png
Apr 26 2023, 11:16
F283577: phorgeitauth-37-34.png
Apr 26 2023, 11:16
F283575: phorgeitauth-35-16.png
Apr 26 2023, 11:16
F283573: phorgeitauth-33-52.png
Apr 26 2023, 11:16
F283571: phorgeitauth-31-38.png
Apr 26 2023, 11:16
F283569: phorgeitauth-26-28.png
Apr 26 2023, 11:16
F283567: phorgeitauth-22-06.png
Apr 26 2023, 11:16
F283565: phorgeitauth-11-29.png
Apr 26 2023, 11:16

Description

  1. Install Phorge on a freshly set up Fedora 37 machine with PHP 8.1.18 installed; no existing previous MariaDB database.
  2. Open web browser.
  3. Only see an error message:

phorgeitauth-03-00.png (561×960 px, 15 KB)

  1. Run /var/www/html/phorge/phorge/bin/config set phabricator.developer-mode true to have stacktraces rendered in web browser.
  2. Run into various exceptions, then fix related code. (See screenshot gallery below.)
  3. Repeat previous step eight times.
  4. Finally get a login screen (without CSS/JS applied) of your fresh Phorge installation.

(FYI, the "MIME type (“text/html”) mismatch" problem blocking loading of CSS/JS is T15283 instead.)

Screenshot gallery from step 5, for no particular reason:

phorgeitauth-04-59.png (630×1 px, 83 KB)

phorgeitauth-11-29.png (1×1 px, 244 KB)

phorgeitauth-22-06.png (1×1 px, 196 KB)

phorgeitauth-26-28.png (1×1 px, 178 KB)

phorgeitauth-31-38.png (974×1 px, 224 KB)

phorgeitauth-33-52.png (974×1 px, 204 KB)

phorgeitauth-35-16.png (974×1 px, 204 KB)

phorgeitauth-37-34.png (974×1 px, 204 KB)

phorgeitauth-38-55.png (974×1 px, 67 KB)