TinyPortal

Development => Support => Installation => Topic started by: fat4l 3rror on February 17, 2008, 12:19:06 AM

Title: How do i get this error?
Post by: fat4l 3rror on February 17, 2008, 12:19:06 AM
Installing this package will perform the following actions:  Type Action Description
1. Extract Tree ./Themes 
2. Extract Tree ./Sources 
3. Extract Tree ./tp-downloads 
4. Extract Tree ./tp-images 
5. Extract Tree ./FCKeditor 
6. Extract Tree ./wysiwyg 
7. Execute Code tp_install.php 
8. Execute Modification ./index.php Test successful
9. Execute Modification ./Sources/Load.php Test successful
10. Execute Modification ./Themes/default/index.template.php Test failed  
11. Execute Modification ./Themes/babylon/index.template.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/ManagePermissions.php Test successful
14. Execute Modification ./Sources/Security.php Test successful
15. Execute Modification ./Sources/Errors.php Test successful
16. Execute Modification ./Themes/default/style.css Test successful
17. Execute Modification ./Themes/default/Help.template.php Test successful
18. Execute Modification ./Sources/Profile.php Test successful
19. Execute Modification ./SSI.php Test successful

Kinda odd. I checked in the folder and its in there

EDIT: I guess I read up a bit too late. and saw what I needed to modify. But if that is the only error I am getting. Can I just modify that file only, put it back into the folder and do the auto install?
Title: Re: How do i get this error?
Post by: IchBin on February 17, 2008, 01:04:56 AM
please use the search. Your error has been posted many times.
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 17, 2008, 01:28:49 AM
I guess I read up a bit too late. and saw what I needed to modify. But if that is the only error I am getting. Can I just modify that file only, put it back into the folder and do the auto install?
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 17, 2008, 04:26:02 AM
anyone?
Title: Re: How do i get this error?
Post by: gffb on February 17, 2008, 04:31:25 AM
I would say yes you can manually edit that file, but it might be worth seeing why you are getting that error what other mods do you have installed, look in the TP package to see what it is looking for in index.template.php and see why it cant find it.

But always have a BACKUP
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 17, 2008, 05:46:01 PM
hm, thats a good point. Its just such a pain editing with notepad.
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 17, 2008, 10:08:26 PM
i tried and got this


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 T_ECHO in .../Themes/default/index.template.php on line 362

353:       </table>';
354:
355: ';
356: // TinyPortal
357: }
358: // end
359: echo '
360:
361:

362:    echo '

363:       <table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
364:          <tr>';
365:
366:    // Show a random news item? (or you could pick one from news_lines...)
Title: Re: How do i get this error?
Post by: IchBin on February 17, 2008, 10:43:11 PM
delete line 355 & 359
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 17, 2008, 11:45:48 PM
'</span>';
   else
      echo '
               <img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';

   echo '
            </td>
            <td align="right" class="catbg">
               <img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
            </td>
         </tr>
      </table>';
// TinyPortal
if($context['TPortal']['showtop']==1)
{
// TinyPortal end


   // display user name
   echo '
      <table width="100%" cellpadding="0" cellspacing="0" border="0" >
         <tr>';

   if($context['user']['is_logged'])
      echo '
            <td class="titlebg2" height="32">
               <span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' ', $context['user']['name'] , '</span>
            </td>';

WHere is line 355 and 359? Im really thrown off
Title: Re: How do i get this error?
Post by: tick on February 17, 2008, 11:50:49 PM
Look at your post above the one Ich posted. LOL it shows the lines and numbers
Title: Re: How do i get this error?
Post by: IchBin on February 17, 2008, 11:57:54 PM
Please post code in the BBC code tags too. Thanks.
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 17, 2008, 11:59:21 PM
look the lines dont match

356: // TinyPortal
357: }

// TinyPortal end

