TinyPortal

Development => Support => Installation => Topic started by: darkangel on June 06, 2011, 08:48:59 AM

Title: trouble installing TP
Post by: darkangel on June 06, 2011, 08:48:59 AM
Link to my site: http://www.cov.no
SMF version: SMF 2.0 rc5
TP version: none yet
Default Forum Language: english


using any theme even default this will not install by any method used--- at first

I have been trying to get his forum to accept TinyPortal1RC1_1 for over 3 hours, trying different methods

I have tried package manager with zip gotten from here and with uploading unarchived into a folder

first it tells me that there is a parse error in the tinyportal200rc4.mod, but it does not say anywhere what or where in that file

so then I thought to be a smarty pants and  just to make sure the files were not messed up I uploaded fresh files of the smf 2.0 sources and index.php (no mods installed at all) did not load fresh files for themes/ default.

Lo and behold it said it could install it so clicked to proceed, listed everything as successful so continued to only kill the site and get these errors which meant I had to replace the smf 2.0 files again to get site back:

I think they were all undefined_functions

load.php

   // TinyPortal
   $newtheme=TP_loadTheme();
   if($newtheme!=$id_theme && $newtheme>0)
      $id_theme=$newtheme;
   // end TinyPortal


undefined function TPortal_init

index.php
// TinyPortal
   TPortal_init();



had to replace cause it took it out totally

// Otherwise, it was set - so let's go to that action.
   require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
   return $actionArray[$_REQUEST['action']][1];
}

?>

security.php

   // TinyPortal
   TPortal_init();

undefined function TPcheckAdminAreas

subs.php
'show' =>  TPcheckAdminAreas(),

also

   // tinyportal //
      $buttons['tpadmin']['sub_buttons'] = tp_getbuttons();


could someone please tell me what to try now, I did not manyually edit the files since the installed edited and the errors came up.

also is the download package here and smf site only the updater or is it a full package of the TP

If I had the version just before this one for 2.0 I could try installing it then try to update from the package manager but the only version I have is for smf1.1.3

also just thought to check the default theme folder and there were absolutely no tp files in there---I have removed all tp files from everywhere else they were deposited by installer---which even the main tp folders in the main part were not added
Title: Re: trouble installing TP
Post by: IchBin on June 06, 2011, 10:39:41 PM
It's a server issue. The configuration of the server is not allowing the files to be properly edited and/or copied from the zip file to the server. If you can't install it successfully in any of the manners you listed, it will have to be installed manually, or you will have to get your host to figure out what it is about their setup that doesn't allow PHP to complete the install.
Title: Re: trouble installing TP
Post by: darkangel on June 06, 2011, 10:46:29 PM
i was afraid of that cause the ftp times out a lot and was hoping the manual editing will work...it acts like the zip is only an update and not a full install.


it does work with smf 2.0 rc5
Title: Re: trouble installing TP
Post by: darkangel on June 07, 2011, 04:00:43 AM
me again. I went into the file to see where to do the manual editing and edited the files, uploaded the other files for TP and got these 2 errors and it just got stuck on the second one...would not load site so have to remove all edited files to get site back

Parse error: syntax error, unexpected T_VARIABLE, expecting ')' in Sources/Subs.php on line 4151

Parse error: syntax error, unexpected ';', expecting ')' in Sources/Subs.php on line 4148


this is the code from that file and in red is what it claims is wrong:

subs.php error code:
'logout' => array(
            'title' => $txt['logout'],
            'href' => $scripturl . '?action=logout;%1$s=%2$s',
            'show' => !$user_info['is_guest'],
            'sub_buttons' => array(
            ),
            'is_last' => !$context['right_to_left'],
         ),
      );

// tinyportal //
      $buttons['tpadmin']['sub_buttons'] = tp_getbuttons();
Title: Re: trouble installing TP
Post by: IchBin on June 07, 2011, 05:06:21 AM
Hmm.... I don't see the error. It's usually better to post the code with several lines above an below the error two. This way we can hopefully see if a bracket or something isn't paired up.
Title: Re: trouble installing TP
Post by: darkangel on June 07, 2011, 11:23:16 PM
ok here is for the first one for line 4125-4167, just in case or I can attach the subs file too if you want

cause as I said when trying thru the package manager it said that there was a syntax error in the tinyportal200rc4.mod too

'login' => array(
'title' => $txt['login'],
'href' => $scripturl . '?action=login',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
),
'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
'logout' => array(
'title' => $txt['logout'],
'href' => $scripturl . '?action=logout;%1$s=%2$s',
'show' => !$user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
);

// tinyportal //
$buttons['tpadmin']['sub_buttons'] = tp_getbuttons ();


// Now we put the buttons in the context so the theme can use them.
$menu_buttons = array();
foreach ($buttons as $act => $button)
if (!empty($button['show']))
{
$button['active_button'] = false;

// Make sure the last button truely is the last button.
if (!empty($button['is_last']))
{
if (isset($last_button))
unset($menu_buttons[$last_button]['is_last']);
$last_button = $act;
}

Title: Re: trouble installing TP
Post by: IchBin on June 08, 2011, 12:32:01 AM
You made an error on the help button. Attached fixed file.
Title: Re: trouble installing TP
Post by: darkangel on June 08, 2011, 02:07:59 AM
thanks I shall give it another try...stubborn little critter that I am...lol

will let you know what happens
Title: Re: trouble installing TP
Post by: darkangel on June 08, 2011, 02:25:22 AM
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fthefantasiesattic.net%2Fattic%2FSmileys%2Fdefault%2Fdancing.gif&hash=7c462f932bbb125af719a760be61a514799dfd26)

thanks ever so much for that...I looked at it til I turned blue and although I am still learning php and css I sure could not find where it went nutty on my...gonna need to kick the computer too for not copy/pasting everything I selected...lol

it works!!

have a great week and needles to say i will more than likely be back with more troubles.
Title: Re: trouble installing TP
Post by: lurkalot on June 08, 2011, 09:08:23 AM
Been following this one.  Good job.  Site looks great.  O0

Marking solved. 
Title: Re: trouble installing TP
Post by: darkangel on June 08, 2011, 01:06:16 PM
ty hope it continues to nehave for him