MyBB Community Forums

Full Version: Still having a MySQL error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I'm having this MySQL error:




Error log:

2021-01-10 09:54:11.614143 [INFO] [23182] [185.191.171.16:11670#APVH_chillforums.com:443] File not found [/home/chil17224819/public_html/404.shtml] 

2021-01-10 09:54:11.614125 [INFO] [23182] [185.191.171.16:11670#APVH_chillforums.com:443] File not found [/home/chil17224819/public_html/robots.txt]

I post a new thread because I had one before and it was really old and had other errors in it
Thanks for helping me out I appreciate it Smile
Hi,

I didn't see any MySQL error in your post, maybe you have a problem when you copy/paste it...

About the error log:

1] 404.shtml problem:

check your .htaccess file, and look ofr something like:
ErrorDocument 404 /404.shtml

Just remove the line or create an HTML file called "404.shtml" and place it in your root folder.

2] robots.txt problem:

Bots like Google's bot (Bing, Yandex, etc.) request this particular file before checking your website.
Please create this file following this info:

https://developers.google.com/search/docs/advanced/robots/create-robots-txt?hl=en
As mentioned above (thank you NoRules) that isn't an SQL error. An SQL error would like [Image: Config.png]
Can you let us know if you do have a message like that or if it is just the message mentioned in your original post?

Note, I've used a 1.6 screenshot from the documentation.
(2021-01-10, 04:48 PM)NoRules Wrote: [ -> ]Hi,

I didn't see any MySQL error in your post, maybe you have a problem when you copy/paste it...

About the error log:

1] 404.shtml problem:

check your .htaccess file, and look ofr something like:
ErrorDocument 404 /404.shtml

Just remove the line or create an HTML file called "404.shtml" and place it in your root folder.

2] robots.txt problem:

Bots like Google's bot (Bing, Yandex, etc.) request this particular file before checking your website.
Please create this file following this info:

https://developers.google.com/search/docs/advanced/robots/create-robots-txt?hl=en


Hey thank you for taking the time to reply to this thread. I did exactly as you said

(2021-01-10, 09:15 PM)Ben Wrote: [ -> ]As mentioned above (thank you NoRules) that isn't an SQL error. An SQL error would like [Image: Config.png]
Can you let us know if you do have a message like that or if it is just the message mentioned in your original post?

Note, I've used a 1.6 screenshot from the documentation.

Yes I had one of these errors on my forum when registering. It's still showing that though:

[Image: QFAFg2a.png]

My error handling settings:

[Image: CeBzSFu.png]

My cpanel error log:

[Image: awvq96j.png]

What am I doing wrong? I'm also not receiving emails from the error log if I put it on email, neither do I receive emails from the contact form. Please help
The image is of the server errors rather than MyBB's error log. Can you check in your ftp for MyBB's error log and show us that?
So I opened my error.log file and this was the error:

<error>
<dateline>1606243446</dateline>
<script></script>
<line>0</line>
<type>20</type>
<friendly_type>MyBB SQL Error</friendly_type>
<message>SQL Error: 1364 - Field 'default_tab' doesn't have a default value
Query: 
INSERT
INTO mybb_users (`username`,`password`,`salt`,`loginkey`,`email`,`postnum`,`threadnum`,`avatar`,`avatartype`,`usergroup`,`additionalgroups`,`displaygroup`,`usertitle`,`regdate`,`lastactive`,`lastvisit`,`website`,`icq`,`skype`,`google`,`birthday`,`signature`,`allownotices`,`hideemail`,`subscriptionmethod`,`receivepms`,`receivefrombuddy`,`pmnotice`,`pmnotify`,`showimages`,`showvideos`,`showsigs`,`showavatars`,`showquickreply`,`showredirect`,`tpp`,`ppp`,`invisible`,`style`,`timezone`,`dstcorrection`,`threadmode`,`daysprune`,`dateformat`,`timeformat`,`regip`,`language`,`showcodebuttons`,`sourceeditor`,`buddyrequestspm`,`buddyrequestsauto`,`away`,`awaydate`,`returndate`,`awayreason`,`notepad`,`referrer`,`referrals`,`buddylist`,`ignorelist`,`pmfolders`,`warningpoints`,`moderateposts`,`moderationtime`,`suspendposting`,`suspensiontime`,`coppauser`,`classicpostbit`,`usernotes`)
VALUES ('test','48416f6141d6a0885ac97917d17f42e4','KQY1JIp4','J3W0F8EHEGTnYTDBIry0mewljSqsUJ5aDH1eaJJpb67Un6XwXj','[email protected]',0,0,'','',5,'',0,'',1606243446,1606243446,1606243446,'',0,'','','','',1,0,0,1,0,1,0,1,1,1,1,1,1,0,0,0,0,'0',2,'',0,'','',X'd964f2f2','',1,0,1,0,0,0,0,'','',0,0,'','','0**$%%$1**$%%$2**$%%$3**$%%$4**',0,0,0,0,0,0,0,'')
</message>
<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/db_mysqli.php:830]
#4  DB_MySQLi->insert_query() called at [/inc/datahandlers/user.php:1192]
#5  UserDataHandler->insert_user() called at [/member.php:383]
</back_trace>
</error>

