TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 110
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 69
  • Total: 70
  • @rjen

Fatal error: Cannot redeclare tpsummary()

Started by sysengr, March 19, 2007, 04:13:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

w2phoenix

Quote from: nokonium on April 07, 2007, 09:59:14 PM
It looks like you have got the editing a bit skew-whiff. I have attached a copy of Profile.php with the correct code. save it over your existing Profile.php. This is a backup file from a test site of mine with no mods other than TP 0.983

i installed smf 1.1.4 and tp .98 but while i was installing tp 0.9.8 the browser lost the connection to the server for several minutes.. i installed tp again. maybe this resulted in getting the
QuoteFatal error: Cannot redeclare tpsummary()

i am still new to this .. i was pretty afraid but that attachment of profile.php worked. :)
u made my day. thanks ..this works with smf 1.1.4 and 0.9.8..thanks a lot :D

w2phoenix

hey now i did a version check
Forum Maintenance - General Maintenance>>Check all files against current versions.>>Detailed Version Check

SMF File      Your Version   Current Version
Sources          1.1                  1.1.4

now how to make the source file update for the latest version.

pls help




w2phoenix

i updated the profile.php from smf's installer zip file..now the version check shows all latest versions.. :) and no errors r being displayed.. is this ok.. ?? it must be since no errors r displayed.

IchBin

Its ok, but the changes made to the profile will not be there unless you add the code. There's a how to in the Docs board for all the files that need modification by TP. Just look at the part for the profile and make the changes.

w2phoenix

it is a new forum..is it ok..will the changes i make in future be there..can u pls confirm that..

IchBin

The changes will be there as long as you don't delete or over-write the file.

DocPixel

Quote from: nokonium on April 07, 2007, 09:59:14 PM
It looks like you have got the editing a bit skew-whiff. I have attached a copy of Profile.php with the correct code. save it over your existing Profile.php. This is a backup file from a test site of mine with no mods other than TP 0.983

Hi, guys.
TP is a major solution for me, and I'm pleased to be using it. But I'm having this same exact problem with SMF 1.1.5 and TP 1.05, on a fresh new install. I need to solve it before I put it live on my SMF forum.

I get this same old error any time I click on anything involving a profile;
"Fatal error: Cannot redeclare tpsummary() (previously declared in /home/.haltingly/officialtester/testova.com/smf_testing/Sources/Profile.php:3092) in /home/.haltingly/officialtester/testova.com/smf_testing/Sources/Profile.php on line 3149"

I removed the duplicate TPsummary() block from profile.php, and chmodded it too, and profile.php~ but still getting the error.

Can a correct version of the profile.php be reattached to this thread? Or should I start a new thread? I've searched and read everything I can and don't know what else to do.
Thanks,
Doc

IchBin


DocPixel

Of course. I would have, except this looked to me like an existing problem with an existing solution.

I think this is what you mean;
Link to my site: http://testova.com/smf_testing/index.php
SMF version: SMF 1.1.5
TP version: TP 1.05
Theme name and version: Silver (slightly modified, no version# available)
Mods installed:
TP of course
Global Headers/Footers (This duplicates, as in: "TESTING GLOBAL HEADERSTESTING GLOBAL HEADERS"
Tagging
gallery lite
new topic button
member notepad
member location
adsense
simple award
section targeting

Related Error messages: Fatal error: Cannot redeclare tpsummary() (previously declared in /home/.haltingly/officialtester/testova.com/smf_testing/Sources/Profile.php:3092) in /home/.haltingly/officialtester/testova.com/smf_testing/Sources/Profile.php on line 3149

IchBin

No, I'm asking you to attach your file so we can fix it. If you are still getting that error, it means that the duplicate code is still there.

This website is proudly hosted on Crocweb Cloud Website Hosting.