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,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 648
  • Total: 649
  • tino

How to correct profile.php

Started by mnichols7, July 29, 2008, 12:13:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mnichols7

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

G6Cad

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.


mnichols7

Thanks Carina,  By the way, I love how your new site is coming along.  I check in every once and awhile.

:)

G6Cad

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 :)

mnichols7

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);

IchBin

That shouldn't be a problem. You can remove one, but that shouldn't be causing your errors.

mnichols7

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.

IchBin

Deleted what account? It doesn't have anything to do with the account. Its the code.

mnichols7


This website is proudly hosted on Crocweb Cloud Website Hosting.