Loading...
 
Skip to main content

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
(0)
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:update the code in \Installer::buildPatchList builds 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 get

Command 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::getDefaultInputDefinition needs 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+
Demonstrate Bug (older Tiki versions)
Ticket ID
7306
Created
Wednesday 04 March, 2020 14:23:08 UTC
by Jonny Bradley
LastModif
Friday 06 March, 2020 14:02:26 UTC


Show PHP error messages