I was looking at some forum settings and when I tried adding a value to the 3rd setting which is homepage setting I believe I received this warning:
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/content/m/s/j/msjay/html/forum/inc/settings.php on line 75
I tried changing the value with no luck so I hit back and tried going into another setting, now I get this parse error every time and I can't go back into the setting that did this in the first place because the error pops up.
Even worst is I can't even access my forum at all anymore...any ideas?
To see the error for yourself check out the site
www.fearstavern.com/forum
You need to edit your ./inc/settings.php file.
Find line 75 and see if you can fix the error - chances are it will look something like
$settings['settingname'
Just make sure each line in your settings file looks like this:
$settings['settingname'] = 'something';
That should give you access back to your forum - just make sure you save your settings again in the ACP.
The problem is I can't even access my ACP anymore...but i'll try finding the php file separately and manually changing it.
You don't need to access your ACP to do that, you get that file in FTP.
ok this is line 75...I don't see what the problem is
$settings['Fear's Tavern'] = "http://www.fearstavern.com";
edit: oh wait it might be that apostrophe after fear....
edit2: Yep that was the problem, i'm all good now! Thanks...I was trying to change the link on the banner...any advice?
Shouldn't the 'Fear's Tavern' be the name of a setting rather than the actual name of the site?? Either homeurl or bburl.
You can manually change the link the banner links to in the header template, it automatically goes to whatever the 'bburl' IIRC.
(2008-10-16, 03:21 PM)Matt_ Wrote: [ -> ]Shouldn't the 'Fear's Tavern' be the name of a setting rather than the actual name of the site?? Either homeurl or bburl.

lol...
If you want to have apostrophes there, proceed it with a backslash. E.g.
$settings['Fear\'s Tavern']
Nah I just took out the apostrophe...lol definitely a good way to bring someone's site down eh?
And in regards to my second edit, I figured out how to do that too
Mybb Skills Level +2!!
I am now...minor noob
Why are you directly editing inc/settings.php? The settings in the file will be overwritten the next time you save a setting in the Admin CP.
Not to mention what you just did, didn't do anything anyway. You can't call on variables with spaces on apostrophes in them in PHP.