Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Problem updating from 1.1.8 to 1.1.9

Aloittaja Yngwiedis, marraskuu 26, 2010, 10:02:50 IP

« edellinen - seuraava »

Yngwiedis

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.
AmityHost.com - The Affordable Host

Antechinus

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.

Yngwiedis

Because i already update 5 forums already this way without any problems.
This is the first one who give me error.
AmityHost.com - The Affordable Host

JimM

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?
Jim "JimM" Moore
Former Support Specialist

NanoSector

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.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Yngwiedis

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 ?
AmityHost.com - The Affordable Host

Yngwiedis

AmityHost.com - The Affordable Host

Illori

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.

Yngwiedis

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 ?
AmityHost.com - The Affordable Host

JimM

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.
Jim "JimM" Moore
Former Support Specialist

Yngwiedis

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.
AmityHost.com - The Affordable Host

JimM

Great.  Glad you got them all updated.  Thanks for using SMF. :)
Jim "JimM" Moore
Former Support Specialist

Advertisement: