Hi all, I have been running Koha (development/git) on a Debian VM for some months now, with only a few problems so far. Tried recently to upgrade to version 3.08.11.002; when I access the Web installer however, I get the following error and cannot proceed further, as I’m constantly brought to the same point: Web installer › Step 3 We are upgrading from Koha 3.08.11.001 to 3.08.11.002, you must update your database Updating database structure Update report : • Status: 500 • Content-type: text/html • • <h1>Software error:</h1> • <pre>Undefined subroutine &main::CheckVersion called at /home/koha/kohaclone/installer/data/mysql/updatedatabase.pl line 5342. • </pre> • <p> • For help, please send mail to the webmaster (<a href="mailto:webmaster@koha">webmaster@koha</a>), giving this error message • and the time and date of the error. • • </p> Update errors : • [Sat Mar 30 17:23:15 2013] updatedatabase.pl: Undefined subroutine &main::CheckVersion called at /home/koha/kohaclone/installer/data/mysql/updatedatabase.pl line 5342. Any clues, any suggestions? uname –a reports ver 2.6.32.5-686 git shortlog is quite long to fit into a message, so I defer posting unless someone asks for it. Thank you in advance Manos Petridis PS Sent again, to the bugs list this time, as I fail to find my original posting in the March 2013 Koha Archives at http://lists.katipo.co.nz/pipermail/koha/2013-March/date.html nor at the custom search at http://www.google.com/cse?cx=003732456596742799141:4x-q-r-zypo&q=updatedatabase.pl%3A%20Undefined%20subroutine%20%26main%3A%3ACheckVersion%20called%20at%20%2Fhome%2Fkoha%2Fkohaclone%2Finstaller%2Fdata%2Fmysql%2Fupdatedatabase.pl%20line%205342&oq=updatedatabase.pl%3A%20Undefined%20subroutine%20%26main%3A%3ACheckVersion%20called%20at%20%2Fhome%2Fkoha%2Fkohaclone%2Finstaller%2Fdata%2Fmysql%2Fupdatedatabase.pl%20line%205342&gs_l=partner.12...262144.262144.0.262790.0.0.0.0.0.0.0.0..0.0.gsnos%2Cn%3D13..0.0.20j400j2..1ac.1.#gsc.tab=0&gsc.q=updatedatabase.pl%20petridis
Created attachment 17217 [details] screencap #1
Created attachment 17218 [details] screencap #2
Created attachment 17219 [details] latest updates applied
Please note a notion to a similar error, at the end of bug #9382 discussion.
I don't currently have the means to check it myself, but I know how you can check and fix it yourself. 1. Open the updatedatabase.pl file for editing 2. Search for the following <code>if ( CheckVersion($DBversion) ) {</code> 3. Replace with <code>if (C4::Context->preference("Version") < TransformToNum($DBversion)) {</code> 4. Retry web-installer Hope this helps
(In reply to comment #5) > I don't currently have the means to check it myself, but I know how you can > check and fix it yourself. > > 1. Open the updatedatabase.pl file for editing > 2. Search for the following > <code>if ( CheckVersion($DBversion) ) {</code> > 3. Replace with > <code>if (C4::Context->preference("Version") < TransformToNum($DBversion)) > {</code> > 4. Retry web-installer > > Hope this helps Without the <code></code> .. i thought bugzilla might be smart enough to recognition the tags and make it easier to read.
Thank you Derryn, it worked!
The good news was, it was never actually released, but yep there was a cut and paste error in git, fixed now