TinyPortal

Development => Support => Installation => Topic started by: jncrenshaw on November 26, 2010, 08:23:01 PM

Title: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: jncrenshaw on November 26, 2010, 08:23:01 PM
Copied from elsewhere...
QuoteOK. So I Installed a fresh copy of RC4 onto the server. After a lot of trouble I managed to migrate over almost all the information from my old 1.x forum (NOT an easy task. This database was like 4 years old. Haha.) I had to tweak a fair amount of the database and code to get it to work but it finally jumped up and started putting along. So, I moved on to step two of updating the site. TPortal.
I've placed this in the SMF forum because I suspect that it's not working due to what I did initial to the TP install.
I installed the latest version of TP (I believe it's 1.1.10...) and now I can't see squat.
It loads the first part of the theme just fine. The header, the forum board name, etc... All the way down to the navigation loads just fine. Then it takes a poop...  :o
I get the following error:
Unable to load the 'tp_above' template.
So, I did the obvious and re uploaded the applicable files. No go.
So I decided to do the next obvious and check the error log in the DB to see what was happening. Very informative. The following are the applicable records for each attempted page load...
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.redwallslegacy.com%2Fforum%2Fstorage%2Ferrorlog.jpg&hash=b94b526b2562e7b6de0468ed4c639dbf002b88a8)
So. It appears as though there's a problem with finding that language file. That would be why it can't find those txt variables.
I double checked that the file IS on the server and CHMOed it to 777. Still no go. It's not ftp related.
I suspect that it's actually a database issue but I'm not familiar enough with SMF and TP to actually know where to look from here.
I've checked the TPSubs.php, the Subs.php, I've tried reverting to old versions of these files and reuploading the edited versions. I just can't figure out where I'm supposed to go from here. Any ideas?
Again, before this gets flagged as irrelevant and that I should go to the TP support forum, I believe this to be an SMF database issue, NOT a problem with TP.
Thanks for your help in advance!
Update:
Let me clarify. I've spent the last... 24 hours off and on tracking the code on this. The file modifications were made. I've hand checked the .mod file myself.
The error is being incurred because in TPSubs.php, it's making a call to a specific variable. It calls for $txt['tp-myarticles']. The error report tells us that it doesn't register this as a valid variable. Why? Because it's not calling the TPortal.english.php language file! Why? I can't figure that out. I've manually run code on the server to try to reproduce file modifications. I've manually uploaded all necessary files and have double checked nearly all the applicable code in the .mod file.
I'm positive enough that the mod did it's job that I'd put money on it.

Update 2:
OK. So the problem is definitely with the TPSubs.php file.
I'm going through the code and this is definitely where the language files are loaded. The problem has to be somewhere amongst the very complex language function code. It can't find the template files for TP.
I've attached the TPSubs.php file that's on the server.
Any clues as to why it's not loading the template files?
Could it be a database issue possibly?
Thanks again in advance!
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: WillyP on November 26, 2010, 08:49:04 PM
Have you tried running the repairsettings.php file from SMF?  Where you using the default theme when you installed TP?  Can we have a link to the SMF support topic?  Any php errors, any errors in the forum logs?

