TinyPortal

Development => Support => Installation => Topic started by: ed_m2 on November 22, 2009, 07:45:15 PM

Title: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on November 22, 2009, 07:45:15 PM
bit of a numpty question, would be good to see a mention in docs or faq.

a long overdue update to smf 1.1.10, so upgrading using large package from smf.
smf is on 1.0.5beta1 (might update that a lil later!).

is conventional wisdom to uninstall all mods, do the upgrade and then reinstall ?

i assume uninstall will only demod files & not remove db data... and reinstall will pick up on db already there ?

...and whats the best path of action if the TP package won't uninstall ?
(fails on index.template.php & index.php at the mo)

just put my mind at rest tah !

Title: Re: sorry... quick smf upgrade question
Post by: mc on November 22, 2009, 07:59:52 PM
Yes to the first two questions.

As for the third, those two files will be getting overwritten by the SMF update, so if that's the only 2 files that TP fails to uninstall, then uninstall TP, then overwrite those files (you're site probably won't work after you uninstall TP, but should work again as soon as you've replaced those files).


Off course, remember to take a full back-up (files + db) so if things do go wrong, then you can just revert to the back-ups.
Title: Re: sorry... quick smf upgrade question
Post by: ed_m2 on November 22, 2009, 09:21:45 PM

thanks.
ok i bit the bullet.

the upgrade went ok.
the tp reinstall was all succesful apart from themes/default/index.template.php

editing it manually shows a few other packages not properly uninstalled and all the tp stuff still there (looking at the manual mod instructions).. although i overwrote it & uploaded it for good measure.

unfortunately tho i now have a fatal error when accessing anything...

"Fatal error: Call to undefined function: tp_loadtheme() in /home/covtri/public_html/forum/Sources/Load.php on line 1133"

now ive got myself in trouble with this before... as my install is in /forum ... but my index.php is in the root..
if i access index php in the forum directory it all works... so i guess paths are upset somewhere ??

ideas on a postcard pls !
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: G6Cad on November 23, 2009, 06:13:04 AM
Seems like you coosed to go for the small update of SMF and that left a lot of old code in your SMF files.
Go to SMF and download the big upgrade package for SMF 1.1.10 and extract, upload manually and overwrite all your old SMF files.
That will bring all fresh SMF files for you to install your mods to.
When you have replaced all the files, install tp again through your packagemanager and then your other mods.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on November 23, 2009, 08:28:53 AM

ok i've just been through the process again for good measure.
am using the large upgrade, not the small one.

smf 1.1.10 works ok standalone both from the form directory and the root.
it works ok on both default theme & my custom one.

on this occasion TP install didn't have any errors.

accessing through the forum directory works fine.
accessing from the root brings up the fatal error:
"Fatal error: Call to undefined function: tp_loadtheme() in ........./forum/Sources/Load.php on line 1133"

which to my mind makes it a TP issue ?
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: JPDeni on November 23, 2009, 09:52:28 PM
Quote
accessing through the forum directory works fine.
accessing from the root brings up the fatal error:

I don't know what you mean about "accessing from the root." The TP files are in the same directory as the forum files.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: mc on November 24, 2009, 01:28:15 AM
JPDeni, this is the bit of interest -
Quote from: ed_m on November 22, 2009, 09:21:45 PM
now ive got myself in trouble with this before... as my install is in /forum ... but my index.php is in the root..
if i access index php in the forum directory it all works... so i guess paths are upset somewhere ??

In the index.php in the root directory, you'll need to change all the require_once calls, and add '/forum'.
At least I think that's all that will be needed.

Other option is you could create a redirect to redirect the root to the forum.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: JPDeni on November 24, 2009, 03:28:50 AM
Yes, I saw that before and thought that someone else would address it. I wouldn't be able to debug the problem unless I could see the code for his index.php file, though. Or see the site. Or something.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on November 24, 2009, 07:01:14 AM
Quote from: mc on November 24, 2009, 01:28:15 AM
In the index.php in the root directory, you'll need to change all the require_once calls, and add '/forum'.
At least I think that's all that will be needed.

Other option is you could create a redirect to redirect the root to the forum.

