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

TP Manual Install & error :)

Started by Shiek, August 25, 2007, 04:57:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Shiek

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

tick

is this on a fresh install of smf and tp.  Do you have any other mods installed and is this the  default theme template

Shiek

#2
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.

tick

Do you  have any other mods installed?

Shiek



Shiek

#6
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:

tick

Sure thing bud.  Glad to have helped you.   :)

Shiek

#8
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

-->



Is there maybe a "timelimit" ?

Any Suggetions to fix it ?

Thanks in forward

//Shiek

€:

This Error occurs -->

Dazed

If I remember correctly it is a php limitation thats usually imposed by certain hosts.

This website is proudly hosted on Crocweb Cloud Website Hosting.