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!
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.
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)
I need the code around that error in your ssi.php file in order to attempt to fix it.
Or attach the file here.
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~
Sorry for bump, not sure if it is allowed here but..
*BUMP!* PLEASE HELP!
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.
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).
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...
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)
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~
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!)
Try this one Cory.
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 1745Diffrent line! Please hurry (Again.. sorry!)
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?
Version 1.1.4
K, give me a min.
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.
Sorry Xarcell. Was trying to help the guy in hurry here. :P
Now try this one:
save a copy of your SSI.php somewhere safe.
Then try using the attached file instead.
lol, we posted it at the same time. :P
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.
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.
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 1757Quote 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!
I know it was a bit wierd, but he said he hasn't added and mod's.
Thanks for your help Ich.
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.
Hey cory, you might want to use TP theme, or have your theme converted to TP.
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.)
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
Thanks Hairy :)
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!
Your fine cory. I get to practice offering support, something I'm not too great at.
: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
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
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...