2018-02-28, 07:47 AM
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1366 - Incorrect integer value: '' for column 'canmanagecomments' at row 1
Query:
UPDATE mybb_usergroups SET `type`=1, `title`='Guests', `description`='The default group that all visitors are assigned to unless they\'re logged in.', `namestyle`='{username}', `usertitle`='Unregistered', `stars`=0, `starimage`='', `image`='', `isbannedgroup`=0, `canview`=1, `canviewthreads`=1, `canviewprofiles`=1, `candlattachments`=1, `canviewboardclosed`=0, `canpostthreads`=0, `canpostreplys`=0, `canpostattachments`=0, `canratethreads`=0, `modposts`=0, `modthreads`=0, `mod_edit_posts`=0, `modattachments`=0, `caneditposts`=0, `candeleteposts`=0, `candeletethreads`=0, `caneditattachments`=0, `canviewdeletionnotice`=0, `canpostpolls`=0, `canvotepolls`=0, `canundovotes`=0, `canusepms`=0, `cansendpms`=0, `cantrackpms`=0, `candenypmreceipts`=0, `pmquota`=0, `maxpmrecipients`=5, `cansendemail`=0, `cansendemailoverride`=0, `maxemails`=5, `emailfloodtime`=5, `canviewmemberlist`=1, `canviewcalendar`=1, `canaddevents`=0, `canbypasseventmod`=0, `canmoderateevents`=0, `canviewonline`=1, `canviewwolinvis`=0, `canviewonlineips`=0, `cancp`=0, `issupermod`=0, `cansearch`=1, `canusercp`=0, `canuploadavatars`=0, `canchangename`=0, `canbereported`=0, `canchangewebsite`=0, `showforumteam`=0, `usereputationsystem`=0, `cangivereputations`=0, `candeletereputations`=0, `reputationpower`=0, `maxreputationsday`=0, `maxreputationsperuser`=0, `maxreputationsperthread`=0, `attachquota`=0, `cancustomtitle`=0, `canwarnusers`=0, `canreceivewarnings`=0, `maxwarningsday`=0, `canmodcp`=0, `showinbirthdaylist`=0, `canoverridepm`=0, `canusesig`=0, `canusesigxposts`=0, `signofollow`=0, `edittimelimit`=0, `maxposts`=0, `showmemberlist`=0, `canmanageannounce`=0, `canmanagemodqueue`=0, `canmanagereportedcontent`=0, `canviewmodlogs`=0, `caneditprofiles`=0, `canbanusers`=0, `canviewwarnlogs`=0, `canuseipsearch`=0, `canmanagecomments`='', `cansendcomments`='', `caneditowncomments`='', `candeleteowncomments`='', `commentsperday`=0 WHERE gid='1'
Please contact the MyBB Group for technical support.
This came up when I tried to add the Download Attachment permission for user group: Guest.
What is happening, and how can i fix this?
MyBB 1.8.14 latest.
Ok i found the solution myself.
This indicates your SQL is running in "strict" mode.
FIX:
Run>%programdata%>MySQL>MySQL Server 5.7 (or whatever ur using).
Open file "my.ini"
You'll see this:
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
Remove the "Strict" orange so it looks like this:
# Set the SQL mode to strict
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
SAVE.
Go into Services > find the running SQL instance ur using > Restart Service
Solved.