Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Error happens right after step, where I've entered database credentials.

This happens because initial /system/config.php file version with default values only is put into OpCache and therefore any content change of that file isn't reflect in sequential "require $file;" constructs for 2 seconds. Unlikely this is what happens during installation: change file content in one place > read it in another place.

Problem happens only when OPCache (seeĀ http://php.net/manual/en/book.opcache.php) is enabled in PHP.

Solution

When changing contents of "/system/config.php" file during installation in the "KInstallToolkit::SaveConfig" method, then the opcode cache for that file needs to invalidated.

Related Tasks

Jira Legacy
serverSystem Jira
serverId513b375f-8291-3313-9d9f-704c39b1f915
keyINP-1507