Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Error during upgrade from 1.8.19 to 1.8.21
#1
Not Solved
I am getting this error:
Parse error: syntax error, unexpected '"', expecting identifier (T_STRING) in /home3/robmeister89/public_html/forum/inc/settings.php on line 16

And here's my settings.php file:
<?php
/*********************************\ 
  DO NOT EDIT THIS FILE, PLEASE USE
  THE SETTINGS EDITOR
\*********************************/

$settings['load'] = "0";
$settings['showownunapproved'] = "0";
$settings['mail_message_id'] = "1";
$settings['mail_parameters'] = "";
$settings['discord_integration_additional'] = "webhook=this_is_a_webhook

behavior=new_reply

forums=1,2,3

groups=1

prefixes=0

message=[$mybb->user[\"username\"]]($userurl) posted an announcement [{$mybb->input[\"subject\"]}]($threadurl)!

---

webhook=this_is_another_webhook

behavior=new_thread

forums=4

groups=2,3,4

prefixes=1

message=[$mybb->user[\"username\"]]($userurl) posted an open thread [{$mybb->input[\"subject\"]}]($threadurl).";
$settings['adminemail'] = "[email protected]";
$settings['extraadmininfo'] = "1";
$settings['allowalignmycode'] = "1";
$settings['allowanonwarningpms'] = "1";
$settings['allowaway'] = "1";
$settings['allowbasicmycode'] = "1";
$settings['allowbuddyonly'] = "0";
$settings['allowcodemycode'] = "1";
$settings['allowcolormycode'] = "1";
$settings['allowcustomwarnings'] = "1";
$settings['alloweditreason'] = "1";
$settings['allowemailmycode'] = "1";
$settings['allowmultipleemails'] = "0";
$settings['allowfontmycode'] = "1";
$settings['allowgooglefield'] = "-1";
$settings['pmsallowhtml'] = "0";
$settings['announcementshtml'] = "0";
$settings['sightml'] = "0";
$settings['allowicqfield'] = "-1";
$settings['allowlinkmycode'] = "1";
$settings['allowlistmycode'] = "1";
$settings['allowmemycode'] = "1";
$settings['multirep'] = "1";
$settings['pmsallowmycode'] = "1";
$settings['sigmycode'] = "1";
$settings['negrep'] = "1";
$settings['neurep'] = "1";
$settings['posrep'] = "1";
$settings['postrep'] = "1";
$settings['allowremoteavatars'] = "1";
$settings['allowsizemycode'] = "1";
$settings['allowskypefield'] = "-1";
$settings['pmsallowsmilies'] = "1";
$settings['sigsmilies'] = "1";
$settings['allowsymbolmycode'] = "1";
$settings['allowyahoofield'] = "-1";
$settings['pmsallowimgcode'] = "1";
$settings['sigimgcode'] = "1";
$settings['pmsallowvideocode'] = "1";
$settings['username_method'] = "2";
$settings['purgespammergroups'] = "3,4,6";
$settings['subscribeexcerpt'] = "100";
$settings['announcementlimit'] = "2";
$settings['dvz_sb_antiflood'] = "5";
$settings['chatweesso_apikey'] = "";
$settings['attachthumbh'] = "96";
$settings['attachthumbw'] = "96";
$settings['readparentforums'] = "0";
$settings['avatardir'] = "images/avatars";
$settings['avatarresizing'] = "auto";
$settings['avataruploadpath'] = "./uploads/avatars";
$settings['awactialert'] = "1";
$settings['dvz_sb_away'] = "600";
$settings['purgespammerbandelete'] = "ban";
$settings['purgespammerbanreason'] = "Spam";
$settings['purgespammerbangroup'] = "7";
$settings['dvz_sb_blocked_users'] = " ";
$settings['stopforumspam_block_on_error'] = "0";
$settings['boardclosed'] = "1";
$settings['boardclosed_reason'] = "These forums are currently closed for maintenance. Please check back later.



Thank You for visiting :)

--------";
$settings['bbname'] = "CFA Forum";
$settings['bburl'] = "http://cfa-football.com/forum";
$settings['canviewownwarning'] = "1";
$settings['captchaimage'] = "1";
$settings['chatweesso_chatid'] = "";
$settings['stopforumspam_check_emails'] = "1";
$settings['stopforumspam_on_contact'] = "0";
$settings['stopforumspam_on_newreply'] = "0";
$settings['stopforumspam_on_newthread'] = "0";
$settings['stopforumspam_check_ips'] = "1";
$settings['enablestopforumspam_on_register'] = "0";
$settings['stopforumspam_check_usernames'] = "0";
$settings['bbcodeinserter'] = "1";
$settings['partialmode'] = "0";
$settings['smilieinserter'] = "1";
$settings['contactemail'] = "";
$settings['faxno'] = "";
$settings['contactlink'] = "mailto:[email protected]";
$settings['cplanguage'] = "english";
$settings['cpstyle'] = "BlueVision";
$settings['cookiedomain'] = ".cfa-football.com";
$settings['cookiepath'] = "/forum/";
$settings['cookieprefix'] = "";
$settings['coppa'] = "disabled";
$settings['prunepostcountall'] = "0";
$settings['customtitlemaxlength'] = "40";
$settings['wolcutoffmins'] = "15";
$settings['dateformat'] = "m-d-Y";
$settings['dvz_sb_dateformat'] = "d M H:i";
$settings['datetimesep'] = ", ";
$settings['dstcorrection'] = "1";
$settings['dayspruneregistered'] = "90";
$settings['dayspruneunactivated'] = "90";
$settings['decpoint'] = ".";
$settings['useravatardims'] = "100|100";
$settings['discord_webhooks_botname'] = "MYBB Bot";
$settings['bblanguage'] = "english";
$settings['default_memberlist_sortby'] = "regdate";
$settings['whoreadthread_2'] = "username";
$settings['default_memberlist_order'] = "ascending";
$settings['whoreadthread_3'] = "ASC";
$settings['timezoneoffset'] = "-6";
$settings['useravatar'] = "images/default_avatar.png";
$settings['delayedthreadviews'] = "0";
$settings['no_plugins'] = "0";
$settings['contact_guests'] = "0";
$settings['disableregs'] = "0";
$settings['simpleckeditor_disallowed_pages'] = "";
$settings['discord_webhooks_new_post_botname'] = "";
$settings['discord_webhooks_new_registration_botname'] = "";
$settings['discord_webhooks_new_thread_botname'] = "";
$settings['discord_webhooks_new_post_url'] = "";
$settings['discord_webhooks_new_thread_url'] = "";
$settings['discord_webhooks_new_registration_url'] = "";
$settings['hiddencaptchaimage'] = "1";
$settings['failedlogintext'] = "1";
$settings['edittimelimit'] = "0";
$settings['enableattachments'] = "1";
$settings['enablecalendar'] = "1";
$settings['contact'] = "1";
$settings['enableforumjump'] = "1";
$settings['enableshowteam'] = "1";
$settings['helpsearch'] = "1";
$settings['enablememberlist'] = "1";
$settings['portal'] = "1";
$settings['enablepms'] = "1";
$settings['enablereputation'] = "1";
$settings['seourls_archive'] = "0";
$settings['seourls'] = "auto";
$settings['soft_delete'] = "0";
$settings['chatweesso_status'] = "";
$settings['statsenabled'] = "1";
$settings['enablepruning'] = "0";
$settings['enablewarningsystem'] = "1";
$settings['contact_badwords'] = "1";
$settings['use_xmlhttprequest'] = "1";
$settings['whoreadthread_1'] = "1";
$settings['discord_webhooks_forums'] = "-1";
$settings['errorloglocation'] = "./error.log";
$settings['errorlogmedium'] = "log";
$settings['errortypemedium'] = "both";
$settings['deleteinvites'] = "180";
$settings['mysb_text_size'] = "12";
$settings['forcelogin'] = "0";
$settings['portal_excludediscussion'] = "";
$settings['recentthread_forumskip'] = "";
$settings['portal_announcementsfid'] = "-1";
$settings['modlist'] = "1";
$settings['redirects'] = "1";
$settings['discord_webhooks_url'] = "https://discordapp.com/api/webhooks/623545140333641748/sDxYV6zPm5lWH4P6SMTD9sk2wThbfXF9r9EprYjngOrHeTFv13lhnh6dX2wPlI6qYrVx";
$settings['useravatarrating'] = "g";
$settings['dvz_sb_groups_refresh'] = "-1";
$settings['dvz_sb_groups_mod'] = "";
$settings['dvz_sb_groups_mod_own'] = "-1";
$settings['dvz_sb_groups_shout'] = "-1";
$settings['dvz_sb_groups_view'] = "-1";
$settings['gziplevel'] = "4";
$settings['searchhardlimit'] = "0";
$settings['quickadveditorplus_qued_heigh'] = "300";
$settings['quickadveditor_qued_heigh'] = "300";
$settings['quickadveditorplus_qued_heigh'] = "300";
$settings['quickadveditorplus_qued_heigh'] = "300";
$settings['quickadveditor_qued_heigh'] = "300";
$settings['quickadveditor_qued_heigh'] = "300";
$settings['quickadveditorplus_qued_heigh'] = "300";
$settings['quickadveditorplus_qurp_heigh'] = "280";
$settings['quickadveditor_qurp_heigh'] = "280";
$settings['quickadveditorplus_qurp_heigh'] = "280";
$settings['quickadveditorplus_qurp_heigh'] = "280";
$settings['quickadveditor_qurp_heigh'] = "280";
$settings['quickadveditor_qurp_heigh'] = "280";
$settings['quickadveditorplus_qurp_heigh'] = "280";
$settings['hiddencaptchaimagefield'] = "email3";
$settings['hideprivateforums'] = "1";
$settings['hidesignatures'] = "";
$settings['hidewebsite'] = "";
$settings['homename'] = "CFA";
$settings['homeurl'] = "http://cfa-football.com";
$settings['latestposts_threadcount'] = "15";
$settings['discord_webhooks_ignored_forums'] = "";
$settings['discord_webhooks_ignored_usergroups'] = "";
$settings['discord_webhooks_show'] = "2";
$settings['discord_webhooks_new_post_show'] = "2";
$settings['mysb_key'] = "1234";
$settings['quickadveditorplus_restore_lang'] = "Restore";
$settings['quickadveditorplus_restore_lang'] = "Restore";
$settings['quickadveditorplus_restore_lang'] = "Restore";
$settings['quickadveditorplus_restore_lang'] = "Restore";
$settings['dvz_sb_lazyload'] = "off";
$settings['siglength'] = "355";
$settings['stopforumspam_log_blocks'] = "0";
$settings['loginattemptstimeout'] = "15";
$settings['mail_handler'] = "mail";
$settings['mail_logging'] = "2";
$settings['mailingaddress'] = "";
$settings['maxloginattempts'] = "5";
$settings['recentthread_subject_length'] = "0";
$settings['avatarsize'] = "10";
$settings['maxattachments'] = "10";
$settings['maxavatardims'] = "";
$settings['postmaxavatarsize'] = "100x100";
$settings['memberlistmaxavatarsize'] = "70x70";
$settings['maxpostimages'] = "10";
$settings['maxmessagelength'] = "65535";
$settings['contact_maxmessagelength'] = "65535";
$settings['maxquotedepth'] = "5";
$settings['maxsigimages'] = "5";
$settings['maxpolloptions'] = "10";
$settings['maxmultipagelinks'] = "5";
$settings['maxpasswordlength'] = "30";
$settings['maxpmquotedepth'] = "5";
$settings['polloptionlimit'] = "250";
$settings['maxposts'] = "0";
$settings['maxregsbetweentime'] = "2";
$settings['maxreplength'] = "300";
$settings['contact_maxsubjectlength'] = "85";
$settings['maxnamelength'] = "30";
$settings['whoreadthread_4'] = "100";
$settings['maxpostvideos'] = "1";
$settings['maxwarningpoints'] = "10";
$settings['membersperpage'] = "20";
$settings['postmergefignore'] = "";
$settings['postmergesep'] = "[hr]";
$settings['postmergeuignore'] = "1,5,7";
$settings['minifycss'] = "0";
$settings['minmessagelength'] = "5";
$settings['contact_minmessagelength'] = "5";
$settings['minpasswordlength'] = "6";
$settings['dvz_sb_minposts'] = "0";
$settings['regtime'] = "15";
$settings['minreplength'] = "10";
$settings['minsearchword'] = "0";
$settings['stopforumspam_min_weighting_before_spam'] = "50.00";
$settings['minnamelength'] = "3";
$settings['mycodemessagelength'] = "1";
$settings['sigcountmycode'] = "1";
$settings['discord_webhooks_new_post_color'] = "#FFFFFF";
$settings['discord_webhooks_new_post_message'] = "@{username} wrote a new post *{posttitle}* - {url} on *{boardname}* board";
$settings['discord_webhooks_new_registration_message'] = "A new user - **{username}** - has registered an account on **{date %Y-%m-%d %H:%M:%S}**";
$settings['discord_webhooks_new_registration_color'] = "#D60000";
$settings['discord_integration_new_reply_message'] = "[{$mybb->user[\"username\"]}]($userurl) posted in [{$mybb->input[\"subject\"]}]($threadurl):



$messageshort";
$settings['discord_integration_new_reply_nickname'] = "";
$settings['discord_integration_new_reply_forums'] = "";
$settings['discord_integration_new_reply_groups'] = "";
$settings['discord_integration_new_reply_webhook'] = "https://discordapp.com/api/webhooks/623545140333641748/sDxYV6zPm5lWH4P6SMTD9sk2wThbfXF9r9EprYjngOrHeTFv13lhnh6dX2wPlI6qYrVx";
$settings['discord_integration_new_thread_message'] = "[{$mybb->user[\"username\"]}]($userurl) created the thread [{$mybb->input[\"subject\"]}]($threadurl) in [{$forum[\"name\"]}]($forumurl).";
$settings['discord_integration_new_thread_nickname'] = "";
$settings['discord_integration_new_thread_forums'] = "-1";
$settings['discord_webhooks_new_thread_color'] = "#AAAAAA";
$settings['discord_webhooks_new_thread_message'] = "@{username} created a new thread *{threadtitle}* - {url} on *{boardname}* board";
$settings['discord_integration_new_thread_groups'] = "-1";
$settings['discord_integration_new_thread_webhook'] = "https://discordapp.com/api/webhooks/623545140333641748/sDxYV6zPm5lWH4P6SMTD9sk2wThbfXF9r9EprYjngOrHeTFv13lhnh6dX2wPlI6qYrVx";
$settings['smilieinsertercols'] = "4";
$settings['smilieinsertertot'] = "20";
$settings['portal_numannouncements'] = "10";
$settings['wordwrap'] = "80";
$settings['failedcaptchalogincount'] = "3";
$settings['portal_showdiscussionsnum'] = "10";
$settings['recentthread_threadcount'] = "15";
$settings['failedlogincount'] = "10";
$settings['showbirthdayspostlimit'] = "0";
$settings['tplhtmlcomments'] = "1";
$settings['dvz_sb_mycode'] = "1";
$settings['dvz_sb_smilies'] = "1";
$settings['guestimages'] = "1";
$settings['guestvideos'] = "1";
$settings['cdnpath'] = "";
$settings['recentthread_which_groups'] = "7";
$settings['discord_webhooks_enabled'] = "0";
$settings['polltimelimit'] = "12";
$settings['prunepostcount'] = "0";
$settings['postfloodcheck'] = "1";
$settings['postfloodsecs'] = "30";
$settings['postlayout'] = "horizontal";
$settings['purgespammerpostlimit'] = "10";
$settings['postmergemins'] = "60";
$settings['discord_webhooks_new_post_show_author'] = "1";
$settings['discord_webhooks_new_post_show_title'] = "1";
$settings['discord_webhooks_new_post_show_thumbnail'] = "1";
$settings['discord_webhooks_new_post_chars_limit'] = "500";
$settings['discord_webhooks_new_post_show_avatar'] = "1";
$settings['postsperpage'] = "15";
$settings['pmfloodsecs'] = "60";
$settings['pruneunactived'] = "0";
$settings['enableprunebyposts'] = "0";
$settings['prunethreads'] = "0";
$settings['discord_webhooks_new_post_enabled'] = "1";
$settings['discord_webhooks_new_thread_enabled'] = "1";
$settings['discord_webhooks_new_registration_enabled'] = "0";
$settings['discord_webhooks_new_thread_prefix'] = "";
$settings['threadreadcut'] = "7";
$settings['captchaprivatekey'] = "";
$settings['captchapublickey'] = "";
$settings['referralsperpage'] = "20";
$settings['dvz_sb_interval'] = "5";
$settings['refreshwol'] = "1";
$settings['regdateformat'] = "M Y";
$settings['regtype'] = "admin";
$settings['hottopic'] = "20";
$settings['reportmethod'] = "db";
$settings['repsperpage'] = "15";
$settings['requirecomplexpasswords'] = "0";
$settings['returnemail'] = "";
$settings['dvz_sb_reversed'] = "0";
$settings['cookiesamesiteflag'] = "1";
$settings['ip_forwarded_check'] = "0";
$settings['searchfloodtime'] = "30";
$settings['searchtype'] = "standard";
$settings['cookiesecureflag'] = "0";
$settings['nocacheheaders'] = "0";
$settings['dvz_sb_status'] = "1";
$settings['dvz_sb_height'] = "250";
$settings['dvz_sb_num'] = "40";
$settings['dvz_sb_num_archive'] = "40";
$settings['showeditedbyadmin'] = "1";
$settings['showeditedby'] = "1";
$settings['showsimilarthreads'] = "0";
$settings['showaddlgroups'] = "1";
$settings['attachthumbnails'] = "yes";
$settings['showdescriptions'] = "1";
$settings['showforumpagesbreadcrumb'] = "1";
$settings['portal_showstats'] = "1";
$settings['showgroupleaders'] = "1";
$settings['jumptopagemultipage'] = "1";
$settings['showlanguageselect'] = "1";
$settings['recentthread_lastavatar'] = "0";
$settings['portal_showdiscussions'] = "1";
$settings['discord_webhooks_new_registration_show_style'] = "1";
$settings['multiquote'] = "1";
$settings['logip'] = "no";
$settings['showpmip'] = "no";
$settings['quickreply'] = "1";
$settings['pmquickreply'] = "1";
$settings['whoreadthread_5'] = "0";
$settings['portal_showsearch'] = "1";
$settings['securityquestion'] = "1";
$settings['showindexstats'] = "1";
$settings['subforumsstatusicons'] = "1";
$settings['latestposts_rightorleft'] = "right";
$settings['portal_showpms'] = "1";
$settings['latestposts_showtime'] = "1";
$settings['portal_showwelcome'] = "1";
$settings['showthemeselect'] = "1";
$settings['threadreview'] = "1";
$settings['recentthread_threadavatar'] = "0";
$settings['showbirthdays'] = "1";
$settings['statstopreferrer'] = "1";
$settings['showvernum'] = "1";
$settings['portal_showwol'] = "1";
$settings['showwol'] = "1";
$settings['showforumviewing'] = "1";
$settings['similarlimit'] = "10";
$settings['similarityrating'] = "1";
$settings['simpleckeditor_skin'] = "moono";
$settings['secure_smtp'] = "0";
$settings['smtp_host'] = "";
$settings['smtp_pass'] = "giants89";
$settings['smtp_port'] = "";
$settings['smtp_user'] = "commissioner";
$settings['statscachetime'] = "0";
$settings['statslimit'] = "15";
$settings['purgespammerapikey'] = "";
$settings['subforumsindex'] = "5";
$settings['dvz_sb_supermods'] = "1";
$settings['thousandssep'] = ",";
$settings['recentthread_prefix'] = "1";
$settings['discord_webhooks_new_thread_show_author'] = "1";
$settings['discord_webhooks_new_thread_show_title'] = "1";
$settings['discord_webhooks_new_thread_show_thumbnail'] = "1";
$settings['discord_webhooks_new_thread_chars_limit'] = "500";
$settings['discord_webhooks_new_thread_show_avatar'] = "1";
$settings['threadsperpage'] = "20";
$settings['failedlogintime'] = "15";
$settings['betweenregstime'] = "24";
$settings['timeformat'] = "h:i A";
$settings['simpleckeditor_toolbar'] = "[

	['Source', '-', 'NewPage'],

	['Cut', 'Copy', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'],

	['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'],

	['Bold', 'Italic', 'Underline', 'Strike', '-', 'CopyFormatting', 'RemoveFormat'],

	['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent'],

	['Blockquote', '-', 'mybbinsertcode', 'mybbinsertphp'],

	['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', 'Font', 'FontSize', 'TextColor'],

	['HorizontalRule', 'Image', '-', 'Link', 'Unlink', '-', 'SpecialChar'],

	['Maximize', 'About']

]";
$settings['uploadspath'] = "./uploads";
$settings['cdnurl'] = "";
$settings['dotfolders'] = "1";
$settings['usecdn'] = "0";
$settings['useerrorhandling'] = "1";
$settings['gzipoutput'] = "1";
$settings['usereferrals'] = "1";
$settings['discord_webhooks_usesocket'] = "0";
$settings['allowthreadratings'] = "1";
$settings['discord_integration_new_reply_default_nickname'] = "0";
$settings['discord_integration_new_thread_default_nickname'] = "1";
$settings['threadusenetstyle'] = "0";
$settings['userpppoptions'] = "5,10,20,25,30,40,50";
$settings['usertppoptions'] = "10,20,25,30,40,50";
$settings['browsingthisforum'] = "1";
$settings['browsingthisthread'] = "1";
$settings['emailkeep'] = "0";
$settings['hottopicviews'] = "150";
$settings['hidepolladmin'] = "1";
$settings['hidepollallusers'] = "0";
$settings['hidepollpollop'] = "1";
$settings['hidepollsuper'] = "0";
$settings['hidepollforummod'] = "0";
$settings['hidepollallmods'] = "0";
$settings['hidepollclose'] = "1";
$settings['latestposts_forumskip'] = "";
$settings['recentthread_prefix_only'] = "";
$settings['wolorder'] = "activity";
$settings['recentthread_subject_breaker'] = "0";
$settings['recentthread_xthreads'] = "1";

?>
Reply
#2
Not Solved
There is one missing " (quotation mark) in line 11; and check the line break.

[ExiTuS]
Reply
#3
Not Solved
I fixed the quotation but what line break is wrong/missing?
Reply
#4
Not Solved
Disable all plugins and try to do the upgrade again.

Remember to make a backup of your database & all files.
Worth a try.
Reply
#5
Not Solved
Its too late for that.. I did a backup, though, but when I attempt to lock the install I cannot get into my forum anyways.

If I just re-install MyBB how do I use my backup to get all my users, posts, etc. back?

Update: I commented out all of the discord stuff and tried again... it worked. I then went into my discord settings in the admin cp and saved them again. Tested them and it worked. Not sure if it broke anything but only time will tell.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)