TinyPortal

Development => Support => Installation => Topic started by: clothahump on February 14, 2011, 02:48:02 PM

Title: Re-install problem
Post by: clothahump on February 14, 2011, 02:48:02 PM
Link to my site: http://www.tropicalfishforums.co.uk
SMF version: SMF ver. RC5
TP version: TP ver. TinyPortal10RC1
Default Forum Language: English
Theme name and version: Default
Browser Name and Version: Firefox?
Mods installed: Not Applicable
Related Error messages: None

I tried re-installing TP after a short break while I trialled PortaMx (what a mistake that was), TP installs fine but it must be linking to the settings stored in the DB, I need to edit the front page but the block and modules are not listed as being on it, how do I clear it to start again?

EDIT.
Just tried re-installing again and had Error in Installation, ./Sources/Security.php needs manual edit as follows
Find
// Require a user who is logged in. (not a guest.) function is_not_guest($message = '') { global $user_info, $txt, $context, $scripturl;
Add After
// Require a user who is logged in. (not a guest.) function is_not_guest($message = '') { global $user_info, $txt, $context, $scripturl; // TinyPortal TPortal_init();

These lines are not applicable to RC5, all I could find was this.
// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
   global $user_info, $txt, $context, $sourcedir;
Title: Re: Re-install problem
Post by: IchBin on February 14, 2011, 04:05:33 PM
I'm not sure I understand what you are saying. Please use code tags when posting code, it make your post too hard to follow when all the code is mixed with the text.

This part does indeed exist in SMF2 RC5 as I'm copying this from the Security.php file:
// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
global $user_info, $txt, $context, $scripturl;


Then you add after that code this:
// TinyPortal
TPortal_init();
Title: Re: Re-install problem
Post by: clothahump on February 14, 2011, 04:11:19 PM
Strange, mine reads
// Require a user who is logged in. (not a guest.)
function is_not_guest($message = '')
{
   global $user_info, $txt, $context, $sourcedir;
Title: Re: Re-install problem
Post by: clothahump on February 14, 2011, 04:26:05 PM
Just ran winmerge with the tow files, one on server was different to the one in RC5 package yet it was uploaded yesterday and must have been correct?
Installed TP so just back to the original problem of the front page.
Title: Re: Re-install problem
Post by: IchBin on February 14, 2011, 04:36:58 PM
That is indeed strange. Glad you figured that out though. :)
Title: Re: Re-install problem
Post by: clothahump on February 14, 2011, 04:40:30 PM
If you look @ http://www.tropicalfishforums.co.uk/index.php you will see the old layout, yet another strange one is the Welcome to TFF is not even listed in TP admin area, how do I edit the front page if it shows nothing in admin?
Title: Re: Re-install problem
Post by: IchBin on February 14, 2011, 06:11:18 PM
I have no idea what you mean by "old layout". I've never seen your forum before so I have no idea what you are trying to tell me. The Welcome to TFF is an article. Please be very descriptive. When you say doesn't show in Admin, I have no idea what that means to you. Does it mean you don't see any links at all for TInyPortal in the admin? Or are you saying the articles link doesn't show so you can edit it?
Title: Re: Re-install problem
Post by: clothahump on February 14, 2011, 06:19:10 PM
The article was not in the TP admin area and was not in a category, I edited it via phpmyadmin and assigned it to a new category, once there I could edit via TP admin area and get everything back to normal.
I had TP installed last year, I thought a new install would overwrite the DB entries.
Title: Re: Re-install problem
Post by: IchBin on February 14, 2011, 07:09:00 PM
The install shouldn't overwrite things. It should keep them as they are. If the article was present previously I'd like to see if you can provide as many details as possible to see if I can reproduce the error.

What version of SMF and TP were you on?
Was the article in a category?
What type of article is it?
Did something happen to the previous category that it was one before the upgrade?

Any info you could provide would be great. I'll see if I can reproduce the problem and fix it if possible. :)

Thanks!
Title: Re: Re-install problem
Post by: clothahump on February 14, 2011, 07:13:50 PM
What version of SMF and TP were you on?  1.1.12
Was the article in a category? Yes
What type of article is it? HTML
Did something happen to the previous category that it was one before the upgrade? No
Title: Re: Re-install problem
Post by: IchBin on February 14, 2011, 08:27:18 PM
So you were on TPrc1 and SMF1.1.12. Then you upgraded to SMF2RC5 and TP1rc1?
Title: Re: Re-install problem
Post by: clothahump on February 14, 2011, 08:49:47 PM
As far as I can remember, yes.
Title: Re: Re-install problem
Post by: clothahump on February 14, 2011, 09:09:06 PM
Another problem now, since re-installing TP and adding articles it has slowed the response time drastically, hit save and sit back and wait for it to do something, I fear there is still something quite wrong with the install but it has to be better than PortaPotty, :)