SiT! Bugs - SiT!
View Issue Details
0000621SiT!setup/configpublic2009-03-29 13:232009-08-16 14:38
kieran 
ivan 
immediateblockalways
closedfixed 
3.45 
3.503.50 
0000621: 3.45 doesn't install schema if a blank DB exists
A clean install of 3.45 missed the installation of tables and creation of an admin user.
Create an empty database before running setup. If the database already exists setup.php assumes the schema also already exists (which it doesn't)
No tags attached.
Issue History
2009-03-29 13:23kieranNew Issue
2009-03-29 13:28paulhNote Added: 0000864
2009-03-29 13:33kieranNote Added: 0000865
2009-03-29 13:34kieranNote Added: 0000866
2009-03-29 13:42kieranNote Added: 0000867
2009-03-29 13:44kieranNote Edited: 0000867
2009-03-29 14:02kieranNote Added: 0000868
2009-03-29 14:02kieranAssigned To => ivan
2009-03-29 14:02kieranStatusnew => assigned
2009-03-30 13:19ivanTarget Version => 3.50
2009-03-30 13:19ivanSteps to Reproduce Updated
2009-03-30 13:30ivanNote Added: 0000871
2009-03-30 13:38kieranStatusassigned => confirmed
2009-03-30 13:38kieranSummary3.45 doesn't install => 3.45 doesn't install schema if a blank DB exists
2009-03-30 14:01ivanNote Added: 0000873
2009-03-30 14:01ivanStatusconfirmed => resolved
2009-03-30 14:01ivanResolutionopen => fixed
2009-03-30 14:01ivanFixed in Version => Current SVN
2009-08-16 13:17ivanFixed in VersionCurrent SVN => 3.50
2009-08-16 14:38ivanNote Added: 0001587
2009-08-16 14:38ivanStatusresolved => closed

Notes
(0000864)
paulh   
2009-03-29 13:28   
I did a clean install of 3.45 (from the tar.gz) the other week and didn't have a problem
(0000865)
kieran   
2009-03-29 13:33   
I think there's a route through setup that misses it, I didn't have a config file or an attachment folder, I suspect it's the latter as it's new code.
(0000866)
kieran   
2009-03-29 13:34   
Also, a fair few people had the same problem on the forums and IRC.
(0000867)
kieran   
2009-03-29 13:42   
(edited on: 2009-03-29 13:44)
I think it's this code, I think it's meant to be called right at the end

case 'checkatttdir':
if (file_exists($CONFIG['attachment_fspath']) == FALSE)
{
    <snip>
}
elseif (is_writable($CONFIG['attachment_fspath']) == FALSE)
{
    <snip>
}
else
{
    echo "<p class='info'>You can now go ahead and run SiT!.

";
    echo "<form action='index.php' method='get'>";
    echo "<input type='submit' value=\"Run SiT!\" />";
    echo "</form>\n";
}
break;

(0000868)
kieran   
2009-03-29 14:02   
I've tried changing:

    echo "<p class='info'>You can now go ahead and run SiT!.";
    echo "<form action='index.php' method='get'>";
    echo "<input type='submit' value=\"Run SiT!\" />";
    echo "</form>\n";

to use setup_button() but none of:
echo setup_button('', 'Install');
echo setup_button('checkdbstate', 'Install');
echo setup_button('createdb', 'Install');

seem to work correctly, the first one installs the DB correctly but misses the admin user setup. Assigning to Ivan as I can't work out what needs doing.
(0000871)
ivan   
2009-03-30 13:30   
http://sitracker.org/wiki/FAQ#After_installing_I_see_an_error_message_.22Table_.27sit.interfacestyles.27_doesn.27t_exist.22 [^]
(0000873)
ivan   
2009-03-30 14:01   
Fixed in svn trunk r5295
(0001587)
ivan   
2009-08-16 14:38   
Released in 3.50rc1