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: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 319
  • Total: 319

Duplicated code after upgrade to beta 3

Started by Dynotrick, February 19, 2009, 10:59:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dynotrick

I upgraded to beta 3 using the failed install method. (did some files manually)
The only error I noticed so far is when trying to view the profile page I get.
Fatal error: Cannot redeclare tpsummary() (previously declared in /var/www/forums/Sources/TPmodules.php:2039) in /var/www/forums/Sources/Profile.php on line 2958

In searching and then comparing the two files it looks like a chunk of code is duplicated near the end of each where it declares several TP functions.

I'm unsure which file these functions belong in and from which I can delete the duplicated code.
Interestingly neither of these files were ones that I had to update manually.  Based on the code I'm a bit surprised that I'm only seeing the error in one spot (or maybe I didn't find the other places it will error yet.)

Attached are the two php files from my current install.

Forum version is SMF 1.1.8
TP version is 1.0 beta 3
Theme: Default SMF
Mods: TP only

fussilet


Dynotrick

Fussilet,  Our TPmodules.php files match 100%
Your Profile.php file does not include all that code at the end, but it is also missing large chunks of other TP code.  Maybe it's an older version (it says SMF 1.1.4)

I went ahead and deleted all the TP functions from the end of my Profile.php file and now everything appears to be working.

My main concern now is:  Was that the correct code to delete?

Renegd98

I had this error and so did some other user. I removed the duplicates from the profile.php due to the profile page would error out for me and would not appear for the other user unless the code was removed.


This website is proudly hosted on Crocweb Cloud Website Hosting.