Install an extension with schema updates
No installer error
Warning because an unitialized variable $version is used at line 1334 in the file root/libraries/src/Installer/Installer.php
Log::add(Text::sprintf('JLIB_INSTALLER_SQL_BEGIN_SCHEMA', $version), Log::INFO, 'Update');
Joomla 4.2 Alpha 3
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-05-31 13:01:43 |
Closed_By | ⇒ | richard67 |
Confirmed. In 4.1-dev we have that log statement below the code where we fetch the version from DB (and set it to '0.0.0' if not found), so 4.1-dev is ok: https://github.com/joomla/joomla-cms/blob/4.1-dev/libraries/src/Installer/Installer.php#L1179
In 4.2-dev we have that log statement before the code where we fetch the version: https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/Installer/Installer.php#L1334 . This was caused by PR #36506 .
The solution is to move that log to below so it comes just before this foreach: https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/Installer/Installer.php#L1364 .