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,946
  • Latest: Sparo
Stats
  • Total Posts: 195,591
  • Total Topics: 21,271
  • Online today: 158
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 69
  • Total: 69

Site went blank after successful TP installation

Started by Anpu, August 04, 2011, 01:23:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Anpu

Hi,
today I upgraded SMF to version 2. Since I couldn't make old TP (0.98) to show me "Uninstall" option before upgrade, I went for "Delete" option (and saved articles and files from "Downloads" manually before using this option). I upgraded SMF successfully, then tried to install the latest TP. It gave me an error which I found here through search and solution I used was a script in thread "http://www.tinyportal.net/index.php?topic=34150.0". I executed script and it passed. Then I uploaded the latest TP and installed successfully. So I went to my home page and its blank. Any url I try is blank (white) page (nothing in page source).
I scanned through server log and found this:
mod_fcgid: stderr: PHP Fatal error:  Cannot redeclare progetAvatars() (previously declared in /my_path/Themes/default/TPsubs.template.php on line 93, referer: http://www.claninquisition.org/index.php?action=admin;area=packages;sa=install2;package=TinyPortal1_RC2.zip;pid=0
Line 93 is } (end of progetavatars function)

I ask you if you have any ideas.

Link to my site: claninquisition.org
SMF version: SMF 2.0
TP version: TP 1_RC2
Default Forum Language: English only
Theme name and version: Minimalism (by Bloc)
Browser Name and Version: FF (Ubuntu) / 5
Mods installed: just smileys
Related Error messages: no visible error messages

Thank you.

Anpu

I commented out whole function "function progetAvatars($ids)" and now everything works. No errors in server or SMF log.

ZarPrime

Hello Anpu,

Welcome to the TP Support Site.

It sounds like the function may have been added correctly during the first install and then added again during the second install.  That would cause a redundancy in the function, being in the code twice.  You may want to watch things for awhile to see if any other errors of this type occur and, if so, let us know in another topic.  Ichbin may also want to comment on this.  For now, I will mark this topic solved. O0

ZarPrime

IchBin

I don't recall that being a TP function. either way, duplicate errors are usually from a bad install our something like that.

ZarPrime

Brad,

It's in the TPsubs.template.php ...

Quote
Search "progetAvatars" (2 hits in 1 files)
...\TinyPortal1rc2\SMF2\Themes\default\TPsubs.template.php (2 hits)
   Line 51:       $avy = progetAvatars($ids);
   Line 70: function progetAvatars($ids)

ZarPrime