Quote:
Originally Posted by Link14716
I'll look into it. It seems like an RC2 installer bug. Install it from the RC1 installer insetad for now.
|
Looking at the install code for RC2, I'm personally thinking that perhaps it lies somewhere around here?
Between line 84 and line 100
Code:
if ($vboptions['shoutbox_version_no_touch'] != SHOUTBOX_VERSION_SH) {
// Version auto-detected (RC1 and above)
echo "We have automatically detected your shoutbox verion. You may start the upgrade process by clicking the link below.<br /><br />";
echo "<a href='".THIS_SCRIPT.".php?step=2&version=".$vboptions['shoutbox_version_no_touch']."'>Click here to continue.</a>";
exit;
} elseif ($vboptions['shoutbox_version_no_touch'] == SHOUTBOX_VERSION_SH) {
echo "We have automatically detected your current shoutbox version, and it appears to be up-to-date.";
exit;
} else {
// Version cannot be auto-detected (Gamma 1 and below)
echo "We cannot detect your shoutbox version. This means that you are running 1.0 Gamma 1 or below, or have not installed the shoutbox yet. You may use this script to continue upgrading <b>but only if you are running 1.0 Gamma 1 or doing a clean install</b>! This script cannot upgrade your shoutbox if you are running Beta 5 or below, so upgrade to Gamma 1 manually first!<br /><br />";
echo "If you are running 1.0 Gamma 1, ";
echo "<a href='".THIS_SCRIPT.".php?step=2&version=10g1'>click here to start the upgrade to ".SHOUTBOX_VERSION.".</a> ";
echo "If you want to do a new install of the shoutbox, ";
echo "<a href='".THIS_SCRIPT.".php?step=2&version=new'>click here to install ".SHOUTBOX_VERSION.".</a> ";
exit;
}
Since back on line 61 your conditionals look for shoutbox_version_no_touch, and if not found they set $nextversion = "1.0 Release Candidate 1", but in the line 84 code it again looks for the shoutbox_version_no_touch, but has nothing in that conditional about the $nextversion variable?
Perhaps adding a conditional that compares what was set in $nextversion versus what is in SHOUTBOX_VERSION, or SHOUTBOX_VERSION_SH? The reason I say this is that for a clean install the following (from line 84) will always be "true":
Code:
$vboptions['shoutbox_version_no_touch'] != SHOUTBOX_VERSION_SH
because $vboptions['shoutbox_version_no_touch'] will be non-existant on a clean install, and therefore will never be = SHOUTBOX_VERSION_SH.
did that even make sense?