Title: Re: How do i get this error?
Post by: fat4l 3rror on February 18, 2008, 12:52:35 AM
I dont mean to be a pest but I could Post my php file and someone could help me fix it?
Title: Re: How do i get this error?
Post by: tick on February 18, 2008, 01:42:40 AM
Attach it here and I will take a look for ya.
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 18, 2008, 03:12:50 AM
There you go
Title: Re: How do i get this error?
Post by: tick on February 18, 2008, 03:28:05 AM
This one has the two errors removed from the file.  Try it and let me know how it goes.
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 18, 2008, 03:30:06 AM
so just, put it in the area it belongs, and when I start up my site it shouldnt have any errors?
Title: Re: How do i get this error?
Post by: tick on February 18, 2008, 03:49:09 AM
Well if you did not make any other mistakes then yes :)
Title: Re: How do i get this error?
Post by: tick on February 18, 2008, 04:48:49 AM
So did it work?
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 18, 2008, 12:41:45 PM
o/m/g


Installing this package will perform the following actions:  Type Action Description
1. Extract Tree ./Themes 
2. Extract Tree ./Sources 
3. Extract Tree ./tp-downloads 
4. Extract Tree ./tp-images 
5. Extract Tree ./FCKeditor 
6. Extract Tree ./wysiwyg 
7. Execute Code tp_install.php 
8. Execute Modification ./index.php Test successful
9. Execute Modification ./Sources/Load.php Test successful
10. Execute Modification ./Themes/default/index.template.php Test failed
11. Execute Modification ./Themes/babylon/index.template.php Test successful
12. Execute Modification ./Sources/Subs.php Test successful
13. Execute Modification ./Sources/ManagePermissions.php Test successful
14. Execute Modification ./Sources/Security.php Test successful
15. Execute Modification ./Sources/Errors.php Test successful
16. Execute Modification ./Themes/default/style.css Test successful
17. Execute Modification ./Themes/default/Help.template.php Test successful
18. Execute Modification ./Sources/Profile.php Test successful
19. Execute Modification ./SSI.php Test successful
Title: Re: How do i get this error?
Post by: IchBin on February 18, 2008, 05:04:27 PM
omg (http://www.tinyportal.net/index.php?action=search)
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 18, 2008, 10:32:20 PM
As an admin I congradulate you for completely missing what happened. Someone sent me a fixed and new index.template.php that was suppose to work! But when I used it and tried to reinstall it failed.
Title: Re: How do i get this error?
Post by: tick on February 19, 2008, 01:13:51 AM
THe file is going to fail.  YOu should go ahead with the install.  THEN upload the corrected file.  Not upload it then install.   Give this a try.
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 19, 2008, 01:15:30 AM
so install it even if it says it fails, then use the one you gave me...and just backup all my site and files/>
Title: Re: How do i get this error?
Post by: tick on February 19, 2008, 01:20:20 AM
yep
go ahead with the install.   Then upload the file I gave you.   And as you say backup.   L
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 19, 2008, 02:14:04 AM
hey it worked! THHHANNKKYoU!But it says Forum twice at the top. And it also has my old download button too! How do I remove them?
Title: Re: How do i get this error?
Post by: tick on February 19, 2008, 02:17:14 AM
attach your index template here and I will fix it for ya.
Title: Re: How do i get this error?
Post by: fat4l 3rror on February 19, 2008, 02:25:08 AM
There you go, and thanks!

so I dont make a crap load of threads let me ask these 2 things.

A. Can I make it so ppl can use the tinyportal download system, and upload their own mods?

B.If i make a new theme for my site. DO I have to edit all the templates so everything works
Title: Re: How do i get this error?
Post by: tick on February 19, 2008, 02:36:16 AM
Try this one.   For the other questions refer to the docs section.
Title: Re: How do i get this error?
Post by: IchBin on February 19, 2008, 03:34:21 AM
Instead of immediately asking your questions, please do use the search and Docs board to get a feel of things first. Remember, mods only install to the default theme. So if you don't see them in a custom theme, remember you need to add them manually to the custom theme.