TinyPortal

Development => Support => Topic started by: Rebel on January 10, 2007, 04:01:30 PM

Title: Viewing profile - fatal error
Post by: Rebel on January 10, 2007, 04:01:30 PM
SMF 1.1.1, TP 0.9.7, Default (Core) theme. No mods.

http://www.underoneroofexchange.co.uk/index.php

I've just updated and now have a few problems to sort out.

When attempting to view profiles, either my own or members, I get a plain white page with the following error.

Fatal error: Cannot redeclare tpsummary() (previously declared in /home/underone/public_html/Sources/Profile.php:2942) in /home/underone/public_html/Sources/Profile.php on line 2992

Any help would be apprieciated, thankyou.

Rebel
Title: Re: Viewing profile - fatal error
Post by: Maya on January 10, 2007, 04:17:25 PM
It means that on your /sources/profiles.php, there is a piece of code (tp summary) that has been written in ther twice. Find where it has been duplicated, and remove the duplicate.

hope this helps.  ;)
Title: Re: Viewing profile - fatal error
Post by: Rebel on January 10, 2007, 04:31:53 PM
Thankyou Maya, I'll give it a go and let you know how I get on.

Rebel
Title: Re: Viewing profile - fatal error
Post by: Rebel on January 10, 2007, 05:56:50 PM
hi Maya,

You were right, there were 3 duplicate blocks of code in that file. Once I'd deleted them the profiles worked fine.

It's looking like I've managed to install TinyPortal twice. There are 2 forum buttoms, so I'll be going through every file hunting down the duplicate code.

Thankyou for your help.

Rebel
Title: Re: Viewing profile - fatal error
Post by: G6Cad on January 10, 2007, 06:06:46 PM
This seemd to happend to the members that used the TP V.096 hack before the TP V.096 from Bloc were released :)
The uninstaller didnt work in the hack as the lines in the XML file didnt had the correct changes made for the removal of code, just the Install part  :)
Title: Re: Viewing profile - fatal error
Post by: Ray on January 10, 2007, 06:32:09 PM
Was just looking at your site and I see you still have dub lines of code in your index.template.php file. go to that file under your default themes folder and look their for the dub code
Title: Re: Viewing profile - fatal error
Post by: Rebel on January 12, 2007, 03:24:07 AM
G6 you guessed right!

I installed TP using zip file TP097. Which failed, TP installed fine once I got hold of TP0971 except for the duplication.

Ray thanks for pointing me in the right direction. You saved me a lot of time.

I've stripped out most of the duplicate code, at least all that I've found so far. The menu now has just one "forum" button.

Thankyou for the help and guidance from everyone.

Rebel