TinyPortal

Development => Support => Installation => Topic started by: Shiek on August 25, 2007, 04:57:58 AM

Title: TP Manual Install & error :)
Post by: Shiek on August 25, 2007, 04:57:58 AM
Today night i tired the manual Installation of TP..... well all worked fine even the manual_tp_install.php worked, but if i start now the index.php on the Root Folder this Parse Error appears.

Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected '<' in .../Themes/default/index.template.php on line 128

119:
120:    // Output any remaining HTML headers. (from mods, maybe?)
121:    echo $context['html_headers'], '
122:
123:    <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
124:       var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
125:
126:       function shrinkHeader(mode)
127:       {';

128:       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

129:                 var current_leftbar = ', empty($options['collapse_leftbar']) ? 'false' : 'true', ';
130:
131:                 function shrinkHeaderLeftbar(mode)
132:                 {';


the lines of the current index.template.php

   // Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'], '

   <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
      var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';

      function shrinkHeader(mode)
      {';
      <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_leftbar = ', empty($options['collapse_leftbar']) ? 'false' : 'true', ';

                function shrinkHeaderLeftbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "', $context['session_id'], '");';
        echo '
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = ', empty($options['collapse_rightbar']) ? 'false' : 'true', ';

                function shrinkHeaderRightbar(mode)
                {';

        // Guests don't have theme options!!
        if ($context['user']['is_guest'])
                echo '
                        document.cookie = "upshrink=" + (mode ? 1 : 0);';
        else
                echo '
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "', $context['session_id'], '");';

        echo '
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>

   // Guests don't have theme options!!
   if ($context['user']['is_guest'])
      echo '
         document.cookie = "upshrink=" + (mode ? 1 : 0);';
   else
      echo '
         smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
         document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

         document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
         document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

         current_header = mode;
      }
   // ]]></script>';


Any Suggestions? 

Thanks in forward
//Shiek

€: i attached the current index.template.php
Title: Re: TP Manual Install & error :)
Post by: tick on August 25, 2007, 05:16:14 AM
is this on a fresh install of smf and tp.  Do you have any other mods installed and is this the  default theme template
Title: Re: TP Manual Install & error :)
Post by: Shiek on August 25, 2007, 05:32:46 AM
Quote from: Tick on August 25, 2007, 05:16:14 AM
is this on a fresh install of smf and tp.  Do you have any other mods installed and is this the  default theme template

not a fresh install of smf. i installed it 1 month ago (i think)...

i set before the installation it to the default theme, and maintence mode.



Forum Version were 1.1.3
TP_0983_manual installation.
Title: Re: TP Manual Install & error :)
Post by: tick on August 25, 2007, 05:40:03 AM
Do you  have any other mods installed?
Title: Re: TP Manual Install & error :)
Post by: Shiek on August 25, 2007, 05:42:19 AM
Quote from: Tick on August 25, 2007, 05:40:03 AM
Do you  have any other mods installed?

no, as long i remember
Title: Re: TP Manual Install & error :)
Post by: tick on August 25, 2007, 05:46:08 AM
Try this one.
Title: Re: TP Manual Install & error :)
Post by: Shiek on August 25, 2007, 05:51:22 AM
Quote from: Tick on August 25, 2007, 05:46:08 AM
Try this one.

when i download this file a index.php appears, is that corrent?

should i rename it into index.template.php and replace it /themes/default/* ?

sorry, if i am wrong :)


€: renamed it, Works fine.

Thanks Tick i highly appreciate ur work in here !  :up:
Title: Re: TP Manual Install & error :)
Post by: tick on August 25, 2007, 05:55:50 AM
Sure thing bud.  Glad to have helped you.   :)
Title: Re: TP Manual Install & error :)
Post by: Shiek on August 25, 2007, 04:08:44 PM
Sorry to disturb you guy's again.

The SMF Portal runs great now  ;)   

but i noticed a little issue there --->   http://213.239.219.51/forum/

on the Download area u can Upload Files, i tired this out and its acting really strange.... small files i can upload... arround~ 2MB
but i entered on the Admin side that Files with a Size of 5000000kb are allowed to upload... as u can see on this Screen's

--> (https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fhome.arcor.de%2Fandroid%2Ftp.jpg&hash=e6be10fb8e08c5afab0da774ced6d5a7e672b32d)

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fhome.arcor.de%2Fandroid%2Ftp2.jpg&hash=1ffc9e1a73dad2d661a9c7ae7c868fea3f6d0eb5)

Is there maybe a "timelimit" ?

Any Suggetions to fix it ?

Thanks in forward

//Shiek

€:

This Error occurs --> (https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fhome.arcor.de%2Fandroid%2Ftp3.jpg&hash=1a76405cb987e7505ce024c7f1567de8796f52da)
Title: Re: TP Manual Install & error :)
Post by: Dazed on August 25, 2007, 04:16:09 PM
If I remember correctly it is a php limitation thats usually imposed by certain hosts.
Title: Re: TP Manual Install & error :)
Post by: Crip on August 25, 2007, 04:18:05 PM
Quote from: [cbl]Drifter on August 25, 2007, 04:16:09 PM
If I remember correctly it is a php limitation thats usually imposed by certain hosts.

Your correct!
Title: Re: TP Manual Install & error :)
Post by: Shiek on August 25, 2007, 04:28:38 PM
Quote from: crip≈ on August 25, 2007, 04:18:05 PM
Quote from: [cbl]Drifter on August 25, 2007, 04:16:09 PM
If I remember correctly it is a php limitation thats usually imposed by certain hosts.

Your correct!

And how can i solve the Problem ?
Title: Re: TP Manual Install & error :)
Post by: tick on August 25, 2007, 04:33:24 PM
You would have to contact your host and ask them to raise the upload limit.  Most host have this set at 2mb
Title: Re: TP Manual Install & error :)
Post by: Shiek on August 25, 2007, 04:36:21 PM
Quote from: Tick on August 25, 2007, 04:33:24 PM
You would have to contact your host and ask them to raise the upload limit.  Most host have this set at 2mb

im the host/owner of the root server.

That's why im asking, where i could change this =)
Title: Re: TP Manual Install & error :)
Post by: G6Cad on August 25, 2007, 04:40:33 PM
www.simplemachines.org have the answers you want
Or a search would give you the answer here on this site.
Title: Re: TP Manual Install & error :)
Post by: Dazed on August 25, 2007, 04:49:26 PM
Another good option... Google is your friend... ^-^ http://www.washington.edu/computing/web/publishing/php-ini.html#create