MyBB Community Forums

Full Version: Settings..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

My forum has been pretty ill recently, it's throwing errors in many directions, even though it has a fresh copy of MyBB 1.6.3 + no plugins installed.

Basically, it's a problem with the cookie settings, I've adjusted the settings.php to the correct cookie settings as shown in Matt's topic here: http://community.mybb.com/thread-74904.html

The site works for a bit, then eventually the settings revert back to what they were before...I've just tried to adjust them again, and now I can't get in at all, no matter what combinations of settings I try...I've deleted the settings.php file, browsed around as I've read that it will regenerate itself...it did, but with the old cookie settings..

Now I'm getting an error that looks like this, for modifying the cookie settings in settings.php...

The following warnings occurred:
Warning [2] Cannot modify header information - headers already sent by (output started at /home/protectf/public_html/inc/settings.php:1) - Line: 1622 - File: inc/functions.php PHP 5.2.17 (Linux)
File 	Line 	Function
[PHP] 	  	errorHandler->error
/inc/functions.php 	1622 	header
/inc/class_session.php 	360 	my_setcookie
/inc/class_session.php 	98 	session->load_guest
/global.php 	55 	session->init
/index.php 	18 	require_once
Warning [2] Cannot modify header information - headers already sent by (output started at /home/protectf/public_html/inc/settings.php:1) - Line: 1622 - File: inc/functions.php PHP 5.2.17 (Linux)
File 	Line 	Function
[PHP] 	  	errorHandler->error
/inc/functions.php 	1622 	header
/inc/class_session.php 	365 	my_setcookie
/inc/class_session.php 	98 	session->load_guest
/global.php 	55 	session->init
/index.php 	18 	require_once
Warning [2] Cannot modify header information - headers already sent by (output started at /home/protectf/public_html/inc/settings.php:1) - Line: 1622 - File: inc/functions.php PHP 5.2.17 (Linux)
File 	Line 	Function
[PHP] 	  	errorHandler->error
/inc/functions.php 	1622 	header
/inc/class_session.php 	106 	my_setcookie
/global.php 	55 	session->init
/index.php 	18 	require_once

I'm pretty struck on what to do as I've tried quite a lot to resolve the issue and I'm pretty experienced with MyBB.

To give you something to work of:

Site: http://protectionforums.com/
Settings.php Contents:
 <?php
/*********************************\ 
  DO NOT EDIT THIS FILE, PLEASE USE
  THE SETTINGS EDITOR
\*********************************/