<error>
<dateline>1610290545</dateline>
<script></script>
<line>0</line>
<type>20</type>
<friendly_type>MyBB SQL Error</friendly_type>
<message>SQL Error: 1364 - Field 'myachievements' doesn't have a default value
Query: 
INSERT
INTO mybb_users (`username`,`password`,`salt`,`loginkey`,`email`,`postnum`,`threadnum`,`avatar`,`avatartype`,`usergroup`,`additionalgroups`,`displaygroup`,`usertitle`,`regdate`,`lastactive`,`lastvisit`,`website`,`icq`,`skype`,`google`,`birthday`,`signature`,`allownotices`,`hideemail`,`subscriptionmethod`,`receivepms`,`receivefrombuddy`,`pmnotice`,`pmnotify`,`showimages`,`showvideos`,`showsigs`,`showavatars`,`showquickreply`,`showredirect`,`tpp`,`ppp`,`invisible`,`style`,`timezone`,`dstcorrection`,`threadmode`,`daysprune`,`dateformat`,`timeformat`,`regip`,`language`,`showcodebuttons`,`sourceeditor`,`buddyrequestspm`,`buddyrequestsauto`,`away`,`awaydate`,`returndate`,`awayreason`,`notepad`,`referrer`,`referrals`,`buddylist`,`ignorelist`,`pmfolders`,`warningpoints`,`moderateposts`,`moderationtime`,`suspendposting`,`suspensiontime`,`coppauser`,`classicpostbit`,`usernotes`,`ougc_awards`)
VALUES ('test','4e3fefa657902e5980c10e9d6aaee947','KBzC0hS2','83x22y0olwt0RGfwnKA58knvP5zjFGDX33As3oInaRNyqSHSIa','[email protected]',0,0,'','',5,'',0,'',1610290545,1610290545,1610290545,'',0,'','','','',1,0,0,1,0,1,0,1,1,1,1,1,1,0,0,0,0,'1',2,'',0,'','',X'd964f2f2','',1,0,1,0,0,0,0,'','',0,0,'','','0**$%%$1**$%%$2**$%%$3**$%%$4**',0,0,0,0,0,0,0,'','')
</message>
<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/db_mysqli.php:830]
#4  DB_MySQLi->insert_query() called at [/inc/datahandlers/user.php:1192]
#5  UserDataHandler->insert_user() called at [/member.php:383]
</back_trace>
</error>

