Re: [Tiki-devel] Database version and Command not defined

aris002 via TikiWiki-devel <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
 Hi, 
I have got the same problem now on master except the installer doesn't help either. 
The problem popped up when I changed language settings on my site... 
Shouldn't at least tiki show here which version it is using now and which is available/required for update? Or have an addition "you can bang your head into a wall if those options don't work"?  Or distinguish that I need to update languages somehow?
The note as it is now:
====
Your database requires an update to match the current Tiki version. Please proceed to ..theinstaller... Using Tiki with an incorrect database version usually provokes errors. If you have shell (SSH) access, you can also use the following, on the command line, from the root of your Tiki installation: php console.php database:update====
which comes from installlib.php
Also, is it not possible 
to check those db versions or language update requirement using other methods than this?

function requiresUpdate() // {{{ { return count(Patch::getPatches([Patch::NOT_APPLIED])) > 0; } // }}}
Ok, I am a developer and I used to dive deep and this time my intuition after 15 years with tiki helped me that I changed local.php dbversion_tiki from 22.1 to 22.2 and then installer worked.  But what about people who are very new tiki? 

Maybe at least it is worth to mention to change db_version=xx in local.php  on this note?

Aris
   On Tuesday, 6 April 2021, 22:04:23 EEST, Crossman, David (DGRI-Consultant) <david.crossman.externe-3LJ5X92lM5eafr9EPe0ZzS/[email protected]> wrote:  
 
 #yiv8735932532 #yiv8735932532 -- _filtered {} _filtered {} _filtered {}#yiv8735932532 #yiv8735932532 p.yiv8735932532MsoNormal, #yiv8735932532 li.yiv8735932532MsoNormal, #yiv8735932532 div.yiv8735932532MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:sans-serif;}#yiv8735932532 a:link, #yiv8735932532 span.yiv8735932532MsoHyperlink {color:blue;text-decoration:underline;}#yiv8735932532 pre {margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;}#yiv8735932532 span.yiv8735932532PrformatHTMLCar {font-family:Consolas;}#yiv8735932532 .yiv8735932532MsoChpDefault {font-size:10.0pt;} _filtered {}#yiv8735932532 div.yiv8735932532WordSection1 {}#yiv8735932532 
Hi Luci,
 
Thank you for your answer. I did run the update command but the problem is:
 
When I run console.php command, whith common parameters like Index:rebuild or i:r, cache : clear or c:c, there is error messages
 
Example for console.php database:update, I obtain:
 
Command “database:update" is not defined.
 
Did you mean one of these?
 
      database:configure
 
      translation:englishupdate
 
      vcs:update
 
  
 
We also used the Tiki installer and it seems to have updated the database.
 
  
 
We didn’t encounter any problems while using the terminal with older Tiki versions.
 
  
 
Thanks again
 
  
 
David
 
De : luciash via TikiWiki-devel <[email protected]>
Envoyé : 6 avril 2021 12:47
À : [email protected]
Cc : luciash <[email protected]>
Objet : Re: [Tiki-devel] Database version and Command not defined
 
  
 
Hi David, you need to run exactly this on the command line (terminal access via ssh):
 
php console.php database:update
 
Or you can do it through the Tiki Installer (by accessing tiki-installer.php in your browser).
 
luci
 
  
 
On 06.04.2021 18:23, Crossman, David (DGRI-Consultant) wrote:
 


 
Hi,
 
 
 
I’m getting this message (tiki-22.1) that my database needs to be updated to the actual Tiki version by using  php console.php database: update commands. Can’t make any command work. I’m getting “ Command "database:update" is not defined”. Anything to do with PHP or Tiki Console Tool? Any ideas?
 
 
 
Thank you
 
 
 
David Crossman
 
Programmeur – Projet Tikiwiki
Direction des solutions applicatives
 
Direction générale des ressources informationnelles
Ministère de l'Énergie et des Ressources naturelles
Ministère des Forêts, de la Faune et des Parcs
5700, 4 Avenue O., F-303 
Québec (Québec) G1H 6R1
Téléphone : 418 627-6266, poste 2971
David.Crossman.externe-3LJ5X92lM5eafr9EPe0ZzS/[email protected]
 
mern.gouv.qc.ca
 
mffp.gouv.qc.ca
 
 
 




 _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel 
_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
image001.gif (image/gif, 1.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.