I did all the 0.4 edits, but installed the 0.3 database.Phantom784 wrote:Did you run the installer with the old broken version, and if so, what did it tell you and how far did you get?
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 13807: Cannot modify header information - headers already sent by (output started at /shop_mod_install.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 13815: Cannot modify header information - headers already sent by (output started at /shop_mod_install.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 13819: Cannot modify header information - headers already sent by (output started at /shop_mod_install.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 13823: Cannot modify header information - headers already sent by (output started at /shop_mod_install.php:1)
Ah, sorry. I'd assumed that you had updated the ZIP file.Phantom784 wrote:If you recopy the installer from that post on the last page, it should work. Let me know, however. The installer does more than just run sql queries.
Code: Select all
The installer has detected that it needs to perform a fresh install, using the Cash Mod as its money system. Is this correct?
Code: Select all
//now we have to figure out what version is currently installed in the database to know if/how to upgrade
if(!$config['shop_mod_version'])
{
//either a fresh install or legacy version
$db->sql_return_on_error(false);
if (!$db->sql_query('SELECT * FROM ' . SHOP_ITEMS_TABLE))
{
$old_version = 0;
}
else
{
//uh oh, legacy version, we'll need some tricks to see which one
if (!$db->sql_query('SELECT * FROM ' . SHOP_ITEMS_USER_TABLE))
{
$old_version = '0.1.0';
}
elseif(!$db->sql_query('SELECT can_trash FROM ' . SHOP_ITEMS_TABLE))
{
$old_version = '0.2.0';
}
else
{
$old_version = '0.3.0';
}
}
$db->sql_return_on_error(false);
}
else
{
$old_version = $config['shop_mod_version'];
}
if ($old_version == SHOP_VERSION)
{
trigger_error('Version ' . SHOP_VERSION . ' already installed.');
}
Code: Select all
$old_version = '0.3.0';
Code: Select all
The installer has detected that it needs to perform a fresh install, using the Cash Mod as its money system. Is this correct?
Still getting:Phantom784 wrote:I updated to 0.4.0a, which should fix the installer problems.
Code: Select all
The installer has detected that it needs to perform a fresh install, using the Cash Mod as its money system. Is this correct?
Hmm... see anything wrong with the table structure? I can send you some images of rows in there too if you need me to.Phantom784 wrote:The detection is based on what it finds in the database, not what it finds in the files.