Loading...
 
Features / Usability

Features / Usability


Can tiki 22.1 still use console.php for rebuilding the index and clearing the cache?

posts: 2 Netherlands

I am in the process of updating our website from 18.8 to 21.4, and it worked relatively well. A few bugs popped up regarding MySQL v8.0 and some regular expressions for searching usernames, but those were fixed with some patches.

I then thought to try out 22.1 while I was at it. But in tiki 22.1 I noticed I no longer had access to all the cache clearing and index rebuilding functions in the command line.

For example, I used to rebuild the tiki index and clear the cache with commands:
# php /var/www/tiki-18.8/console.php index:rebuild
# php /var/www/tiki-18.8/console.php cache:clear

A rather large set of options was available on tiki-18.8 (and also on tiki-21.4):
 # php /var/www/tiki-18.8/console.php list

However when I type "/var/www/tiki/console.php list" (even on a cleanly installed tiki-22.1 with mysql 5.7 and php 7.4) I am met with a much smaller list than in my 21.4 website (See attached screenshot for the differences).

I also noticed and the Tiki status is a bit different, though I am not sure if this is just another way of wording the same state in the new 22.1 update or an actual difference:

21.4: Tiki Status: Autoloading->Installed->Database-Running->Tiki-Initialized->Database-in-Sync

22.1: Tiki-Files-Installed->DB-Running->DB-Installed->DB-Initialized->DB-in-Sync

I can still clear the cache and rebuild the index from the site, but I wondered if the usage of console.php was really consciously removed in the new tiki-22.1 or if it is some kind of configuration I haven't set correctly.

posts: 126757 United Kingdom

Hi Michel

Those commands are still in all versions of tiki, generally new ones get added rather than any getting removed.

Some commands, like index:rebuild need the database to be up to date (and accessible) so maybe you need to do that first?

posts: 2 Netherlands
Jonny Bradley wrote:

Hi Michel

Those commands are still in all versions of tiki, generally new ones get added rather than any getting removed.

Some commands, like index:rebuild need the database to be up to date (and accessible) so maybe you need to do that first?


Thanks for the quick reply.

I have completed the installation guide for a clean install of both version 21.4 and 22.1 (according to the instructions on https://doc.tiki.org/Tiki-Installation-Guide ).

And for 21.4 I got all functionality on the command line after those steps. And for the record, my version 22.1 website is running and can do everything regarding index rebuilding and cache clearing via the admin control panel, just not via the command-line using the console.php Tiki Console Tool as my screenshot suggests.

I did find other users with similar issues on this forum
https://tiki.org/forumthread76529-Can-t-Rebuild-Index-Not-Supported
and
https://tiki.org/forumthread76534-Most-functions-of-console-php-are-missing

However that last post was of a user that was using windows, and I'm simply running on Ubuntu 18.04 with apache2, php7.4 and MySQL 5.7.