<error>
<dateline>1610485476</dateline>
<script></script>
<line>0</line>
<type>20</type>
<friendly_type>MyBB SQL Error</friendly_type>
<message>SQL Error: 1364 - Field 'myachievements' doesn't have a default value
Query: 
INSERT
INTO mybb_users (`username`,`password`,`salt`,`loginkey`,`email`,`postnum`,`threadnum`,`avatar`,`avatartype`,`usergroup`,`additionalgroups`,`displaygroup`,`usertitle`,`regdate`,`lastactive`,`lastvisit`,`website`,`icq`,`skype`,`google`,`birthday`,`signature`,`allownotices`,`hideemail`,`subscriptionmethod`,`receivepms`,`receivefrombuddy`,`pmnotice`,`pmnotify`,`showimages`,`showvideos`,`showsigs`,`showavatars`,`showquickreply`,`showredirect`,`tpp`,`ppp`,`invisible`,`style`,`timezone`,`dstcorrection`,`threadmode`,`daysprune`,`dateformat`,`timeformat`,`regip`,`language`,`showcodebuttons`,`sourceeditor`,`buddyrequestspm`,`buddyrequestsauto`,`away`,`awaydate`,`returndate`,`awayreason`,`notepad`,`referrer`,`referrals`,`buddylist`,`ignorelist`,`pmfolders`,`warningpoints`,`moderateposts`,`moderationtime`,`suspendposting`,`suspensiontime`,`coppauser`,`classicpostbit`,`usernotes`,`ougc_awards`)
VALUES ('Tester','07ee8509e4c3212d68c3eeb577ca3ca5','uzOXJ19b','n19lRlFPwXd2MSE9ec8SaEzkGR6KVYaVPA2x1HY07Yh1MFCea6','[email protected]',0,0,'','',5,'',0,'',1610485476,1610485476,1610485476,'',0,'','','','',1,0,0,1,0,1,0,1,1,1,1,1,1,0,0,0,0,'1',2,'',0,'','',X'd964f2f2','',1,0,1,0,0,0,0,'','',0,0,'','','0**$%%$1**$%%$2**$%%$3**$%%$4**',0,0,0,0,0,0,0,'','')
</message>
<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/db_mysqli.php:830]
#4  DB_MySQLi->insert_query() called at [/inc/datahandlers/user.php:1192]
#5  UserDataHandler->insert_user() called at [/member.php:383]
</back_trace>
</error>

<error>
<dateline>1610565016</dateline>
<script></script>
<line>0</line>
<type>20</type>
<friendly_type>MyBB SQL Error</friendly_type>
<message>SQL Error: 1364 - Field 'default_tab' doesn't have a default value
Query: 
INSERT
INTO mybb_users (`username`,`password`,`salt`,`loginkey`,`email`,`postnum`,`threadnum`,`avatar`,`avatartype`,`usergroup`,`additionalgroups`,`displaygroup`,`usertitle`,`regdate`,`lastactive`,`lastvisit`,`website`,`icq`,`skype`,`google`,`birthday`,`signature`,`allownotices`,`hideemail`,`subscriptionmethod`,`receivepms`,`receivefrombuddy`,`pmnotice`,`pmnotify`,`showimages`,`showvideos`,`showsigs`,`showavatars`,`showquickreply`,`showredirect`,`tpp`,`ppp`,`invisible`,`style`,`timezone`,`dstcorrection`,`threadmode`,`daysprune`,`dateformat`,`timeformat`,`regip`,`language`,`showcodebuttons`,`sourceeditor`,`buddyrequestspm`,`buddyrequestsauto`,`away`,`awaydate`,`returndate`,`awayreason`,`notepad`,`referrer`,`referrals`,`buddylist`,`ignorelist`,`pmfolders`,`warningpoints`,`moderateposts`,`moderationtime`,`suspendposting`,`suspensiontime`,`coppauser`,`classicpostbit`,`usernotes`,`ougc_awards`)
VALUES ('Tester12','e1eb559f7b74e541aa990e1011d5fda7','LvBaWwlZ','SaQYfDFpV9zVUAr6Nd3k6ucmaHwEjTSxJdRNNDwfAwwkqBM0DS','[email protected]',0,0,'','',5,'',0,'',1610565016,1610565016,1610565016,'',0,'','','','',1,0,0,1,0,1,0,1,1,1,1,1,1,0,0,0,0,'1',2,'',0,'','',X'd964f2f2','',1,0,1,0,0,0,0,'','',0,0,'','','0**$%%$1**$%%$2**$%%$3**$%%$4**',0,0,0,0,0,0,0,'','')
</message>
<back_trace>#0  errorHandler->error() called at [/inc/db_mysqli.php:597]
#1  DB_MySQLi->error() called at [/inc/db_mysqli.php:337]
#2  DB_MySQLi->query() called at [/inc/db_mysqli.php:370]
#3  DB_MySQLi->write_query() called at [/inc/db_mysqli.php:830]
#4  DB_MySQLi->insert_query() called at [/inc/datahandlers/user.php:1192]
#5  UserDataHandler->insert_user() called at [/member.php:383]
</back_trace>
</error>
Those errors seem to relate to issues that may be solved by disabling strict mode for mysql. A guide to do this would be - https://www.knowledgebase-script.com/kb/...l-163.html but it may vary depending on your specific set up.