MyBB Community Forums

Full Version: T_ENCAPSED_AND_WHITESPACE ERROR.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey guys.
So for the last few weeks my forums have been down and olny now i have had time to sort it out....

Going over log files this is the only log i could see issues in.
The site that is getting a error is
Here

And this is what the error log has been showing.
Note: there is nothing in the log at all except this error.

[06-Jul-2012 01:42:21 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:22 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:22 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:26 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:26 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:26 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:26 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:27 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:27 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:28 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:43:28 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:44:52 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:44:52 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:44:53 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:44:53 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:44:55 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:44:55 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:44:55 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:44:55 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:45:54 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139

[06-Jul-2012 01:45:54 UTC] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.php on line 139
[/php]

Any help would be absolutly fantastic!
PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\zpanel\hostdata\zadmin\public_html\forum_timarulangaming_co_nz\inc\settings.p​hp on line 139


thats a clue....

whats line 139 of settings.php?
What is line 139 in ./inc/settings.p​hp?

Edit - Too slow this time.
$settings['avata

T be honest i did not even think about opening the file and having a look .../fail on my behalf!
Open a fresh mybb settings.php file and compare the contents to see if anythings broken or missing
your settings file is corrupted...
(2012-07-06, 02:37 AM)JamieJackson Wrote: [ -> ]Open a fresh mybb settings.php file and compare the contents to see if anythings broken or missing

settings.php is a cache file. There isn't a default settings.php as it's generated at installation, and when one doesn't exist.

OP - Delete ./inc/settings.php. That should fix your issue.
thank you very much guys.
i opened the file and half of the last line was missing.
So to me corrupt file?
any other reasons?
Cheers.
Precisely. As I said, delete ./inc/settings.php.
As said above, delete the ./inc/settings.php file. It'll regenerate it self.
Pages: 1 2