ah cheers i'll look into that tonight.

although i'd have thought the boardurl etc in settings.php should take care of this, and the TP installation should add paths relative to this.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: mc on November 24, 2009, 02:46:07 PM
Quote from: ed_m on November 24, 2009, 07:01:14 AM
[although i'd have thought the boardurl etc in settings.php should take care of this, and the TP installation should add paths relative to this.

Good point.
Just checked index.php again, and you'll only need to modify the require_once call to Settings.php, as it's relying on Settings.php being in the same directory as index.php.
Whereas all the other require_once calls are relying on $sourcedir, which is set in Settings.php.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on November 24, 2009, 03:10:38 PM
Quote from: mc on November 24, 2009, 02:46:07 PM
Good point.
Just checked index.php again, and you'll only need to modify the require_once call to Settings.php, as it's relying on Settings.php being in the same directory as index.php.
Whereas all the other require_once calls are relying on $sourcedir, which is set in Settings.php.

ah well.. it is .. smf seems quite happy with an index.php in both root & forum directory with appropriate settings.php in each (although normally i have a redirect in the forum directory).

it is only when i install the TP package that the root version stops working with that error.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on December 08, 2009, 07:42:20 AM
hi all

quick tp version query.. a long while ago i was using TP 0.98 & upgraded to a 1.0beta.

the package i dl is called: TPv1.05beta1.zip and dated 23/08/08
& shows up in package manager as: 1.052
& the install page header says: Install/Upgrade v1.0.5 beta 1Ã,©2004-2008

which seems to be labelled as a later release to those currently available on site... so what is the latest version in relation to what i already have ?
and is it the right thing to do to uninstall this current TP & install the latest TP package ?

muchos gracias
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: mc on December 08, 2009, 11:44:59 AM
Latest public version is 1.0 Beta 4.

The v1.05 beta 1, was the original public beta version of v1.0.
Bloc changed how he was naming the betas at some point, which has caused a bit confusion.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on December 08, 2009, 01:06:40 PM
ah thanks, must be why i'm confused now then....

from 0.x to 1.x was some db change which meant it wasn't backward compatible.. has the db changed since ?

any issue with installing latest beta over the top of the db created by this first 1.0 beta ?
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: mc on December 08, 2009, 01:11:42 PM
That, I personally don't know.

I went straight from 0.98 to beta 4, as that was what was available when I updated my sites.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on December 08, 2009, 01:13:17 PM
cheers.
i shall sit tight and await a guru ;)
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: IchBin on December 08, 2009, 04:10:59 PM
Shouldn't be any problems going from each beta version. Just uninstall, and install the latest beta. After you make a backup of course. :)
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on December 08, 2009, 04:14:21 PM
naturlich.... tah

current version install hanging at redirect at the mo... we shall see !

hmmm gave up.. seems to have installed.. where should the redirect have gone / done ?
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on December 08, 2009, 04:26:50 PM
hmmm ok, now my theme won't work  ::)

should have read the release topic i guess, how has theme handling changed?
my customised theme used with the first beta now returns for all TP pages:

Fatal error: Call to undefined function: tppagelayout1() in /home/XXXX/public_html/Sources/Load.php(1742) : eval()'d code on line 208

which i'm sure you'd tell me would be expected if i had read the threads for the last few months!

sorry to be a numpty.

the custom theme was a heavily modified default , and i guess default has changed enough to upset things.

off for a run now ! will play more later.. thx in advance for anymore pointers.

e.
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on December 08, 2009, 06:15:05 PM
ok took my modified:
TPBlockLayout.template.php
TPBlocks.template.php

out of my theme dir so it reverts to default version and all works ok.

i'm sure i'll remember why i modded those files soon enough.
(oh actually one was to lose the upshrink arrows hmmm)

thanks for listening  ;)
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: G6Cad on December 08, 2009, 06:32:29 PM
Talking to yourself Ed ?  ;D
Title: Re: sorry... quick smf upgrade question (updated problem !)
Post by: ed_m2 on December 08, 2009, 06:42:27 PM
looks that way.
helps to write it down anyway :)