News: TinyPortal Release Schedule. Please read this update for More Info.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

July 16, 2019, 10:39:59 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 188515
  • Total Topics: 20736
  • Online Today: 265
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 19
Total: 19

Author Topic: "Fatal error: Cannot redeclare tpsummary()" [TP 0.9.6 & SMF 1.0.8]  (Read 4081 times)

0 Members and 1 Guest are viewing this topic.

Lysanda

  • Guest
Hi there,
I've recently installed TP 0.9.6 via the package manager and now when links are clicked on the portal (member names, profile links, show new replies etc) I get errors like this one

Quote
Fatal error: Cannot redeclare tpsummary() (previously declared in /home/xxxxxx/public_html/hell/Sources/Profile.php:1935) in /home/xxxxxx/public_html/hell/Sources/Profile.php on line 1985

Plus a user I have testing the site is getting runtime errors with all sorts of things.

Any ideas?

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: "Fatal error: Cannot redeclare tpsummary()" [TP 0.9.6 & SMF 1.0.8]
« Reply #1 on: November 08, 2006, 08:40:37 PM »
Sounds like your code has been duplicated. Open the profile.php file and search for tpsummary() and any other TP code to see if it is duplicated.

Lysanda

  • Guest
Re: "Fatal error: Cannot redeclare tpsummary()" [TP 0.9.6 & SMF 1.0.8]
« Reply #2 on: November 08, 2006, 08:43:27 PM »
Sorry.. 'duplicated'?  As in copied?.. or repeated within the .php file?


Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: "Fatal error: Cannot redeclare tpsummary()" [TP 0.9.6 & SMF 1.0.8]
« Reply #3 on: November 08, 2006, 08:53:23 PM »
du‧pli‧cate  /n., adj. ˈduplɪkɪt, ˈdyu-; v. ˈduplɪˌkeɪt, ˈdyu-/ Pronunciation Key - Show Spelled Pronunciation[n., adj. doo-pli-kit, dyoo-; v. doo-pli-keyt, dyoo-] Pronunciation Key - Show IPA Pronunciation noun, verb, -cat‧ed, -cat‧ing, adjective
–noun
1.   a copy exactly like an original.
2.   anything corresponding in all respects to something else.
3.   Cards. a duplicate game.
–verb (used with object)
4.   to make an exact copy of.

Lysanda

  • Guest
Re: "Fatal error: Cannot redeclare tpsummary()" [TP 0.9.6 & SMF 1.0.8]
« Reply #4 on: November 08, 2006, 08:59:33 PM »
Yes, I understand what DUPLICATE means.. but I wasn't sure which context you meant it in.. but anyways...

I've fixed it!

IchBin, thankyou for your help.  I found profile.php and yep, there it was.. two scripts for TP.

I deleted one and the forum is working great now.. and of course, TP looks great on it!!


Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: "Fatal error: Cannot redeclare tpsummary()" [TP 0.9.6 & SMF 1.0.8]
« Reply #5 on: November 09, 2006, 12:00:18 AM »
So you write "Sorry.... duplicated?" and then you yell at me because I give you the definition of duplicate? lol I was just trying to help with a little sense of humor, I guess I left out the smilie so you could tell I was giving you a hard time. :)

It was my pleasure helping. You may want to look in the other files that TP edits and see if the code is "duplicated" in those also. :)

Off the top of my head, Profile.php, ManagePermissions.php, index.php, Load.php, Errors.php, index.template.php.