TinyPortal

Development => Support => Installation => Topic started by: dodant on February 20, 2009, 11:33:19 PM

Title: Error trying to start forum after TP 1.0 beta 3 load
Post by: dodant on February 20, 2009, 11:33:19 PM
fresh smf 1.1.8
TP v1.0 beta 3

Did the install manually - package manager doesn't seem to work.
1.  uploaded tp files
2.  ran tp_install.php
3. uploaded modified files

Get error!
Parse error: syntax error, unexpected $end in /home/virtual/site160/fst/var/www/html/goaltalk_test/testsmf/Sources/QueryString.php on line 466.

Went back and looked at my mod in QueryString.php.  Can't see anything wrong.

//  TP Portal  ddt  2/20/09
// Let's do something special for session ids!
      if (defined('SID') && SID != '')
         $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?(?:' . SID . ';)((?:board|topic|page|cat|action)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html?' . SID . '\$2\"'", $buffer);
      else
         $buffer = preg_replace('/"' . preg_quote($scripturl, '/') . '\?((?:board|topic|page|cat|action)=[^#"]+?)(#[^"]*?)?"/e', "'\"' . \$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2\"'", $buffer);
//  end TP Portal  ddt  2/20/09

suggestions?
Title: Re: Error trying to start forum after TP 1.0 beta 3 load
Post by: Xarcell on February 20, 2009, 11:36:03 PM
Make sure your { and } are in the proper places/extras.
Title: Re: Error trying to start forum after TP 1.0 beta 3 load
Post by: dodant on February 21, 2009, 12:56:39 AM
Thanks,
I was missing a '}'

Also, think I found an error in the mod instructions.

for the Load.php mod, the last line is listed as

)),

I got it to work with just

))

Title: Re: Error trying to start forum after TP 1.0 beta 3 load
Post by: G6Cad on February 21, 2009, 10:54:02 AM
No error there, YOU forgot the last , when it asks you to add after ;)