What is repair_settings.php? (http://www.simplemachines.org/community/index.php?topic=18096.0)
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: jncrenshaw on November 26, 2010, 08:55:22 PM
Yah. Here's the link to the SMF topic:
Right Here (http://"http://www.simplemachines.org/community/index.php?topic=410786.0")
No. There are no PHP errors at all.
Yes. There are errors in the SMF log. That's the image in the post. It just says that it can't find certain variables. That's it.
As I stated, I suspect this is a database issue. Ughh...
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: WillyP on November 26, 2010, 09:12:35 PM
I feel your pain... Did you run repair settings?  Are you sure the paths shown in the screen-shot are correct?  Repair setting can often fix the paths in the database.
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: jncrenshaw on November 26, 2010, 09:15:35 PM
Yah. I ran it... more than once.
I just can't figure it out.
I'd like to attempt a complete reinstall of TP. how can I run the Uninstall without access to the admin panel?
I'm trying to look that up right now. I'm assuming it shouldn't be that hard to force the server to run the uninstall script for TP.
Any ideas?
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: WillyP on November 26, 2010, 09:50:52 PM
How Do I Remove TinyPortal Once Installed? (http://docs.tinyportal.co.uk/index.php/topic,114.html) There are instructions here to remove TP manually. 

I see your site at:
www.redwallslegacy.com/forum/index.php
but in your screenshot you have:
www.redwallslegacy.com/web/content/forum/index.php

?
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: jncrenshaw on November 26, 2010, 10:03:26 PM
I mean, how can I uninstall using the xml file provided. that would be a lot easier... or do I HAVE to do it one by one by one by... Haha.

No, that's ok. It's a serverside path. One of the directories is called redwallslegacy.com and inside of that you have web content files. So the path is correct. I already verified that. It is confusing however...
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: ZarPrime on November 26, 2010, 10:10:48 PM
Out of curiosity, if uninstalling TinyPortal doesn't work correctly, you did do the following, as specified on the SMF website, right ?

Quote
Before you Upgrade
Step one before upgrading is always: BACKUP BACKUP BACKUP

It is absolutely imperative that you make a COMPLETE backup of the Forum you are upgrading prior to starting. This means all the of the files in your "forum" directory (or similar, download them to your computer if needs be or move them to a backup directory) and the database itself. A database backup can be made in the Administration Panel under Forum Maintenance.

Link --> http://docs.simplemachines.org/index.php?topic=12

The thing that bothers me the most was this post you made over at SMF ...

Quote from: jncrenshaw on November 26, 2010, 08:09:48 PM
As I said before. I don't believe this to be a Mod based problem. I can try over there too but I really suspect that this is caused by the database. I had to manually truncate, delete and add tables in the DB in order to update the forum. I suspect that something was damaged during that process and that is preventing the mod from functioning properly.

You should have never had to edit the database just to upgrade your site.  Who knows what you might have done?

ZarPrime
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: WillyP on November 26, 2010, 10:14:07 PM
To uninstall TP, without using the package manager, just overwrite the files with ones out of the SMF package, no need to touch the database.  If you have backup files from just before things borked, use that and you won't lose mods done before the backup.  Any mods done after the backup, will of course have to be reinstalled.
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: jncrenshaw on November 26, 2010, 10:27:40 PM
@ZarPrime I did this as suggest in the following SMF topic...
http://www.simplemachines.org/community/index.php?topic=392587.msg2717841#msg2717841
And yes... I ALWAYS backup. I've worked too long in the IT industry to make that mistake...

@WillyP
Yah. I may have to do that. That occured to me but I'm worried I may have issues trying to reinstall TP if the DB and TP files are still on the server. We'll see.
Thanks a lot for your help!  ;)
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: WillyP on November 26, 2010, 10:35:24 PM
Shouldn't be an issue if you overwrite all files.  Then the relevent DB tables will be overwritten.  Also turn off caching and flush the cache.
Title: Re: RC4 with TP 1.1 FAIL (Tried everything...)
Post by: ZarPrime on November 26, 2010, 10:42:44 PM
I'm not so sure.  If he made edits to the database, the best thing might be to revert the Forum and Database to the way it was before he started and then start over.  When upgrading an SMF 1.X forum, I think it's better to apply the large upgrade so that you get a fresh SMF.  Though this will wipe out all of your SMF Mods, most of the ones that worked fine with SMF 1.1.X won't work correctly with SMF 2.0 anyway.  All of your Mods would have to be reinstalled anyway, if they have been upgraded for SMF 2.0.

In this case, you could install TinyPortal 1.0 RC1 first and just use the advanced setting in the Package Manager to emulate SMF 2.0 RC3.

ZarPrime