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

SMF 1.1.11 - TP 1.0 b5.1 (and 1.0 b4) error after install

Started by neo2810, April 20, 2010, 12:39:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neo2810

Hi chaps,

I tried to install v1.0 b4 and b5.1 on SMF 1.1.11 and once installed I get the following error instead of my SMF forum:

Fatal error: Cannot redeclare tportal_searchbox() (previously declared in /websites/123reg/LinuxPackage21/nr/pc/la/nrpclan.co.uk/public_html/forum/Sources/Load.php(1742) : eval()'d code:7) in /websites/123reg/LinuxPackage21/nr/pc/la/nrpclan.co.uk/public_html/forum/Sources/Load.php(1742) : eval()'d code on line 17

Looking at line 1742 in Load.php it's here:

// Are we going to use eval?
   if (empty($modSettings['disableTemplateEval']))
   {
      $file_found = file_exists($filename) && eval('?' . '>' . rtrim(file_get_contents($filename))) !== false;
      $settings['current_include_filename'] = $filename;
   }
   else
   {
      $file_found = file_exists($filename);

      if ($once && $file_found)
         require_once($filename);
      elseif ($file_found)
         require($filename);
   }

   if ($file_found !== true)
   {
      ob_end_clean();
      if (!empty($modSettings['enableCompressedOutput']))
         @ob_start('ob_gzhandler');
      else
         ob_start();

      if (isset($_GET['debug']) && !WIRELESS)
         header('Content-Type: application/xhtml+xml; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));

I'm using an Equinox based theme for SMF.

Any ideas?

IchBin

Sounds like your uninstall didn't complete. It could be likely that you have the old TPBlocks.template.php file still there for TP1beta4. In TP1 beta 5 that function moved to a different file. Which means you're trying to load the same function twice since TP still uses both files. I'd suggest you upload the TP files from the package again. Remember to upload the files in the common folder as well as the files in the folder located for your version of SMF. I hope you've taken a backup before you've done anything.

Blue Steel

I too have old files (dead / outdated) files in there..
can someone please post a list of files that are no longer required in there so they can be deleted.
(as far as i can see i'm not having any probs with the old files in there because i'm not using any old themes/styles which are trying to read these dead files.. I went through and deleted all my old themes/stules do i only had the defailt and current TP/SMF2 styles. those still running SMF 1.x though would see this problem occuring which is where this problem is occuring) as the installing of TP 1.0 beta 5 doesn't seem to actually delete any files just upload the new ones over the top


IchBin

All the files are still required. It's just that the code has changed and moved etc.

G6Cad

Best way would be to just remove all the old files and then replace them with the new ones from the package

Blue Steel

i'm talking about liker the TPBlocks.template.php which still has functions listed in it that have been moved to say to TPSubs.template.php (eg: the users online part of the stats block..) it appears that the TPBlocks.template.php is still the same as in TP 1.0 beta 4. Looking now to see if its in the TP1.0 Beta5 for SMF 2.0 RC3.. I don't think it is otherwise it would have been replaced by the newer one on install..
So i was looking for like a list of files like that. so i can go through and see.. as it is at the moment i'm going to have to install TP1.0 beta4 on SMF 1.xxx again and another install of TP1.0 beta 5 on SMF 2.0 RC3 and then compare each and every file and directory. I was hoping that someone somewhere knew what the files are/were that havn't been changed and or not used anymore. if there isn't then i'll attempt to make such a list to help people clean up their installation's. I updated my site live. so its difficult to know whats changed and whats not needed in there anymore.



IchBin

Unless the install didn't complete properly. Which is exactly what has happened I think. The TPBlocks.template.php file are different between beta4 and beta5. Beta4 has all those functions. Beta5 is empty. Nobody has a list made. If you want a list, feel free to go through all the files and report back. :)

Blue Steel

Ok i'll look into it. as i think there could be a lot of members effected without them knowing

neo2810

Cheers for the response Ich...

The first install I tried was TP1 beta v5 on an untouched (no mods apart from the modded Equinox theme and I got the error. I reinstalled SMF from scratch and reassociated it with the DB and everything restored perfectly so that was a relief.
I then tried installing TP1 beta v4 and exactly the same issue. So I'm not sure it can be because of files left behind since the first attempt was the first time I'd ever installed (or attepmted) to install Tinyportal.

IchBin

Do you get this error if you disable your blocks?
index.php?action=forum;noblocks

Something is not working right with your install. It is not installing properly. I haven't seen anyone else have this problem that I can remember.

This website is proudly hosted on Crocweb Cloud Website Hosting.