TinyPortal

Development => Support => Topic started by: mnichols7 on July 29, 2008, 12:13:43 PM

Title: How to correct profile.php
Post by: mnichols7 on July 29, 2008, 12:13:43 PM
I have created a new forum at this location;

http://manichols.characters-environments.com/forum2/index.php

After creating a member I get this error when trying to access their profile.  Can someone please tell me how to fixed this.  I know where to find this file and to open it for editing I just don't know what I need to do. 

I am using TP-version, 1.0.5 Beta
SMF version, 1.1.5
theme, Endless Night by StormLrd

But I even get this error using the SMF default theme.

The new forum is created in a subdomain, manichols.  Does that make any differents?  I know that the front page will not load the images until you go to another section of the forum, then the images appear.  Will a subdomain cause this problem?

Thanks in advance for any advice and assistance.


Fatal error: Cannot redeclare tpsummary() (previously declared in /home/manicom/public_html/manichols/forum2/Sources/Profile.php:2956) in /home/manicom/public_html/manichols/forum2/Sources/Profile.php on line 3013
Title: Re: How to correct profile.php
Post by: G6Cad on July 29, 2008, 12:33:15 PM
That error indicates that you have a duplicate code entry in your profile.php file.

Open the file and find line 3013 and remove the duplicate code and save the file.

Title: Re: How to correct profile.php
Post by: mnichols7 on July 29, 2008, 01:46:51 PM
Thanks Carina,  By the way, I love how your new site is coming along.  I check in every once and awhile.

:)
Title: Re: How to correct profile.php
Post by: G6Cad on July 29, 2008, 01:55:18 PM
Thank you Marian, have been working quite a lot on it latly, Im not so found of all the mods, but it's fun to play around to see what they can do and whats useful to have :)
Title: Re: How to correct profile.php
Post by: mnichols7 on July 29, 2008, 06:00:50 PM
OK, I have run into another problem.  I loaded this file into my editor, coffe cup, and it does not give enoungh line number.  They stop at 2200.  I have search line by line, and I do not see any dulicated lines.  I did see dulicated one words in one line of code. Like here;  Would I remove one of these?

Or is there another way of correcting this error.  Would running repair.php work?

function tpsummary($memID)
{
        global $txt, $user_profile, $db_prefix, $context, $db_prefix;
        loadtemplate('TPprofile');
        $context['page_title'] = $txt['tpsummary'];
        TP_profile_summary($memID);
Title: Re: How to correct profile.php
Post by: IchBin on July 29, 2008, 06:02:38 PM
That shouldn't be a problem. You can remove one, but that shouldn't be causing your errors.
Title: Re: How to correct profile.php
Post by: mnichols7 on July 29, 2008, 06:12:49 PM
That's the only thing I see.  Supposed I deleted that account and registered it again, would that solved my error. I will try removing one of thoses.  There are about three of them.
Title: Re: How to correct profile.php
Post by: IchBin on July 29, 2008, 06:13:36 PM
Deleted what account? It doesn't have anything to do with the account. Its the code.
Title: Re: How to correct profile.php
Post by: mnichols7 on July 29, 2008, 06:20:55 PM
OK, I'll keep searching.