Tiki upgrade; after a new installation Tiki should warn nicely the admin he needs to rebuild the index (or do it)
- Status
- Open
- Subject
- Tiki upgrade; after a new installation Tiki should warn nicely the admin he needs to rebuild the index (or do it)
- Version
- 25.x
- Category
- Feature request
- Feature
- Installer (profiles, upgrades and server-related issues)
- Resolution status
- New
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
I upgraded a Tiki from 24 to 25 after completing the installation I landed on the homepage with errors displayed :
Field searchable does not exist in the current index. If this is a tracker field, the proper syntax is tracker_field_searchable.
And manyNo results for query.While this is normal, as I didn't ran the index:rebuild command, this is not very elegant and can be improved;
First, in such case a message with a link should be displayed about completing an action and not a page full of errors as that doesn't look good.
When the unified-index doesn't exist a modal warning over the page "Tiki detected that..." with an invitation to action "for your Tiki to work properly you must run rebuild command". If you have a small database you can run it from here else please use console.php.
A option to close the modal (admin choice to continue) and display the page.Ideally the installer should automatically do such operation.
One difficulty is that we don't want run from the HTML the index:rebuild command to run on a large database as there are chances of timeout.Tiki could suggest at the end of the installation process;
"You upgraded, before entering your new/upgraded Tiki you must run the index:rebuild command"If possible a database size detection and offering suggestion;
"The Tiki installer script detected that your database size is: nnn"
We recommend:- Small database => rebuild the index now
- Medium database => rebuild the index now
- Large database => rebuild the index using console.php
If the database size detection is not possible or too complicate (it may depend of server OS ?) we can simply give recommendation and offer to run the command for the user or suggest him to do it using console.php.- Importance
- 5
- Easy to solve?
- 5
- Priority
- 25
- 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
- 8227
- Created
- Saturday 12 November, 2022 07:21:23 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Saturday 12 November, 2022 07:21:23 UTC