[Xerte-dev] Re: testing upgrade

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri Jul 13 10:13:30 BST 2012

Would it be easy to just do xampp install into /xertetoolkits18 and create a xertetoolkits18 database? Then you'd end up with two installations for the different versions, but nothing would screw up.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 13 July 2012 09:32
To: 'For Xerte technical developers'
Subject: [Xerte-dev] testing upgrade

I tested upgrading some older localhost xampp installations yesterday e.g. by dragging 1.8 code over the top of the earlier version and also running upgrade.php
As far as tests so far this seems to work fine but I did notice there had been a change in demo.txt at some point which could cause problems for those upgrading a xampp install. I guess this might be a question for Pat and a judgement call as to what to use for the guest account username....

1. At some point in demo.txt $_SESSION['toolkits_logon_username'] = "guest"; was changed to $_SESSION['toolkits_logon_username'] = "guest2"; and the current 1.7 zip download has $_SESSION['toolkits_logon_username'] = "guest2";

2. The xot1.8 code in /library/Xerte/Authentication/Guest.php sets guest as the username e.g.
public function getUsername() {
        return 'guest';

3. The reason this is relevant is that at the moment if someone upgrades a xampp 1.7 install which is using demo.txt code rather than switch.txt code they won't see their previous projects. Solution for that would be to change Guest.php to use guest2 rather than guest. However in older versions and I'm not sure exactly when the username in demo.txt was guest rather than guest2 so upgrading these works fine.

a) Should we change the 1.8 code to use guest2? e.g. will work ok for more recent installs and perhaps add a note about changing this for older installs
b) Or should we leave 1.8 code as guest and add a note about changing this for more recent installs?
c) Or is there a way we can check for in the code and use guest or guest2 accordingly?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120713/ad2f9be8/attachment.html>

More information about the Xerte-dev mailing list