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: 141
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 75
  • Total: 76
  • @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.

sysengr

I noticed the TP upgrade yesterday and used the package upgrade.  Everything seemed to work great, but now the system errors when you try to access a Profile or a members list.

Fatal error: Cannot redeclare tpsummary() (previously declared in /home/ashost/public_html/guild/Sources/Profile.php:2944) in /home/ashost/public_html/guild/Sources/Profile.php on line 2994


Any ideas what I did wrong?

sysengr

OMG!

The new patch is still not up to the current version of SMF and I killed my board...

Here is the link to fix it..

http://www.tinyportal.net/index.php?topic=14195.0

IchBin

The new patch? Patch for what? If you're referring to TP then you are wrong. Its more than likely something went wrong in your install. As for the first error you reported tp_summary, please use the search. That error has been covered a 100 times already. Its caused from your install TP twice or the code not removing itself if you uninstall and then install.

BySilent

I did a search and I deleted the double post in the Profile.php and the Profile.php~ files.  I now get another error which I am confused since it shows up in line 670:

"Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/interne7/public_html/msgboard/Sources/Profile.php on line 670"

If I uninstall tp 9.8.3 what files should I also remove so that the install doesn't do a double code post?

Just scratching my head.  The rest of TP is working except for Profile and Members List areas.

Nokonium

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

BySilent


garyt

Just wanted to check in and confirm.

I just did a brand new install of SMF and tinyportal.

Everything worked fine except I got the Error "Cannot redeclare tpsummary()...".
Then I used your Profile.php file and it seems to work.

What I am not clear about, is this still a bug you are taking care of or how can I avoid this during a future install.

I did not do 2 installs or an uninstall. It was one original install.

Your response will be greatly appreciated.

G6Cad

It's not really a bug.
This error can show up for several reasons.
The most common one is the doubble code when you install TP from an upgrade when you have had TP installed before.
The second one is if the files TP want to change during the install have write permission errors, that way the code dont get added at all and generate the same error.

garyt

Quote from: G6â„¢ on June 25, 2007, 07:05:47 AM
It's not really a bug.
This error can show up for several reasons.
The most common one is the doubble code when you install TP from an upgrade when you have had TP installed before.
The second one is if the files TP want to change during the install have write permission errors, that way the code dont get added at all and generate the same error.

Thanks for your help.
Still encountered a problem with 2 Forum buttons but fixed that with the posted instructions.
It appears I have everything up and running.
Also installed upgrade to smf 1.1.3.

Here is another question, the Profile.php file is still listed as Version 1.1 and says current version is 1.1.3. Also says sources is 1.1 and current version is 1.1.3.

Can you help or do I have to switch to the SMF forum?

IchBin

Well, if you don't have a problem with possibly losing mods, you can just upload the update file. But if a mod has modified that file such as TinyPortal, it will make it so you have to reinstall the mod. Otherwise, you have to update by using a compare program.

This website is proudly hosted on Crocweb Cloud Website Hosting.