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

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.

DocPixel

Oh, okay, I get it now.

Here, fresh off the site. Thanks.

G6Cad

All the way at the bottom of the file.
Remove this part of the code and leave the other ( duplicate )

You will see you have that code twice added to the file

// Tinyportal
function tpsummary($memID)
{
   global $txt, $user_profile, $db_prefix, $context, $db_prefix;

   loadtemplate('TPprofile');
   $context['page_title'] = $txt['tpsummary'];
   TP_profile_summary($memID);
}
function tparticles($memID)
{
   global $txt, $user_profile, $db_prefix, $context, $db_prefix;

   loadtemplate('TPprofile');
   $context['page_title'] = $txt['articlesprofile'];
   TP_profile_articles($memID);
}
function tpdownload($memID)
{
   global $txt, $user_profile, $db_prefix, $context, $db_prefix;

   loadtemplate('TPprofile');
   $context['page_title'] = $txt['downloadprofile'];
   TP_profile_download($memID);
}
function tpshoutbox($memID)
{
   global $txt, $user_profile, $db_prefix, $context, $db_prefix;

   loadtemplate('TPprofile');
   $context['page_title'] = $txt['shoutboxprofile'];
   TP_profile_shoutbox($memID);
}
function tpgallery($memID)
{
   global $txt, $user_profile, $db_prefix, $context, $db_prefix;

   loadtemplate('TPprofile');
   $context['page_title'] = $txt['galleryprofile'];
   TP_profile_gallery($memID);
}
function tplinks($memID)
{
   global $txt, $user_profile, $db_prefix, $context, $db_prefix;

   loadtemplate('TPprofile');
   $context['page_title'] = $txt['linksprofile'];
   TP_profile_links($memID);
}

DocPixel

 :up:

You're right! Took that out and now it works!  :)

Of course, I discovered also that ya got to name the file correctly too... Profile.php, not profile.php... If there's a mistake to be made, I'm the one that will make it...

Thanks so much! Not only for solving my problem, but for the quick response. Much better than some - many - other OS support forums I've found.


This website is proudly hosted on Crocweb Cloud Website Hosting.