User tests: Successful: Unsuccessful:
Pull Request for Issue #29354 .
Since PR #28350 , the db_select option of the session variables for the database connection is not used anymore. But with thas PR it has been forgottento remove it from the parameters of the alternative database connection which is used for the attempt to create a new database when using the MySQL (PDO) or the PostgreSQL (PDO) database driver and the database doesn't exist and the user has privilege to create a database.
This causes a PHP notice "Undefined property: stdClass::$db_select in installation\src\Model\DatabaseModel.php on line 336" on PHP 7.4.
This Pull Request (PR) here solves that.
It is not an issue in J3.
Could be merged by review even.
But for real tests: Make a new installation with current 4.0-dev plus the patch of this PR applied. Try different scenarios:
In no case there is any PHP notice "Undefined property: stdClass::$db_select in installation\src\Model\DatabaseModel.php on line 336".
Under certain conditions (PHP version?) PHP notice "Undefined property: stdClass::$db_select in installation\src\Model\DatabaseModel.php on line 336".
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Installation |
@juliopontes Please test this Pull Request (PR). Just replace the changed file by the one of this PR, or you even can to the 2 small changes with an editor, or use patchtester if you have that. Then start a new installation. If it works, mark the test result in the issue tracker here https://issues.joomla.org/tracker/joomla-cms/29556 by using the "Test this" button, selecting the appropriate test result and then using the "Submit test result" button.
So looks like before we preserved the value
joomla-cms/installation/model/database.php
Lines 300 to 308 in efed650
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-06-10 22:20:56 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Merging on review combined with the good test
Thanks.
- but I can't even see in J3 where you can actually set it
🤔
Yes, strange.
I have tested this item✅ successfully on b135adb
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29556.