TinyPortal

Development => Support => Topic started by: Reydar on June 12, 2008, 10:43:34 PM

Title: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: Reydar on June 12, 2008, 10:43:34 PM
Hello,

I am new to the Tiny Portal Community, and have just recently instlalled the Tiny Portal v1.0.5 beta and SMF 1.1.5.  I absolutely love the Helios_Multi_TP Theme, and would like to get it running smoothly.

I get the following Fatal Error message (on a plain white screen) when I click on the Profile Tab, or attempt to access a Member Profile (To set their User Group or User Permits). 

ERROR:  Fatal error: Cannot redeclare tpsummary() (previously declared in /home/mthrrcsn/public_html/SMF/Sources/Profile.php:2945) in /home/mthrrcsn/public_html/SMF/Sources/Profile.php on line 3002

Here is the info about our site:
Link to my site: http://www.m3rcs.net/SMF
SMF version: SMF ver. 1.1.5
TP version: TP ver. 1.0.5
Theme name and version: Helios_Multi_TP
Mods installed: SMF Arcade 2.0.13  (no games installed yet)
Related Error messages:

Hope this is something easy to fix.

Thanks,
Reydar
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: IchBin on June 12, 2008, 11:37:58 PM
Looks like you did everything you were supposed to in your post. The only thing you forgot was to use the search. That error has been posted quite a few times. Search for tp_summary and you'll find the answer.
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: IchBin on June 13, 2008, 12:59:41 AM
For heavens sake, just attach the file. There is no need to post 5 miles of code, especially when you don't even use the code tags. I deleted your posts, so please attach the file.
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: Reydar on June 13, 2008, 01:18:24 AM
IchBin,

I figured out a way to copy the Profile.php file from my Hosting Server, and have attached it.

You won't be able to see the Code I deleted (which was in RED Text in my post).

I would really appreciate it if you could help me solve this problem.
I am a complete Noob, when it comes to managing a portal and HTML and PHP Coding.

Regards,
Reydar
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: IchBin on June 13, 2008, 02:20:31 AM
Its a bug in the package manager that will apply the edits to some files for some reason. You should probably go through the all the files that TP edits and make sure that the edits haven't been applied twice. This file should be fixed now I think. Go to the Docs board and follow the manual install instructions to look through the other files.
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: Xarcell on June 13, 2008, 02:27:04 AM
Most of the tike when it says "previously declared", it means the code has been applied twice for some unknown reason.(smf issue).

Check your files and look for duplicate code.
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: Reydar on June 13, 2008, 04:27:37 AM
Well, I copied the Profile.php file (that IchBin said should be fixed) into the source directory.

Now when I click on the Profile Tab, it displays the code from the Profile.php file and gives me this Error:

Unable to load the 'main' template.

Is it possible that duplicate code in another file would cause this?
Can you take a look at the Profile.php file attached to IchBin's post, and confirm that it isn't broken?

I am not much help here, as I am not an HTML or PHP programmer.  Sorry.

Also, can someone provide the links to get to the "Documents" that keep getting referred to.
I don't know where to find them, and I want to make certain I am looking at the correct documents.
I did find the Manual in the Docs link at the top of the page (in the Banner), but that doesn't tell me which files TP modifies.  So, I don't think those are the Documents that are being mentioned.

Any help is appreciated.

Regards,
Reydar
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: IchBin on June 13, 2008, 04:43:45 AM
If you look at the very first line you'll see the mistake I accidentally added. :)
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: Reydar on June 14, 2008, 02:40:24 AM
TP Support,

Thank you for all the help!
Our Portal is up and running perfectly.

Regards,
Reydar
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: G6Cad on June 14, 2008, 06:52:36 AM
I marke this one as solved then  :up:
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: whoodoo on September 05, 2008, 09:58:05 PM
I am having problems with the same file, I have just updated my forum to 1.0.5beta and now my users (and me as admin) cannot get to our profiles, when loaded I get the error..

QuoteUnable to load the 'main' template.

...even after I use the Profile.php you provided IchBin (attached and line 1 corrected). Any suggestions please?
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: IchBin on September 05, 2008, 10:28:22 PM
Can only suggest you go through the manual install instructions and make sure all the code is there as well as the files.
Modification Instructions (http://docs.tinyportal.co.uk/index.php?topic=140)
How do I manually install TinyPortal (http://docs.tinyportal.co.uk/index.php?topic=29)
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: whoodoo on September 06, 2008, 12:59:18 AM
Thanks for the help guys, but it seems my old profile.php from my backup works, but the new install one doesnt, very odd...
Title: Re: Need Help with TP v1.0.5 and SMF 1.1.5 getting Fatal Error
Post by: whoodoo on September 06, 2008, 12:36:11 PM
I seem to have it all working now, but I am still getting errors logged for sources/subs.php, but I cannot see any problems now, Ill plug on and see how it all goes :)