$settings['load'] = "0";
$settings['mail_message_id'] = "1";
$settings['mail_parameters'] = "";
$settings['adminemail'] = "[email protected]";
$settings['extraadmininfo'] = "0";
$settings['allowaway'] = "1";
$settings['allowbuddyonly'] = "0";
$settings['allowcustomwarnings'] = "1";
$settings['allowmultipleemails'] = "0";
$settings['pmsallowhtml'] = "0";
$settings['sightml'] = "0";
$settings['multirep'] = "1";
$settings['pmsallowmycode'] = "1";
$settings['sigmycode'] = "1";
$settings['negrep'] = "1";
$settings['postrep'] = "1";
$settings['pmsallowsmilies'] = "1";
$settings['sigsmilies'] = "1";
$settings['pmsallowimgcode'] = "1";
$settings['sigimgcode'] = "1";
$settings['pmsallowvideocode'] = "1";
$settings['subscribeexcerpt'] = "100";
$settings['announcementlimit'] = "5";
$settings['attachthumbh'] = "96";
$settings['attachthumbw'] = "96";
$settings['avatardir'] = "images/avatars";
$settings['avatarresizing'] = "auto";
$settings['avataruploadpath'] = "./uploads/avatars";
$settings['boardclosed'] = "0";
$settings['boardclosed_reason'] = "Back soon";
$settings['bbname'] = "Protection Forums";
$settings['bburl'] = "http://protectionforums.com/";
$settings['canviewownwarning'] = "1";
$settings['captchaimage'] = "1";
$settings['bbcodeinserter'] = "1";
$settings['smilieinserter'] = "1";
$settings['faxno'] = "";
$settings['contactlink'] = "mailto:[email protected]";
$settings['cplanguage'] = "english";
$settings['cpstyle'] = "";
$settings['cookiedomain'] = ".protectionforums.com";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = ".";
$settings['coppa'] = "disabled";
$settings['customtitlemaxlength'] = "50";
$settings['wolcutoffmins'] = "15";
$settings['dateformat'] = "d-m-y";
$settings['dstcorrection'] = "0";
$settings['dayspruneregistered'] = "30";
$settings['dayspruneunactivated'] = "30";
$settings['decpoint'] = ".";
$settings['bblanguage'] = "english";
$settings['default_memberlist_sortby'] = "regdate";
$settings['default_memberlist_order'] = "ASC";
$settings['timezoneoffset'] = "+10";
$settings['delayedthreadviews'] = "0";
$settings['disableregs'] = "0";
$settings['failedlogintext'] = "1";
$settings['edittimelimit'] = "0";
$settings['enablecalendar'] = "1";
$settings['enableforumjump'] = "1";
$settings['enablememberlist'] = "1";
$settings['enablepms'] = "1";
$settings['enablereputation'] = "1";
$settings['seourls'] = "auto";
$settings['enablepruning'] = "1";
$settings['enablewarningsystem'] = "1";
$settings['use_xmlhttprequest'] = "0";
$settings['errorloglocation'] = "./error.log";
$settings['errorlogmedium'] = "both";
$settings['errortypemedium'] = "both";
$settings['portal_announcementsfid'] = "2";
$settings['modlist'] = "1";
$settings['redirects'] = "0";
$settings['gziplevel'] = "4";
$settings['searchhardlimit'] = "0";
$settings['hideprivateforums'] = "1";
$settings['homename'] = "Protection Forums";
$settings['homeurl'] = "/";
$settings['siglength'] = "300";
$settings['logip'] = "hide";
$settings['loginattemptstimeout'] = "15";
$settings['mail_handler'] = "mail";
$settings['mail_logging'] = "2";
$settings['mailingaddress'] = "";
$settings['maxloginattempts'] = "5";
$settings['avatarsize'] = "100000";
$settings['maxattachments'] = "5";
$settings['maxavatardims'] = "120x120";
$settings['postmaxavatarsize'] = "70x70";
$settings['memberlistmaxavatarsize'] = "70x70";
$settings['maxpostimages'] = "10";
$settings['maxmessagelength'] = "65535";
$settings['maxquotedepth'] = "5";
$settings['maxsigimages'] = "2";
$settings['maxpolloptions'] = "10";
$settings['maxmultipagelinks'] = "5";
$settings['maxpasswordlength'] = "30";
$settings['polloptionlimit'] = "250";
$settings['maxposts'] = "0";
$settings['maxregsbetweentime'] = "1";
$settings['maxreplength'] = "300";
$settings['maxnamelength'] = "30";
$settings['maxpostvideos'] = "1";
$settings['maxwarningpoints'] = "10";
$settings['membersperpage'] = "20";
$settings['postmergefignore'] = "";
$settings['postmergesep'] = "[hr]";
$settings['postmergeuignore'] = "4";
$settings['minmessagelength'] = "5";
$settings['minpasswordlength'] = "7";
$settings['minsearchword'] = "0";
$settings['minnamelength'] = "3";
$settings['sigcountmycode'] = "1";
$settings['smilieinsertercols'] = "4";
$settings['smilieinsertertot'] = "20";
$settings['portal_numannouncements'] = "10";
$settings['wordwrap'] = "80";
$settings['failedcaptchalogincount'] = "5";
$settings['portal_showdiscussionsnum'] = "10";
$settings['failedlogincount'] = "5";
$settings['tplhtmlcomments'] = "0";
$settings['prunepostcount'] = "1";
$settings['postfloodcheck'] = "1";
$settings['postfloodsecs'] = "60";
$settings['postlayout'] = "horizontal";
$settings['postmergemins'] = "60";
$settings['postsperpage'] = "10";
$settings['pmfloodsecs'] = "60";
$settings['pruneunactived'] = "1";
$settings['enableprunebyposts'] = "1";
$settings['prunethreads'] = "0";
$settings['threadreadcut'] = "7";
$settings['refreshwol'] = "1";
$settings['regdateformat'] = "M Y";
$settings['regtype'] = "verify";
$settings['hottopic'] = "25";
$settings['reportmethod'] = "db";
$settings['repsperpage'] = "15";
$settings['requirecomplexpasswords'] = "0";
$settings['returnemail'] = "";
$settings['searchfloodtime'] = "30";
$settings['searchtype'] = "standard";
$settings['nocacheheaders'] = "0";
$settings['standardheaders'] = "0";
$settings['showeditedbyadmin'] = "1";
$settings['showeditedby'] = "1";
$settings['showsimilarthreads'] = "0";
$settings['attachthumbnails'] = "yes";
$settings['showdescriptions'] = "1";
$settings['portal_showstats'] = "1";
$settings['showlanguageselect'] = "0";
$settings['portal_showdiscussions'] = "1";
$settings['multiquote'] = "1";
$settings['quickreply'] = "1";
$settings['portal_showsearch'] = "1";
$settings['showindexstats'] = "1";
$settings['subforumsstatusicons'] = "1";
$settings['portal_showpms'] = "1";
$settings['portal_showwelcome'] = "1";
$settings['threadreview'] = "1";
$settings['showbirthdays'] = "1";
$settings['showvernum'] = "0";
$settings['portal_showwol'] = "1";
$settings['showwol'] = "1";
$settings['showforumviewing'] = "0";
$settings['similarlimit'] = "10";
$settings['similarityrating'] = "1";
$settings['secure_smtp'] = "0";
$settings['smtp_host'] = "";
$settings['smtp_pass'] = "";
$settings['smtp_port'] = "";
$settings['smtp_user'] = "";
$settings['statslimit'] = "15";
$settings['subforumsindex'] = "5";
$settings['thousandssep'] = ",";
$settings['threadsperpage'] = "15";
$settings['failedlogintime'] = "30";
$settings['betweenregstime'] = "72";
$settings['timeformat'] = "h:i A";
$settings['uploadspath'] = "./uploads";
$settings['dotfolders'] = "1";
$settings['useerrorhandling'] = "1";
$settings['gzipoutput'] = "0";
$settings['useshutdownfunc'] = "0";
$settings['usereferrals'] = "1";
$settings['threadusenetstyle'] = "0";
$settings['userpppoptions'] = "5,10,20,25,30,40,50";
$settings['usertppoptions'] = "10,20,25,30,40,50";
$settings['browsingthisforum'] = "0";
$settings['browsingthisthread'] = "0";
$settings['emailkeep'] = "0";
$settings['hottopicviews'] = "250";

?>


Any help would be highly appreciated as to why the settings love to change themselves.

Thanks.
Nevermind...sorted it out.
While you have it sorted out, I just wanted to verify that after making the changes in settings.php you also made the changes in admincp, otherwise they will just revert to the old settings anytime the settings.php file is regenrated.
(2011-05-07, 10:55 AM)- G33K - Wrote: [ -> ]While you have it sorted out, I just wanted to verify that after making the changes in settings.php you also made the changes in admincp, otherwise they will just revert to the old settings anytime the settings.php file is regenrated.

Yes, I did that, thanks for asking Smile