TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,996
  • Total Topics: 21,327
  • Online today: 697
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 267
  • Total: 267

one more parse error

Started by superQ, July 10, 2006, 09:41:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

superQ

Hello everybody. :) I was getting this error in the index.php at  line 206. There was no line at that place. there was supposed to be 'cause there was in my other forum so I a just put the good one in instead of the bad one. The one that was producing the error was missing everything from line 206 down.

Now I get this error in both forums. which are tp0.86 smf 1.1rc2 with blackk 22 theme and no mods installed. and I repaired the database.

Parse error: syntax error, unexpected T_STRING in /home/rstr/public_html/Settings.php on line 28

Here is the line

$mmessage = 'Okay faithful users...we're attempting to restore an older backup of the database...news will be posted once we're back!';      # Description of why the forum is in maintenance mode.

I put it in a php editoe and debugged and it told me wtf I already knew,but not what was wrong :tickedoff:

I saw a number of ways to do that we're and I had it like this we\"re and we are and it still gets the error. I don't know if that is it . Which one is correct anyway. I am guessing anything but we're.

Thanks,superQ

G6Cad

Download the repair_settings.php file from SMF forums downloadsection, Think it is in the conversion downloads there.
Upload it to your forum and run it through your browser

IchBin

This line:
$mmessage = 'Okay faithful users...we're attempting to restore an older backup of the database...news will be posted once we're back!';

Should be:
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!';

superQ

hmmm. tried both those fixes and  nada. :(. I see some places where people look for help an post a line where the error is suppssed to be and people say to look at some lines ahead of that particular line. Let me pot the area andif some one could see if it looks good I would appreciate it.I don't think it has anything to do with the host since both forums are doing the same thing. :-\line 28 1s green

########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable!  Change it to 0 to fix it.
$maintenance = 0;      # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle = 'Maintenance Mode';      # Title for the Maintenance Mode message.
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we're back!';      # Description of why the forum is in maintenance mode.

The index.php in both forums is 1.1rc2 but th settings .php is this???
rc1---I did run the repair_settings file. There was only one. Is this the settings version I should have???

<?php
/******************************************************************************
* Settings.php                                                                *
*******************************************************************************
* SMF: Simple Machines Forum                                                  *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                *
* =========================================================================== *
* Software Version:           SMF 1.1 RC1                                     *
* Software by:                Simple Machines (http://www.simplemachines.org) *
* Copyright 2001-2005 by:     Lewis Media (http://www.lewismedia.com)         *
* Support, News, Updates at:  http://www.simplemachines.org                   *


also is there any spaces in the we\'re like after the backslash. It doesn't work either way but i want to put the right one there so it doesn't nterfere when I do find what is wrong

Thanks.

www.therockpile.org   and

http://www.therockpile.zeeblo.com/smf/index.php

IchBin

I'm not sure about the version info. But you need to have a slash before BOTH apostrophe's in "we're". Look at the code I posted and you'll see what I mean.

superQ

those pesky scroll bars\' let me check it out. thanks

IchBin

Quote from: superQ on July 11, 2006, 04:34:50 PM
those pesky scroll bars\' let me check it out. thanks
You mean the lack of? I've noticed some themes don't even have scrollbars.

superQ

Thanks ib and G6. It was that second backslash in therockpile.org but I fixed[lol]so many things  in the other one that I had to do a restore from backup. ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.