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,910
  • Total Topics: 21,307
  • Online today: 705
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 713
  • Total: 714
  • lurkalot

Syntax/Parsing Error on SSI.php

Started by DawnsWebDesigns, April 28, 2010, 12:32:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DawnsWebDesigns

Link to my site: http://www.dawnswebdesigns.com/family/forum
SMF version: 1.1.11
TP version: TP 1b5-1
Theme name and version: Default/??
Browser Name and Version: Firefox/??
Mods installed: personal message to groups, smf contact page, smf links, ssi topic, useremail
Related Error messages: Parse error: syntax error, unexpected $end in /var/www/domains/dawnswebdesigns.com/docs/family/forum/SSI.php on line 1761

How you all doing.  Long time no see. :)  I'm switching from vB back to SMF.  The first thing I notice is some of these themes don't work.  The next - the package manager don't work.  Even though I finally got it to attempt to try...every mod I'm trying to upload has a problem with it.

I did manage to upload 2 mods with what seems like no errors.  But then I go back & look & they're not there.  About the only thing the package manager does is set up the database on some of these mods.  It's not unzipping the package or doing the file edits.

I couldn't even get the package manager to set up the database on yours.  So I did everything manually then tried to point my browser to tp_install.php & I'm getting a parsing error. 

I followed these instructions: http://www.tinyportal.net/help/index.php/topic,140.html

I've downloaded SSI.php & look @ line 1761...there's nothing there.  It ends with

// The last post? Let's put the page numbers.
                if ($post['is_last'])
                        echo '
                        ', $txt[139], ': ', $return['page_index'];
                else
                        echo '
                        <hr style="margin: 2ex 0;" width="100%" />';
        }

?>


Thanks, in advance, for any help. :) 

DawnsWebDesigns

I'm sorry...I should've tried this too.

That error was what I got when I pointed my browser to your install file.

This error is what I'm getting when I try to visit my forum:

Parse error: syntax error, unexpected ')' in /var/www/domains/dawnswebdesigns.com/docs/family/forum/Sources/Load.php on line 663

Blue Steel

$txt[139] is the problem. TP 1.0 Beta 5+ doesn'ty seem to support lang file references by number any more. you need to locate the reference and put that in place of the number.

i've given examples in other posts

Quote
Quote

    Please note: a lot of people including myself have old blocks still in use from TP 1.0 beta4 or earlier. these blocks reference the txt$[xxx] by number .. this WILL cause TP 1.0 Beta5 to come up with lots of these errors.. what you need to do is look up the language files and put in there the actual txt$['reference_name'] they are usually quite easy to locate as the txt$[xxx] is usually referenced with something that you can associate with..

     eg:
     txt$[111] is now txt$['last_post']
     txt$[302] is now txt$['new']
     etc..

    these are 2 that were effecting my recent posts article/block

    thats whats causing most of these type of errors .. so rule of thumb would be to check your block/article code for any references to txt$[nimber] and change them to txt$['text']


Blue Steel

seems strange.. are you sure all the files gor uploaded properly.. sometimes ftp clients get confused .

did you uninstall tp 1.00 beta 4 (or earlier) prior to installing tp 1.0 beta5-1

Quotebecause the themes from 1b4 don't work on 1b5+  they aren't compatable

and you don't auto update to TP1.0b5

you have to uninstall tp1.0b4 first .. then install tp1.0b5-1

all the old themes / styles are no longer compatable.. you need to use new / updated themes if/as they get updated

DawnsWebDesigns

Quote from: BlueSteel on April 28, 2010, 12:41:55 AM
$txt[139] is the problem. TP 1.0 Beta 5+ doesn'ty seem to support lang file references by number any more. you need to locate the reference and put that in place of the number.

i've given examples in other posts

This may or may not be the problem.  I'm not a programmer so I wouldn't know.

The directions say to find this:
// Build up the linktree.
      $context['linktree'] = array_merge(
         $context['linktree'],
         array(array(
            'url' => $scripturl . '#' . $board_info['cat']['id'],
            'name' => $board_info['cat']['name']
         )),


& replace with this:

// Build up the linktree (adding TPortal forum index)
                $context['linktree'] = array_merge(
                        $context['linktree'],
                        array(array(
                                'url' => $scripturl . '?action=forum#' . $board_info['cat']['id'],
                                'name' => $board_info['cat']['name']
                        )),


That last piece...the )),...there's no longer a comma after that.  So I took that comma out & now I'm getting:

Parse error: syntax error, unexpected $end in /var/www/domains/dawnswebdesigns.com/docs/family/forum/Sources/Load.php on line 1635

Sir you're not even telling me which language files to hunt through...tp's language files or SMF's language files.

This was a fresh install of 1.1.11.  No prior mods at all.  And so far the few themes I got were for SMF 1.1.11...not TinyPortal.

I do thank you for trying.  I'm not sure if it's the mod or the instructions but I'll wait 'til the programmers figure it out.  I think bloc knows it's the truth...I'm an installing kind of hag not a programming kind of hag.  I have neither the photographic memory nor the eyes for it. :)   

ZarPrime

Dawn,

You keep mentioning themes.  Out of curiosity, I just need to ask you a question.  You did try the install of TP while using the default SMF theme (theme=1), correct?  The way you are talking about themes, it leads me to believe that you installed other themes before installing TP, or any of your other Mods.  With SMF 1.1.x, TP must always be installed and made to work properly with the default theme before trying to make it work with custom themes.  I just looked at your site with the default theme and there is no indication that TP is installed on that.

ZarPrime

IchBin

 
Quote from: BlueSteel on April 28, 2010, 12:41:55 AM
$txt[139] is the problem. TP 1.0 Beta 5+ doesn'ty seem to support lang file references by number any more. you need to locate the reference and put that in place of the number.

i've given examples in other posts

This is not true. SMF1.1.x still uses those numbered $txt variables just fine.

Blue Steel

ok thanks.. i'll remember that. sorry.

This website is proudly hosted on Crocweb Cloud Website Hosting.