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?
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.
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
All the files are still required. It's just that the code has changed and moved etc.
Best way would be to just remove all the old files and then replace them with the new ones from the package
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.
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. :)
Ok i'll look into it. as i think there could be a lot of members effected without them knowing
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.
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.
I'll try that this evening.
I'm pretty new to skinning SMF so can you explain how I do that... Is that a line in the index.php file of SMF or do I add "action=forum;noblocks" somewhere in index.php?
No, what he meant by that was to go to a url something like this ...
http://YourSite.com/smf/index.php?action=forum;noblocks
or
http://YourSite.com/smf/index.php?noblocks
The first one will get you into your Forum without showing any blocks and the second one will get you to your FrontPage without any blocks. You will need to change YourSite.com/smf in either one of them to your own Forum site address and you must be logged in as an Admin in order for this to work. This is useful if you can't get into your Forum because of a block containing bad code.
ZarPrime
ah gotcha... Thanks for that. I'll give it a whirl next time I try.