TinyPortal

Development => Support => Installation => Topic started by: Cory on November 16, 2007, 09:22:16 PM

Title: TinyPortal Error!
Post by: Cory on November 16, 2007, 09:22:16 PM
Sorry if this has been posted countless times but I need answers quick! My forums are completely down!

I listened to the FAQ and It was perfect then i clicked the "Restart your forum" button like it said and i got a horrible error!

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /www/110mb.com/c/o/r/y/_/_/_/_/cory/htdocs/forum/SSI.php on line 177

Please help!
Title: Re: TinyPortal Error!
Post by: Xarcell on November 16, 2007, 09:24:54 PM
That's very odd. What other mod's are you using.


Also, please post a few lines of code above and below that line for us to look at please.
Title: Re: TinyPortal Error!
Post by: Cory on November 16, 2007, 09:27:25 PM
Quote from: Xarcell on November 16, 2007, 09:24:54 PM
That's very odd. What other mod's are you using.


Also, please post a few lines of code above and below that line for us to look at please.

Not sure what you mean but only mods i have installed r themes and tinyportal.

To take a look at my site: http://www.cory.110mb.com (http://www.cory.110mb.com)

(Also, thanks for fast response)
Title: Re: TinyPortal Error!
Post by: Xarcell on November 16, 2007, 09:30:01 PM
I need the code around that error in your ssi.php file in order to attempt to fix it.

Or attach the file here.
Title: Re: TinyPortal Error!
Post by: Cory on November 16, 2007, 09:35:54 PM
Oh, sorry.

My SSI.php is too big it says, is there another way to send it to u?

Also... Weird! I looked in my forum root directory and i saw SSI.php and SSI.php~.

EDIT! I also saw an index.php and index.php~
Title: Re: TinyPortal Error!
Post by: Cory on November 16, 2007, 10:12:37 PM
Sorry for bump, not sure if it is allowed here but..

*BUMP!* PLEASE HELP!
Title: Re: TinyPortal Error!
Post by: Ken. on November 16, 2007, 11:05:39 PM
Cory you really need to give folks some time to get to your question... bumping your post after less than one hour is a little much.

Thanks.
Title: Re: TinyPortal Error!
Post by: Ken. on November 16, 2007, 11:15:10 PM
Files with a tilda (~) are backup's for the 'working' files so in your case just focus on the file name asked for... SSI.php.

And you can post the file by opening it up and copying the lines of code and pasting them into a code box in your post by using the [ code] [ /code] command (without the spaces).
Title: Re: TinyPortal Error!
Post by: Xarcell on November 16, 2007, 11:54:21 PM
Yes, we cannot see where the problem lies unless you open ssi.php and post the code.

The SSI.php~ is a GOOD thing. You want those. Like Ken says, it's a backup. Just leave it be...
Title: Re: TinyPortal Error!
Post by: Cory on November 16, 2007, 11:58:10 PM
2 things.

1.) Sorry for bump, it's just that I will be grounded for a while so I want to get my site up!

2.) To get to my backup SSI.php, go to http://www.cory.110mb.com/forum/SSI.php~ (http://www.cory.110mb.com/forum/SSI.php~) (Not sure if I should post that here, if not.. please remove it)
Title: Re: TinyPortal Error!
Post by: Xarcell on November 16, 2007, 11:59:44 PM
Cory, please don't PM me for support. The file you linked me is the SSI.php file "before" the changes. I need to see the file "after" the changes, the SSI.php file. Not the SSI.php~
Title: Re: TinyPortal Error!
Post by: Cory on November 17, 2007, 12:03:19 AM
Quote from: Xarcell on November 16, 2007, 11:59:44 PM
Cory, please don't PM me for support. The file you linked me is the SSI.php file "before" the changes. I need to see the file "after" the changes, the SSI.php file. Not the SSI.php~

1.) Sorry.

2.) Sorry.

3.) SSI.php Attached. (Delete it if it has my personal info and other)

(Sorry for rush but PLEASE hurry! I have to go soon!)
Title: Re: TinyPortal Error!
Post by: IchBin on November 17, 2007, 12:21:56 AM
Try this one Cory.
Title: Re: TinyPortal Error!
Post by: Cory on November 17, 2007, 12:25:02 AM
Quote from: IchBinâ,,¢ on November 17, 2007, 12:21:56 AM
Try this one Cory.

Thanks, but new error:


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /www/110mb.com/c/o/r/y/_/_/_/_/cory/htdocs/forum/SSI.php on line 1745


Diffrent line! Please hurry (Again.. sorry!)
Title: Re: TinyPortal Error!
Post by: Xarcell on November 17, 2007, 12:26:55 AM
Here is the code from lines 167 to 182:

// Call a function passed by GET.
if (isset($_GET['ssi_function']) && function_exists('ssi_' . $_GET['ssi_function']))
{
call_user_func('ssi_' . $_GET['ssi_function']);
exit;
}
if (isset($_GET['ssi_function']))
exit;
// You shouldn't just access SSI.php directly by URL!!
elseif (basename($_SERVER['PHP_SELF']) == 'SSI.php')
die(sprintf($txt['ssi_not_direct'], $user_info['is_admin'] ? ''' . addslashes(__FILE__) . ''' : ''SSI.php''));

error_reporting($ssi_error_reporting);
@set_magic_quotes_runtime($ssi_magic_quotes_runtime);

return true;


