TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 871
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 414
  • Total: 414

sorry... quick smf upgrade question (updated problem !)

Started by ed_m, November 22, 2009, 07:45:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ed_m2

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 !


mc

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.

ed_m2


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 !

G6Cad

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.

ed_m2


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 ?

JPDeni

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.

mc

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.

JPDeni

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.

ed_m2

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.

mc

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.