Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Aiheen aloitti: Yngwiedis - marraskuu 26, 2010, 10:02:50 IP

Otsikko: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: Yngwiedis - marraskuu 26, 2010, 10:02:50 IP
Hello...

I want to update my forum to the latest 1.1.12 version but i have a problem to update from 1.1.8 to 1.1.9 from Packages automatic installation.

I get this database error:
Fatal error: Call to undefined function db_extend() in /home/*****/public_html/****/Packages/temp/updateDatabase.php on line 16

Can someone please help me ?

Thank you.
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: Antechinus - marraskuu 26, 2010, 10:04:54 IP
Why not just use the 1.1.12 large upgrade pack and do it in one go? Any mods you are likely to be using are probably going to be available for 1.1.12, so you can just reinstall them after upgrading.
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: Yngwiedis - marraskuu 26, 2010, 10:16:53 IP
Because i already update 5 forums already this way without any problems.
This is the first one who give me error.
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: JimM - marraskuu 27, 2010, 12:44:34 IP
That line is part of the check to see if you are using 2.0.  What is significant/different about this forum as compared to the other 5 you have upgraded?
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: NanoSector - marraskuu 27, 2010, 05:22:48 IP
You don't need to upgrade to 1.1.9 anyway if you want to go to 1.1.12. Just upload the 1.1.12 files, run upgrade.php and it'll do the rest.
Maybe that's a try.
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: Yngwiedis - marraskuu 29, 2010, 09:27:41 AP
Lainaus käyttäjältä: JimM - marraskuu 27, 2010, 12:44:34 IP
That line is part of the check to see if you are using 2.0.  What is significant/different about this forum as compared to the other 5 you have upgraded?

Every forum is using diffrerent mods.
Maybe some mods in this forum create the error ?
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: Yngwiedis - joulukuu 01, 2010, 08:23:23 AP
Can i get some help please ?
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: Illori - joulukuu 01, 2010, 08:26:45 AP
you were given a suggestion that would work and you turned it down, there is not much else we can suggest you do unless you want to do manual upgrades and edit the files yourself.
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: Yngwiedis - joulukuu 01, 2010, 09:34:38 AP
I dont have any problem with the "normal" files.
The problem is with the updatedatabase file.

As JimM said the error i get is the check if i am using 2.0, which i dont.
Can i remove that check from the file ?
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: JimM - joulukuu 01, 2010, 09:40:22 IP
Try commenting out that part and see if that helps.  There is some reason that the if statement is true or it wouldn't even see those lines.

You might list what mods are installed on the forum that you are having difficulty with that are not on any of the other 5.
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: Yngwiedis - joulukuu 03, 2010, 09:29:31 IP
I remove that part:

// Using SMF 2.0?
if (!empty($smcFunc) && isset($smcFunc['db_query']))
{
// Get our packages.
db_extend('packages');

// Add the new column.
$smcFunc['db_add_column']('attachments', array(
'name' => 'file_hash',
'type' => 'varchar',
'size' => 40,
));

// We're making database changes so the database version changes.
updateSettings(array('smfVersion', 'SMF 2.0 RC1-1'));
}


from the updateDatabase.php file and eveything is ok.
I update to 1.1.12 with every automatic patch from the Packages.

Thank you very very much JimM  :)

Topic is solved.
Otsikko: Re: Problem updating from 1.1.8 to 1.1.9
Kirjoitti: JimM - joulukuu 04, 2010, 12:35:55 IP
Great.  Glad you got them all updated.  Thanks for using SMF. :)