I don't see the problem. What SMF version are you using?
Title: Re: TinyPortal Error!
Post by: Cory on November 17, 2007, 12:27:40 AM
Version 1.1.4
Title: Re: TinyPortal Error!
Post by: Xarcell on November 17, 2007, 12:32:08 AM
K, give me a min.
Title: Re: TinyPortal Error!
Post by: Cory on November 17, 2007, 12:33:35 AM
Quote from: Xarcell on November 17, 2007, 12:32:08 AM
K, give me a min.

Lol, a minute for what? :D I'll just wait.
Title: Re: TinyPortal Error!
Post by: IchBin on November 17, 2007, 12:34:11 AM
Sorry Xarcell. Was trying to help the guy in hurry here. :P

Now try this one:
Title: Re: TinyPortal Error!
Post by: Xarcell on November 17, 2007, 12:34:33 AM
save a copy of your SSI.php somewhere safe.

Then try using the attached file instead.

Title: Re: TinyPortal Error!
Post by: Xarcell on November 17, 2007, 12:34:56 AM
lol, we posted it at the same time.  :P
Title: Re: TinyPortal Error!
Post by: Xarcell on November 17, 2007, 12:36:01 AM
IchBin, how come our file sizes are so much different?

I took a fresh copy of the 1.1.4 SSI file and added the TP line.
Title: Re: TinyPortal Error!
Post by: IchBin on November 17, 2007, 12:36:33 AM
If you've edited this file, you need to be careful. There is a lot of extra junk and stuff in the file you provided. Possibly mods you've installed, but I don't know.

Its all good X man.
I'm using his file.
His file seems to have a bunch of extra code in it.
Title: Re: TinyPortal Error!
Post by: Cory on November 17, 2007, 12:38:05 AM
Quote from: IchBinâ,,¢ on November 17, 2007, 12:34:11 AM
Sorry Xarcell. Was trying to help the guy in hurry here. :P

Now try this one:


Error:
Fatal error: Cannot redeclare ssi_shutdown() (previously declared in /www/110mb.com/c/o/r/y/_/_/_/_/cory/htdocs/forum/SSI.php:187) in /www/110mb.com/c/o/r/y/_/_/_/_/cory/htdocs/forum/SSI.php on line 1757


Quote from: Xarcell on November 17, 2007, 12:34:33 AM
save a copy of your SSI.php somewhere safe.

Then try using the attached file instead.



Works! Thanks so much!
Title: Re: TinyPortal Error!
Post by: Xarcell on November 17, 2007, 12:38:37 AM
I know it was a bit wierd, but he said he hasn't added and mod's.

Thanks for your help Ich.
Title: Re: TinyPortal Error!
Post by: IchBin on November 17, 2007, 12:39:29 AM
Did see the mods part. But I noticed the code had been changed and stuff quite a bit. It was missing alot of stuff. Perhaps an editor he opened it with.
Title: Re: TinyPortal Error!
Post by: Xarcell on November 17, 2007, 12:40:19 AM
Hey cory, you might want to use  TP theme, or have your theme converted to TP.
Title: Re: TinyPortal Error!
Post by: Cory on November 17, 2007, 12:43:06 AM
Quote from: Xarcell on November 17, 2007, 12:40:19 AM
Hey cory, you might want to use  TP theme, or have your theme converted to TP.

What do you mean? (I gotta learn TP now.)
Title: Re: TinyPortal Error!
Post by: Hairy on November 17, 2007, 12:51:45 AM
The theme you use needs to be compatible with TinyPortal for the Portal and Blocks to show.

Install this: http://www.tinyportal.net/index.php?topic=5554.0

It's the same theme you are using but it is the TinyPortal version.

Cheers
Title: Re: TinyPortal Error!
Post by: Xarcell on November 17, 2007, 12:57:23 AM
Thanks Hairy :)
Title: Re: TinyPortal Error!
Post by: Cory on November 17, 2007, 01:01:53 AM
Quote from: Hairy on November 17, 2007, 12:51:45 AM
The theme you use needs to be compatible with TinyPortal for the Portal and Blocks to show.

Install this: http://www.tinyportal.net/index.php?topic=5554.0

It's the same theme you are using but it is the TinyPortal version.

Cheers

Done.

Thanks for all the help guys, I know I have been annoying but thanks!
Title: Re: TinyPortal Error!
Post by: Xarcell on November 17, 2007, 01:02:45 AM
Your fine cory. I get to practice offering support, something I'm not too great at.
Title: Re: TinyPortal Error!
Post by: Hairy on November 17, 2007, 01:43:50 AM
 :up: You should be occupied for the next week or two checking out all that TP has to offer (and get that TeamSpeak block working :) )

Cheers
Title: Re: TinyPortal Error!
Post by: Cory on November 17, 2007, 02:49:23 AM
Quote from: Hairy on November 17, 2007, 01:43:50 AM
:up: You should be occupied for the next week or two checking out all that TP has to offer (and get that TeamSpeak block working :) )

Cheers

Yep but I realized, I do not have fsockopen enabled, the ts block requires it. I am trying to enable it now :P


Week? I already got most of it now. :D
Title: Re: TinyPortal Error!
Post by: Dazed on November 17, 2007, 03:10:26 AM
Quote from: Cory on November 17, 2007, 02:49:23 AM
Quote from: Hairy on November 17, 2007, 01:43:50 AM
:up: You should be occupied for the next week or two checking out all that TP has to offer (and get that TeamSpeak block working :) )

Cheers

Yep but I realized, I do not have fsockopen enabled, the ts block requires it. I am trying to enable it now :P


Week? I already got most of it now. :D

Unless you are hosting your own server, fsock needs to be opened on the provider (hosting) end...