Console commands no longer respect multitiki --site param
- Status
- Closed
- Subject
- Console commands no longer respect multitiki --site param
- Version
- 21.x
- Category
- Conflict of two features (each works well independently)
- Regression
- Upgrade Blocker
- Feature
- Console / Command Line
MultiTiki - Resolution status
- Fixed or Solved
- Submitted by
- Jonny Bradley
- Volunteered to solve
- drsassafras
- Keep informed
- drsassafras
- Lastmod by
- Jonny Bradley
- Rating
- Description
Since recent console.php refactoring the --site parameter is no longer respected in (for instance) the database:update command.
When running
php console.php --site=example.com database:updatethe code in\Installer::buildPatchListbuilds the patch list from the default db/local.php database, not the db/example.com/local.php.
I think related to this, even once i've done the database:update in the browser, i cannot rebuild the index, when i do:
php console.php --site=example.com index:rebuild
i getCommand not available at this stage.
The database needs to be updated. Solved by: php console.php database:update
I think this commit was the source of the regression and i'm afraid i can't fix it 2ee93280
- Solution
I think
\Tiki\Command\Application::getDefaultInputDefinitionneeds to be called before tiki-setup.php is included
Thanks Brendan for cadead9b , it seems to work for me, @lindon, can you check too then we close this one?
- Workaround
Use the browser tiki-install.php instead 😬
However, this then means you cannot clear the caches of rebuild the index...- Importance
- 6
- Easy to solve?
- 3
- Priority
- 18
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 7306
- Created
- Wednesday 04 March, 2020 14:23:08 UTC
by Jonny Bradley - LastModif
- Friday 06 March, 2020 14:02:26 UTC